From 5520863078038aa08b6b99e47e52dcc6f3662da9 Mon Sep 17 00:00:00 2001 From: Toni Helenius Date: Tue, 17 Jul 2018 14:18:54 +0300 Subject: [PATCH] Set as finals --- .../main/java/com/jme3/input/lwjgl/GlfwJoystickInput.java | 5 ++--- .../src/main/java/com/jme3/input/lwjgl/GlfwKeyInput.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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.