diff options
author | Harvey Harrison <[email protected]> | 2014-05-17 08:24:01 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2014-05-17 08:24:01 -0700 |
commit | 0f9fb62d90c27312dfd6e98acbf78a2f70061d1a (patch) | |
tree | 32036e09d80387651ecce07429b6d9cf737f9672 | |
parent | 6b0554b658d656aa2fb7d3696dd2f75ca25304d3 (diff) |
gluegen: use parseInt, parseLong to avoid boxing unboxing an Integer/Long
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r-- | src/java/com/jogamp/common/util/PropertyAccess.java | 4 |
1 files changed, 2 insertions, 2 deletions
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; |