diff options
author | Sven Gothel <[email protected]> | 2014-07-08 10:06:58 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-07-08 10:06:58 +0200 |
commit | 326cd5074f14d89a2cd8a6658472784aeda11a87 (patch) | |
tree | 3e5dc0a087377457a89f9ec4ad70d75a3e8edc98 /src/newt/classes/com/jogamp | |
parent | 38e51e4a5f6f35c658df10f6d48a33e3ffaea2f3 (diff) |
Findbugs.minor: Fix 'array -> string', missing argument
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java | 3 | ||||
-rw-r--r-- | src/newt/classes/com/jogamp/newt/event/MouseEvent.java | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java b/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java index 496bd93eb..45db95520 100644 --- a/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java +++ b/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java @@ -36,6 +36,7 @@ import java.awt.EventQueue; import java.awt.event.KeyListener; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; +import java.util.Arrays; import javax.media.nativewindow.WindowClosingProtocol.WindowClosingMode; import javax.media.opengl.FPSCounter; @@ -264,7 +265,7 @@ public class JOGLNewtApplet1Run extends Applet { } System.err.println("JOGLNewtApplet1Run start:"); System.err.println("TopComponent: "+topC.getLocation()+" rel, "+topC.getLocationOnScreen()+" screen, visible "+topC.isVisible()+", "+topC); - System.err.println("Applet Pos: "+this.getLocation()+" rel, "+p0+" screen, visible "+this.isVisible()+", "+this); + System.err.println("Applet Pos: "+this.getLocation()+" rel, "+Arrays.toString(p0)+" screen, visible "+this.isVisible()+", "+this); if(null != newtCanvasAWT) { System.err.println("NewtCanvasAWT Pos: "+newtCanvasAWT.getLocation()+" rel, "+newtCanvasAWT.getLocationOnScreen()+" screen, visible "+newtCanvasAWT.isVisible()+", "+newtCanvasAWT); } diff --git a/src/newt/classes/com/jogamp/newt/event/MouseEvent.java b/src/newt/classes/com/jogamp/newt/event/MouseEvent.java index 982b855a7..cf2d4c0d9 100644 --- a/src/newt/classes/com/jogamp/newt/event/MouseEvent.java +++ b/src/newt/classes/com/jogamp/newt/event/MouseEvent.java @@ -34,6 +34,8 @@ package com.jogamp.newt.event; +import java.util.Arrays; + /** * Pointer event of type {@link PointerType}. * <p> @@ -525,7 +527,7 @@ public class MouseEvent extends InputEvent sb = new StringBuilder(); } sb.append("MouseEvent[").append(getEventTypeString(getEventType())) - .append(", ").append(x).append("/").append(y) + .append(", ").append(Arrays.toString(x)).append("/").append(Arrays.toString(y)) .append(", button ").append(button).append(", count ") .append(clickCount).append(", rotation [").append(rotationXYZ[0]).append(", ").append(rotationXYZ[1]).append(", ").append(rotationXYZ[2]).append("] * ").append(rotationScale); if(pointerID.length>0) { |