summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-10-16 00:35:21 -0700
committerHarvey Harrison <[email protected]>2012-10-23 21:47:52 -0700
commitd73ee3ac8aac58914146c0c9949902452db83b56 (patch)
tree8f5eb9098c6252d3ec357b46127a126251f9bb0b
parentf8237ac370585bd454675a84ee6d81da3f74d765 (diff)
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 <[email protected]>
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java4
1 files 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();
}