diff --git a/jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwJoystickInput.java b/jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwJoystickInput.java index 840e506df..d8d61805c 100644 --- a/jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwJoystickInput.java +++ b/jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwJoystickInput.java @@ -31,16 +31,15 @@ */ package com.jme3.input.lwjgl; -import static org.lwjgl.glfw.GLFW.*; import com.jme3.input.*; import com.jme3.input.event.JoyAxisEvent; import com.jme3.input.event.JoyButtonEvent; - import java.nio.ByteBuffer; import java.nio.FloatBuffer; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import static org.lwjgl.glfw.GLFW.*; /** * The LWJGL implementation of {@link JoyInput}. @@ -53,7 +52,7 @@ public class GlfwJoystickInput implements JoyInput { private static final Logger LOGGER = Logger.getLogger(InputManager.class.getName()); private RawInputListener listener; - private Map joysticks = new HashMap<>(); + private final Map joysticks = new HashMap<>(); private boolean initialized = false; diff --git a/jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwKeyInput.java b/jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwKeyInput.java index 8f9297df2..b8049a8f8 100644 --- a/jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwKeyInput.java +++ b/jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwKeyInput.java @@ -58,7 +58,7 @@ public class GlfwKeyInput implements KeyInput { /** * The LWJGL context. */ - private LwjglWindow context; + private final LwjglWindow context; /** * The key callback.