From 815776c5760e42c8b3c858a9bab982b203c59c24 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Tue, 8 Jul 2014 21:13:15 +0200
Subject: Findbugs: Remove branches where reference cannot be null

---
 .../classes/com/jogamp/nativewindow/awt/AppContextInfo.java           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/nativewindow')

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)+
-- 
cgit v1.2.3