From 0f9fb62d90c27312dfd6e98acbf78a2f70061d1a Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sat, 17 May 2014 08:24:01 -0700 Subject: gluegen: use parseInt, parseLong to avoid boxing unboxing an Integer/Long Signed-off-by: Harvey Harrison --- src/java/com/jogamp/common/util/PropertyAccess.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java') diff --git a/src/java/com/jogamp/common/util/PropertyAccess.java b/src/java/com/jogamp/common/util/PropertyAccess.java index 830bfe4..a2e3690 100644 --- a/src/java/com/jogamp/common/util/PropertyAccess.java +++ b/src/java/com/jogamp/common/util/PropertyAccess.java @@ -79,7 +79,7 @@ public class PropertyAccess { try { final String sv = PropertyAccess.getProperty(property, jnlpAlias); if(null!=sv) { - i = Integer.valueOf(sv).intValue(); + i = Integer.parseInt(sv); } } catch (NumberFormatException nfe) {} return i; @@ -91,7 +91,7 @@ public class PropertyAccess { try { final String sv = PropertyAccess.getProperty(property, jnlpAlias); if(null!=sv) { - l = Long.valueOf(sv).longValue(); + l = Long.parseLong(sv); } } catch (NumberFormatException nfe) {} return l; -- cgit v1.2.3