commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1074951 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathParseException.java
Date Sat, 26 Feb 2011 23:05:08 GMT
Author: erans
Date: Sat Feb 26 23:05:07 2011
New Revision: 1074951

URL: http://svn.apache.org/viewvc?rev=1074951&view=rev
Log:
Eliminated "Findbugs" warnings.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathParseException.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathParseException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathParseException.java?rev=1074951&r1=1074950&r2=1074951&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathParseException.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathParseException.java
Sat Feb 26 23:05:07 2011
@@ -39,7 +39,7 @@ public class MathParseException extends 
                               int position,
                               Class<?> type) {
         super(null, null, LocalizedFormats.CANNOT_PARSE_AS_TYPE,
-              wrong, new Integer(position), type.getName());
+              wrong, Integer.valueOf(position), type.getName());
     }
 
     /**
@@ -50,6 +50,6 @@ public class MathParseException extends 
     public MathParseException(String wrong,
                               int position) {
         super(null, null, LocalizedFormats.CANNOT_PARSE,
-              wrong, new Integer(position));
+              wrong, Integer.valueOf(position));
     }
 }



Mime
View raw message