@@ -116,7 +116,7 @@ public class Exit extends Task { | |||||
* @param i the <code>int</code> status | * @param i the <code>int</code> status | ||||
*/ | */ | ||||
public void setStatus(int i) { | public void setStatus(int i) { | ||||
status = new Integer(i); | |||||
status = Integer.valueOf(i); | |||||
} | } | ||||
/** | /** | ||||
@@ -165,7 +165,7 @@ public class EmailTask extends Task { | |||||
* @param port The port to use. | * @param port The port to use. | ||||
*/ | */ | ||||
public void setMailport(int port) { | public void setMailport(int port) { | ||||
this.port = new Integer(port); | |||||
this.port = Integer.valueOf(port); | |||||
} | } | ||||
/** | /** | ||||
@@ -101,7 +101,7 @@ public class ConstantPool { | |||||
if (entry instanceof Utf8CPInfo) { | if (entry instanceof Utf8CPInfo) { | ||||
Utf8CPInfo utf8Info = (Utf8CPInfo) entry; | Utf8CPInfo utf8Info = (Utf8CPInfo) entry; | ||||
utf8Indexes.put(utf8Info.getValue(), new Integer(index)); | |||||
utf8Indexes.put(utf8Info.getValue(), Integer.valueOf(index)); | |||||
} | } | ||||
return index; | return index; | ||||
@@ -111,7 +111,7 @@ public class JavaCC extends Task { | |||||
* @param lookahead an <code>int</code> value. | * @param lookahead an <code>int</code> value. | ||||
*/ | */ | ||||
public void setLookahead(int lookahead) { | public void setLookahead(int lookahead) { | ||||
optionalAttrs.put(LOOKAHEAD, new Integer(lookahead)); | |||||
optionalAttrs.put(LOOKAHEAD, Integer.valueOf(lookahead)); | |||||
} | } | ||||
/** | /** | ||||
@@ -119,7 +119,7 @@ public class JavaCC extends Task { | |||||
* @param choiceAmbiguityCheck an <code>int</code> value. | * @param choiceAmbiguityCheck an <code>int</code> value. | ||||
*/ | */ | ||||
public void setChoiceambiguitycheck(int choiceAmbiguityCheck) { | public void setChoiceambiguitycheck(int choiceAmbiguityCheck) { | ||||
optionalAttrs.put(CHOICE_AMBIGUITY_CHECK, new Integer(choiceAmbiguityCheck)); | |||||
optionalAttrs.put(CHOICE_AMBIGUITY_CHECK, Integer.valueOf(choiceAmbiguityCheck)); | |||||
} | } | ||||
/** | /** | ||||
@@ -127,7 +127,7 @@ public class JavaCC extends Task { | |||||
* @param otherAmbiguityCheck an <code>int</code> value. | * @param otherAmbiguityCheck an <code>int</code> value. | ||||
*/ | */ | ||||
public void setOtherambiguityCheck(int otherAmbiguityCheck) { | public void setOtherambiguityCheck(int otherAmbiguityCheck) { | ||||
optionalAttrs.put(OTHER_AMBIGUITY_CHECK, new Integer(otherAmbiguityCheck)); | |||||
optionalAttrs.put(OTHER_AMBIGUITY_CHECK, Integer.valueOf(otherAmbiguityCheck)); | |||||
} | } | ||||
/** | /** | ||||
@@ -363,7 +363,7 @@ public class LayoutPreservingProperties extends Properties { | |||||
// the new one | // the new one | ||||
remove(key); | remove(key); | ||||
} | } | ||||
keyedPairLines.put(key, new Integer(logicalLines.size())); | |||||
keyedPairLines.put(key, Integer.valueOf(logicalLines.size())); | |||||
} | } | ||||
logicalLines.add(line); | logicalLines.add(line); | ||||
logicalLineBuffer.setLength(0); | logicalLineBuffer.setLength(0); | ||||
@@ -533,9 +533,9 @@ public class IntrospectionHelperTest { | |||||
assertAttrMethod("seven", "setSeven", String.class, | assertAttrMethod("seven", "setSeven", String.class, | ||||
"2", "3"); | "2", "3"); | ||||
assertAttrMethod("eight", "setEight", Integer.TYPE, | assertAttrMethod("eight", "setEight", Integer.TYPE, | ||||
new Integer(2), new Integer(3)); | |||||
Integer.valueOf(2), Integer.valueOf(3)); | |||||
assertAttrMethod("nine", "setNine", Integer.class, | assertAttrMethod("nine", "setNine", Integer.class, | ||||
new Integer(2), new Integer(3)); | |||||
Integer.valueOf(2), Integer.valueOf(3)); | |||||
assertAttrMethod("ten", "setTen", File.class, | assertAttrMethod("ten", "setTen", File.class, | ||||
new File(projectBasedir + 2), new File("toto")); | new File(projectBasedir + 2), new File("toto")); | ||||
assertAttrMethod("eleven", "setEleven", Boolean.TYPE, | assertAttrMethod("eleven", "setEleven", Boolean.TYPE, | ||||
@@ -547,15 +547,15 @@ public class IntrospectionHelperTest { | |||||
assertAttrMethod("fourteen", "setFourteen", StringBuffer.class, | assertAttrMethod("fourteen", "setFourteen", StringBuffer.class, | ||||
new StringBuffer("2"), new StringBuffer("3")); | new StringBuffer("2"), new StringBuffer("3")); | ||||
assertAttrMethod("fifteen", "setFifteen", Character.TYPE, | assertAttrMethod("fifteen", "setFifteen", Character.TYPE, | ||||
new Character('a'), new Character('b')); | |||||
Character.valueOf('a'), Character.valueOf('b')); | |||||
assertAttrMethod("sixteen", "setSixteen", Character.class, | assertAttrMethod("sixteen", "setSixteen", Character.class, | ||||
new Character('a'), new Character('b')); | |||||
Character.valueOf('a'), Character.valueOf('b')); | |||||
assertAttrMethod("seventeen", "setSeventeen", Byte.TYPE, | assertAttrMethod("seventeen", "setSeventeen", Byte.TYPE, | ||||
new Byte((byte) 17), new Byte((byte) 10)); | |||||
Byte.valueOf((byte) 17), Byte.valueOf((byte) 10)); | |||||
assertAttrMethod("eightteen", "setEightteen", Short.TYPE, | assertAttrMethod("eightteen", "setEightteen", Short.TYPE, | ||||
new Short((short) 18), new Short((short) 10)); | |||||
Short.valueOf((short) 18), Short.valueOf((short) 10)); | |||||
assertAttrMethod("nineteen", "setNineteen", Double.TYPE, | assertAttrMethod("nineteen", "setNineteen", Double.TYPE, | ||||
new Double(19), new Double((short) 10)); | |||||
Double.valueOf(19), Double.valueOf((short) 10)); | |||||
try { | try { | ||||
assertAttrMethod("onehundred", null, null, null, null); | assertAttrMethod("onehundred", null, null, null, null); | ||||
@@ -527,7 +527,7 @@ public class FTPTest { | |||||
private int matchCount; | private int matchCount; | ||||
public void addLogMessageToSearch(String message) { | public void addLogMessageToSearch(String message) { | ||||
searchMap.put(message, new Integer(0)); | |||||
searchMap.put(message, Integer.valueOf(0)); | |||||
} | } | ||||
/* | /* | ||||
@@ -537,7 +537,7 @@ public class FTPTest { | |||||
String message = event.getMessage(); | String message = event.getMessage(); | ||||
Integer mcnt = (Integer) searchMap.get(message); | Integer mcnt = (Integer) searchMap.get(message); | ||||
if (null != mcnt) { | if (null != mcnt) { | ||||
searchMap.put(message, new Integer(mcnt.intValue() + 1)); | |||||
searchMap.put(message, Integer.valueOf(mcnt.intValue() + 1)); | |||||
} | } | ||||
super.messageLogged(event); | super.messageLogged(event); | ||||
} | } | ||||
@@ -71,7 +71,7 @@ public class ZipLongTest { | |||||
assertTrue("symmetric", zl2.equals(zl)); | assertTrue("symmetric", zl2.equals(zl)); | ||||
assertTrue("null handling", !zl.equals(null)); | assertTrue("null handling", !zl.equals(null)); | ||||
assertTrue("non ZipLong handling", !zl.equals(new Integer(0x1234))); | |||||
assertTrue("non ZipLong handling", !zl.equals(Integer.valueOf(0x1234))); | |||||
} | } | ||||
/** | /** | ||||
@@ -68,7 +68,7 @@ public class ZipShortTest { | |||||
assertTrue("symmetric", zs2.equals(zs)); | assertTrue("symmetric", zs2.equals(zs)); | ||||
assertTrue("null handling", !zs.equals(null)); | assertTrue("null handling", !zs.equals(null)); | ||||
assertTrue("non ZipShort handling", !zs.equals(new Integer(0x1234))); | |||||
assertTrue("non ZipShort handling", !zs.equals(Integer.valueOf(0x1234))); | |||||
} | } | ||||
/** | /** | ||||