Stephen Gold 4 лет назад
Родитель
Сommit
499e73ab09

+ 2 - 1
jme3-core/src/main/java/com/jme3/input/dummy/DummyKeyInput.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -49,6 +49,7 @@ public class DummyKeyInput extends DummyInput implements KeyInput {
     }
 
     
+    @Override
     public String getKeyName(int key){
         return "Unknown";
     }

+ 2 - 1
jme3-desktop/src/main/java/com/jme3/input/AWTKeyInput.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -235,6 +235,7 @@ public class AWTKeyInput extends AWTInput implements KeyInput, KeyListener{
       onKeyEvent(e, false);
     }
 
+    @Override
     public String getKeyName(int key){
       throw new UnsupportedOperationException("getKeyName is not implemented in AWTKeyInput");
     }

+ 1 - 0
jme3-desktop/src/main/java/com/jme3/input/awt/AwtKeyInput.java

@@ -623,6 +623,7 @@ public class AwtKeyInput implements KeyInput, KeyListener {
         return 0;
     }
 
+    @Override
     public String getKeyName(int key){
         throw new UnsupportedOperationException("getKeyName not implemented for awt input");
     }

+ 2 - 1
jme3-lwjgl/src/main/java/com/jme3/input/lwjgl/LwjglKeyInput.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -115,6 +115,7 @@ public class LwjglKeyInput implements KeyInput {
         return Sys.getTime() * LwjglTimer.LWJGL_TIME_TO_NANOS;
     }
     
+    @Override
     public String getKeyName(int key){
         throw new UnsupportedOperationException("getKeyName not implemented for lwjgl input");    
     }

+ 1 - 0
jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/Sync.java

@@ -110,6 +110,7 @@ class Sync {
 			// be a bit more accurate by running a separate sleeping daemon
 			// thread.
 			Thread timerAccuracyThread = new Thread(new Runnable() {
+                                @Override
 				public void run() {
 					try {
 						while(true)Thread.sleep(Long.MAX_VALUE);