summaryrefslogtreecommitdiffstats
path: root/src/newt
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/newt
parentb740161d456c059d1b51029c603ce144eb2b2d44 (diff)
Findbugs: Use <NumberType>.valueOf(..) instead of 'new <NumberType>(..)'
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/jogamp/newt/driver/x11/ScreenDriver.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/x11/ScreenDriver.java b/src/newt/classes/jogamp/newt/driver/x11/ScreenDriver.java
index 7ae68e510..1d779741a 100644
--- a/src/newt/classes/jogamp/newt/driver/x11/ScreenDriver.java
+++ b/src/newt/classes/jogamp/newt/driver/x11/ScreenDriver.java
@@ -77,7 +77,7 @@ public class ScreenDriver extends ScreenImpl {
final Long handle = runWithLockedDisplayDevice( new DisplayImpl.DisplayRunnable<Long>() {
@Override
public Long run(final long dpy) {
- return new Long(GetScreen0(dpy, screen_idx));
+ return Long.valueOf(GetScreen0(dpy, screen_idx));
} } );
if (handle.longValue() == 0) {
throw new RuntimeException("Error creating screen: " + screen_idx);
@@ -213,7 +213,7 @@ public class ScreenDriver extends ScreenImpl {
private final DisplayImpl.DisplayRunnable<Boolean> xineramaEnabledQueryWithTemp = new DisplayImpl.DisplayRunnable<Boolean>() {
@Override
public Boolean run(final long dpy) {
- return new Boolean(X11Util.XineramaIsEnabled(dpy));
+ return Boolean.valueOf(X11Util.XineramaIsEnabled(dpy));
} };
@Override