aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/com/jogamp/newt/event/InputEvent.java2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/KeyEvent.java4
-rw-r--r--src/newt/classes/com/jogamp/newt/event/MouseEvent.java2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/NEWTEvent.java6
-rw-r--r--src/newt/classes/com/jogamp/newt/event/WindowUpdateEvent.java2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/newt/classes/com/jogamp/newt/event/InputEvent.java b/src/newt/classes/com/jogamp/newt/event/InputEvent.java
index 148787845..b0df7b4d1 100644
--- a/src/newt/classes/com/jogamp/newt/event/InputEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/InputEvent.java
@@ -85,5 +85,5 @@ public abstract class InputEvent extends NEWTEvent
return "InputEvent[modifiers:"+modifiers+", "+super.toString()+"]";
}
- private int modifiers;
+ private final int modifiers;
}
diff --git a/src/newt/classes/com/jogamp/newt/event/KeyEvent.java b/src/newt/classes/com/jogamp/newt/event/KeyEvent.java
index 2c3fd9cb2..9e4fe372b 100644
--- a/src/newt/classes/com/jogamp/newt/event/KeyEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/KeyEvent.java
@@ -110,8 +110,8 @@ public class KeyEvent extends InputEvent
return false;
}
- private int keyCode;
- private char keyChar;
+ private final int keyCode;
+ private final char keyChar;
public static final int EVENT_KEY_PRESSED = 300;
public static final int EVENT_KEY_RELEASED= 301;
diff --git a/src/newt/classes/com/jogamp/newt/event/MouseEvent.java b/src/newt/classes/com/jogamp/newt/event/MouseEvent.java
index fbe32d41d..f3f606115 100644
--- a/src/newt/classes/com/jogamp/newt/event/MouseEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/MouseEvent.java
@@ -97,7 +97,7 @@ public class MouseEvent extends InputEvent
}
}
- private int x, y, clickCount, button, wheelRotation;
+ private final int x, y, clickCount, button, wheelRotation;
public static final int EVENT_MOUSE_CLICKED = 200;
public static final int EVENT_MOUSE_ENTERED = 201;
diff --git a/src/newt/classes/com/jogamp/newt/event/NEWTEvent.java b/src/newt/classes/com/jogamp/newt/event/NEWTEvent.java
index 10673be3d..50aed2c8e 100644
--- a/src/newt/classes/com/jogamp/newt/event/NEWTEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/NEWTEvent.java
@@ -47,9 +47,9 @@ package com.jogamp.newt.event;
* </ul><br>
*/
public class NEWTEvent extends java.util.EventObject {
- private boolean isSystemEvent;
- private int eventType;
- private long when;
+ private final boolean isSystemEvent;
+ private final int eventType;
+ private final long when;
private Object attachment;
static final boolean DEBUG = false;
diff --git a/src/newt/classes/com/jogamp/newt/event/WindowUpdateEvent.java b/src/newt/classes/com/jogamp/newt/event/WindowUpdateEvent.java
index 7cd6ee370..505939de2 100644
--- a/src/newt/classes/com/jogamp/newt/event/WindowUpdateEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/WindowUpdateEvent.java
@@ -31,7 +31,7 @@ package com.jogamp.newt.event;
import javax.media.nativewindow.util.Rectangle;
public class WindowUpdateEvent extends WindowEvent {
- Rectangle bounds;
+ final Rectangle bounds;
public WindowUpdateEvent(int eventType, Object source, long when, Rectangle bounds)
{