summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-08 21:09:30 +0200
committerSven Gothel <[email protected]>2014-07-08 21:09:30 +0200
commita41db57df54863566b0e286cd100bbbc5518eb7f (patch)
treefb82077e79f54ba2fcf4c77b42458572fd9995eb /src/nativewindow/classes/com/jogamp
parentb740161d456c059d1b51029c603ce144eb2b2d44 (diff)
Findbugs: Use <NumberType>.valueOf(..) instead of 'new <NumberType>(..)'
Diffstat (limited to 'src/nativewindow/classes/com/jogamp')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java b/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java
index 6c63fc08d..d29e2abbc 100644
--- a/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java
+++ b/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java
@@ -228,9 +228,9 @@ public class SWTAccessor {
private static Number getIntOrLong(final long arg) {
if(swt_uses_long_handles) {
- return new Long(arg);
+ return Long.valueOf(arg);
}
- return new Integer((int) arg);
+ return Integer.valueOf((int) arg);
}
private static void callStaticMethodL2V(final Method m, final long arg) {
@@ -453,9 +453,9 @@ public class SWTAccessor {
@Override
public void run() {
if(swt_uses_long_handles) {
- ReflectionUtil.callMethod(swtControl, swt_control_internal_dispose_GC, new Object[] { new Long(gc), gcData });
+ ReflectionUtil.callMethod(swtControl, swt_control_internal_dispose_GC, new Object[] { Long.valueOf(gc), gcData });
} else {
- ReflectionUtil.callMethod(swtControl, swt_control_internal_dispose_GC, new Object[] { new Integer((int)gc), gcData });
+ ReflectionUtil.callMethod(swtControl, swt_control_internal_dispose_GC, new Object[] { Integer.valueOf((int)gc), gcData });
}
}
});