aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-08 22:10:03 +0200
committerSven Gothel <[email protected]>2014-07-08 22:10:03 +0200
commitde53d193c86a02a3cdc46c5c8758192d957d1c67 (patch)
tree8be8e36381d6f25850b887c9ff0df7e9c2279487 /src/test/com/jogamp/opengl/test/junit/newt/WindowEventCom1.java
parentbe2b608e22d9a2a3a80eb547bee6180c2ca22678 (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.java4
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);
}
}