aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/com/jogamp/nativewindow/awt/AppContextInfo.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-08 21:13:15 +0200
committerSven Gothel <[email protected]>2014-07-08 21:13:15 +0200
commit815776c5760e42c8b3c858a9bab982b203c59c24 (patch)
tree3f8ecd7e905b0f431f5472565fce837b24f922ab /src/nativewindow/classes/com/jogamp/nativewindow/awt/AppContextInfo.java
parenta41db57df54863566b0e286cd100bbbc5518eb7f (diff)
Findbugs: Remove branches where reference cannot be null
Diffstat (limited to 'src/nativewindow/classes/com/jogamp/nativewindow/awt/AppContextInfo.java')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/awt/AppContextInfo.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/AppContextInfo.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/AppContextInfo.java
index c637ec59e..2026ada0f 100644
--- a/src/nativewindow/classes/com/jogamp/nativewindow/awt/AppContextInfo.java
+++ b/src/nativewindow/classes/com/jogamp/nativewindow/awt/AppContextInfo.java
@@ -160,8 +160,8 @@ public class AppContextInfo {
} else {
// old info is OK
if( DEBUG ) {
- final int mainThreadAppContextHash = null != mainThreadAppContext ? mainThreadAppContext.hashCode() : 0;
- final int thisThreadAppContextHash = null != thisThreadAppContext ? thisThreadAppContext.hashCode() : 0;
+ final int mainThreadAppContextHash = mainThreadAppContext.hashCode();
+ final int thisThreadAppContextHash = thisThreadAppContext.hashCode();
System.err.println("Bug 1004[TGMapped "+tgMapped+"]: OK AppContext @ "+info+" on thread "+thread.getName()+" "+toHexString(thread.hashCode())+
": tg "+threadGroup.getName()+" "+toHexString(threadGroup.hashCode())+
" : appCtx [ this "+thisThreadAppContext+" "+toHexString(thisThreadAppContextHash)+