mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 08:30:35 +00:00
updating to use #36
This commit is contained in:
parent
78d72989e4
commit
9151c49983
@ -50,7 +50,7 @@ public abstract class AppleImage {
|
||||
String[] classNames = {
|
||||
"ImageIoImage", "SunJpegImage", "SwtImage" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
Class<?>[] constructorArgClasses = new Class<?>[] { int.class, int.class };
|
||||
Object[] constructorArgs = { new Integer(width), new Integer(height) };
|
||||
Object[] constructorArgs = { Integer.valueOf(width), Integer.valueOf(height) };
|
||||
for (String className : classNames) {
|
||||
try {
|
||||
Class<?> appleImageClass = Class.forName(
|
||||
|
@ -112,7 +112,7 @@ public class CpmFileEntry implements FileEntry {
|
||||
* Add another directory offset to this file entry.
|
||||
*/
|
||||
public void addOffset(int offset) {
|
||||
offsets.add(new Integer(offset));
|
||||
offsets.add(Integer.valueOf(offset));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -484,7 +484,7 @@ public class DosFileEntry implements FileEntry {
|
||||
try {
|
||||
byte[] rawdata = disk.getFileData(this);
|
||||
if (rawdata == null || rawdata.length == 0) {
|
||||
this.address = new Integer(address);
|
||||
this.address = Integer.valueOf(address);
|
||||
} else {
|
||||
AppleUtil.setWordValue(rawdata, 0, address);
|
||||
disk.setFileData(this, rawdata);
|
||||
|
Loading…
Reference in New Issue
Block a user