aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-swt/src
diff options
context:
space:
mode:
Diffstat (limited to 'ardor3d-swt/src')
-rw-r--r--ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java
index 614bd40..fe47753 100644
--- a/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java
+++ b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java
@@ -3,16 +3,15 @@
*
* This file is part of Ardor3D.
*
- * Ardor3D is free software: you can redistribute it and/or modify it
+ * Ardor3D is free software: you can redistribute it and/or modify it
* under the terms of its license which may be found in the accompanying
* LICENSE file or at <http://www.ardor3d.com/LICENSE>.
*/
package com.ardor3d.input.swt;
-import static com.google.common.base.Preconditions.checkNotNull;
-
import java.util.LinkedList;
+import java.util.Objects;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.widgets.Control;
@@ -43,7 +42,7 @@ public class SwtKeyboardWrapper implements KeyboardWrapper, KeyListener {
public SwtKeyboardWrapper(final Control control) {
_upcomingEvents = new LinkedList<>();
- _control = checkNotNull(control, "control");
+ _control = Objects.requireNonNull(control, "control");
}
@Override
@@ -92,7 +91,7 @@ public class SwtKeyboardWrapper implements KeyboardWrapper, KeyListener {
/**
* Convert from SWT key event to Ardor3D Key. Override to provide additional or custom behavior.
- *
+ *
* @param e
* the SWT KeyEvent received by the input system.
* @return an Ardor3D Key, to be forwarded to the Predicate/Trigger system.