From 59125627b731705f656c1aac99d08b864665b445 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 8 Jul 2014 23:17:03 +0200 Subject: Findbugs: Comment on some issues (OK, they are) ; Remove dead branches --- .../jogamp/newt/driver/android/event/AndroidNewtEventFactory.java | 2 +- src/newt/classes/jogamp/newt/driver/bcm/vc/iv/ScreenDriver.java | 4 ++-- src/newt/classes/jogamp/newt/driver/kd/ScreenDriver.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/newt/classes/jogamp') diff --git a/src/newt/classes/jogamp/newt/driver/android/event/AndroidNewtEventFactory.java b/src/newt/classes/jogamp/newt/driver/android/event/AndroidNewtEventFactory.java index 05191e200..579edc590 100644 --- a/src/newt/classes/jogamp/newt/driver/android/event/AndroidNewtEventFactory.java +++ b/src/newt/classes/jogamp/newt/driver/android/event/AndroidNewtEventFactory.java @@ -277,7 +277,7 @@ public class AndroidNewtEventFactory { } if( event.getPressure() > maxPressure ) { - maxPressure = event.getPressure(); + maxPressure = event.getPressure(); // write to static field intended } // diff --git a/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/ScreenDriver.java b/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/ScreenDriver.java index 5c1c08ca8..e3e854cba 100644 --- a/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/ScreenDriver.java +++ b/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/ScreenDriver.java @@ -107,8 +107,8 @@ public class ScreenDriver extends ScreenImpl { /** Called from {@link #initNative()}. */ protected void setScreenSize(final int width, final int height) { - cachedWidth = width; - cachedHeight = height; + cachedWidth = width; // write to static field intended + cachedHeight = height; // write to static field intended } private static int cachedWidth = 0; diff --git a/src/newt/classes/jogamp/newt/driver/kd/ScreenDriver.java b/src/newt/classes/jogamp/newt/driver/kd/ScreenDriver.java index 06485ccef..71f8b1439 100644 --- a/src/newt/classes/jogamp/newt/driver/kd/ScreenDriver.java +++ b/src/newt/classes/jogamp/newt/driver/kd/ScreenDriver.java @@ -111,8 +111,8 @@ public class ScreenDriver extends ScreenImpl { } protected void sizeChanged(final int w, final int h) { - cachedWidth = w; - cachedHeight = h; + cachedWidth = w; // write to static field intended + cachedHeight = h; // write to static field intended } private static int cachedWidth = 0; -- cgit v1.2.3