[Swift-commit] cog r3866

swift at ci.uchicago.edu swift at ci.uchicago.edu
Thu Jan 30 21:40:05 CST 2014


------------------------------------------------------------------------
r3866 | hategan | 2014-01-30 21:36:47 -0600 (Thu, 30 Jan 2014) | 1 line

don't instantiate possibly unnecessary integers
------------------------------------------------------------------------
Index: modules/karajan/src/org/globus/cog/karajan/util/TypeUtil.java
===================================================================
--- modules/karajan/src/org/globus/cog/karajan/util/TypeUtil.java	(revision 3865)
+++ modules/karajan/src/org/globus/cog/karajan/util/TypeUtil.java	(working copy)
@@ -232,7 +232,7 @@
 	}
 
 	public static Integer toInteger(final Object obj) {
-		return new Integer(toInt(obj));
+		return Integer.valueOf(toInt(obj));
 	}
 
 	public static final String[] EMPTY_STRING_ARRAY = new String[0];



More information about the Swift-commit mailing list