From a41db57df54863566b0e286cd100bbbc5518eb7f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 8 Jul 2014 21:09:30 +0200 Subject: Findbugs: Use .valueOf(..) instead of 'new (..)' --- src/newt/classes/jogamp/newt/driver/x11/ScreenDriver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newt') 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() { @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 xineramaEnabledQueryWithTemp = new DisplayImpl.DisplayRunnable() { @Override public Boolean run(final long dpy) { - return new Boolean(X11Util.XineramaIsEnabled(dpy)); + return Boolean.valueOf(X11Util.XineramaIsEnabled(dpy)); } }; @Override -- cgit v1.2.3