Skip to content
Permalink
Browse files
Uses Long.valueOf to improve overall performance
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/ognl/trunk@1430156 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lukaszlenart committed Jan 8, 2013
1 parent 0e3dd0c commit b2a853e855bbffa9157ffdb601950c2209122bad
Showing 1 changed file with 1 addition and 1 deletion.
@@ -532,7 +532,7 @@ public static <T> Object convertValue( int value, Class<T> toType, boolean preve
public static <T> Object convertValue( long value, Class<T> toType, boolean preventNull )
throws OgnlException
{
return convertValue( new Long( value ), toType, preventNull );
return convertValue( Long.valueOf( value ), toType, preventNull );
}

public static <T> Object convertValue( float value, Class<T> toType, boolean preventNull )

0 comments on commit b2a853e

Please sign in to comment.