updating to use #36

This commit is contained in:
Rob Greene 2020-01-20 14:15:43 -06:00
parent 78d72989e4
commit 9151c49983
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ public abstract class AppleImage {
String[] classNames = { String[] classNames = {
"ImageIoImage", "SunJpegImage", "SwtImage" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ "ImageIoImage", "SunJpegImage", "SwtImage" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
Class<?>[] constructorArgClasses = new Class<?>[] { int.class, int.class }; 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) { for (String className : classNames) {
try { try {
Class<?> appleImageClass = Class.forName( Class<?> appleImageClass = Class.forName(

View File

@ -112,7 +112,7 @@ public class CpmFileEntry implements FileEntry {
* Add another directory offset to this file entry. * Add another directory offset to this file entry.
*/ */
public void addOffset(int offset) { public void addOffset(int offset) {
offsets.add(new Integer(offset)); offsets.add(Integer.valueOf(offset));
} }
/** /**

View File

@ -484,7 +484,7 @@ public class DosFileEntry implements FileEntry {
try { try {
byte[] rawdata = disk.getFileData(this); byte[] rawdata = disk.getFileData(this);
if (rawdata == null || rawdata.length == 0) { if (rawdata == null || rawdata.length == 0) {
this.address = new Integer(address); this.address = Integer.valueOf(address);
} else { } else {
AppleUtil.setWordValue(rawdata, 0, address); AppleUtil.setWordValue(rawdata, 0, address);
disk.setFileData(this, rawdata); disk.setFileData(this, rawdata);