mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-26 19:29:24 +00:00
Pulling in some suggestions from IDE.
This commit is contained in:
parent
c9dcb73b33
commit
852fbeb4b3
@ -52,7 +52,7 @@ public class ProdosFileEntryReaderWriter implements FileEntryReader, FileEntryWr
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Boolean> isLocked() {
|
public Optional<Boolean> isLocked() {
|
||||||
return Optional.ofNullable(fileEntry.isLocked());
|
return Optional.of(fileEntry.isLocked());
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void setLocked(boolean flag) {
|
public void setLocked(boolean flag) {
|
||||||
@ -86,7 +86,7 @@ public class ProdosFileEntryReaderWriter implements FileEntryReader, FileEntryWr
|
|||||||
@Override
|
@Override
|
||||||
public Optional<Integer> getBinaryAddress() {
|
public Optional<Integer> getBinaryAddress() {
|
||||||
if (fileEntry.needsAddress()) {
|
if (fileEntry.needsAddress()) {
|
||||||
return Optional.ofNullable(fileEntry.getAuxiliaryType());
|
return Optional.of(fileEntry.getAuxiliaryType());
|
||||||
}
|
}
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
@ -99,7 +99,7 @@ public class ProdosFileEntryReaderWriter implements FileEntryReader, FileEntryWr
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Integer> getBinaryLength() {
|
public Optional<Integer> getBinaryLength() {
|
||||||
return Optional.ofNullable(fileEntry.getSize());
|
return Optional.of(fileEntry.getSize());
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void setBinaryLength(int length) {
|
public void setBinaryLength(int length) {
|
||||||
@ -108,7 +108,7 @@ public class ProdosFileEntryReaderWriter implements FileEntryReader, FileEntryWr
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Integer> getAuxiliaryType() {
|
public Optional<Integer> getAuxiliaryType() {
|
||||||
return Optional.ofNullable(fileEntry.getAuxiliaryType());
|
return Optional.of(fileEntry.getAuxiliaryType());
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void setAuxiliaryType(int auxType) {
|
public void setAuxiliaryType(int auxType) {
|
||||||
|
Loading…
Reference in New Issue
Block a user