From d73ee3ac8aac58914146c0c9949902452db83b56 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Tue, 16 Oct 2012 00:35:21 -0700 Subject: jogl: use Boolean TRUE/FALSE constants for values that will be immediately unboxed No reason for ever using new Boolean when the constants are available. Signed-off-by: Harvey Harrison --- .../classes/javax/media/nativewindow/NativeWindowFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java index 37d408990..179610b25 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java @@ -117,9 +117,9 @@ public abstract class NativeWindowFactory { "/opt/vc/lib/libbcm_host.so"); public Boolean run() { if ( vcliblocation.isFile() ) { - return new Boolean(true); + return Boolean.TRUE; } - return new Boolean(false); + return Boolean.FALSE; } } ).booleanValue(); } -- cgit v1.2.3