diff options
author | Sven Gothel <[email protected]> | 2014-07-08 22:10:03 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-07-08 22:10:03 +0200 |
commit | de53d193c86a02a3cdc46c5c8758192d957d1c67 (patch) | |
tree | 8be8e36381d6f25850b887c9ff0df7e9c2279487 /src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java | |
parent | be2b608e22d9a2a3a80eb547bee6180c2ca22678 (diff) |
Findbugs: Misc minor issues (see below)
- remove duplicate code in branch
- Use Type.valueOf(primitive)
- Don't use array.toString() directly
- remove dead code
Diffstat (limited to 'src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java b/src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java index acc53b2f9..2b6356e14 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java @@ -33,10 +33,10 @@ import com.jogamp.newt.event.*; class WindowEventCom1 extends WindowAdapter { public void windowResized(final WindowEvent e) { - e.setAttachment(new String("WindowEventCom1.windowResized: "+e)); + e.setAttachment("WindowEventCom1.windowResized: "+e); } public void windowMoved(final WindowEvent e) { - e.setAttachment(new String("WindowEventCom1.windowMoved: "+e)); + e.setAttachment("WindowEventCom1.windowMoved: "+e); } } |