Author: borges
Date: 2012-02-23 04:37:54 -0500 (Thu, 23 Feb 2012)
New Revision: 12169
Modified:
trunk/hornetq-commons/src/main/java/org/hornetq/utils/TypedProperties.java
Log:
Avoid unboxing followed by boxing.
Modified: trunk/hornetq-commons/src/main/java/org/hornetq/utils/TypedProperties.java
===================================================================
--- trunk/hornetq-commons/src/main/java/org/hornetq/utils/TypedProperties.java 2012-02-23
09:37:40 UTC (rev 12168)
+++ trunk/hornetq-commons/src/main/java/org/hornetq/utils/TypedProperties.java 2012-02-23
09:37:54 UTC (rev 12169)
@@ -180,7 +180,7 @@
}
else if (value instanceof SimpleString)
{
- return Boolean.valueOf(((SimpleString)value).toString()).booleanValue();
+ return Boolean.valueOf(((SimpleString)value).toString());
}
else
{
@@ -219,7 +219,7 @@
if (value instanceof Character)
{
- return ((Character)value).charValue();
+ return ((Character)value);
}
else
{
@@ -363,7 +363,7 @@
return Float.valueOf(null);
if (value instanceof Float)
{
- return ((Float)value).floatValue();
+ return ((Float)value);
}
if (value instanceof SimpleString)
{
Show replies by date