From 3a5c8c722ae23b7724d285a53aa5c7e3e6e400d9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 8 Jul 2014 12:40:28 +0200 Subject: Findbugs: Fix WindowImpl.getReconfigureFlags(..): Remove sloppy useless assignment-or, replace by plain or --- src/newt/classes/jogamp/newt/WindowImpl.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/newt') diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index 29a0b1e21..c9a5d9277 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -661,12 +661,12 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer return 0 == ( changeFlags & FLAG_IS_FULLSCREEN_SPAN ); } - protected int getReconfigureFlags(int changeFlags, final boolean visible) { - return changeFlags |= ( ( 0 != getParentWindowHandle() ) ? FLAG_HAS_PARENT : 0 ) | - ( isUndecorated() ? FLAG_IS_UNDECORATED : 0 ) | - ( isFullscreen() ? FLAG_IS_FULLSCREEN : 0 ) | - ( isAlwaysOnTop() ? FLAG_IS_ALWAYSONTOP : 0 ) | - ( visible ? FLAG_IS_VISIBLE : 0 ) ; + protected int getReconfigureFlags(final int changeFlags, final boolean visible) { + return changeFlags | ( ( 0 != getParentWindowHandle() ) ? FLAG_HAS_PARENT : 0 ) | + ( isUndecorated() ? FLAG_IS_UNDECORATED : 0 ) | + ( isFullscreen() ? FLAG_IS_FULLSCREEN : 0 ) | + ( isAlwaysOnTop() ? FLAG_IS_ALWAYSONTOP : 0 ) | + ( visible ? FLAG_IS_VISIBLE : 0 ) ; } protected static String getReconfigureFlagsAsString(StringBuilder sb, final int flags) { if(null == sb) { sb = new StringBuilder(); } -- cgit v1.2.3