aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-awt
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2018-07-14 13:59:22 +0200
committerJulien Gouesse <[email protected]>2018-07-14 13:59:22 +0200
commitb4719060fa6c2040ae09cb92e6403755e7aec6ea (patch)
treeec441ae83cf65b4f2904b44a43fe5ad2892a73ae /ardor3d-awt
parentfabe162197c274aadcbc89e342f08e7c0bbe19ca (diff)
Replaces Guava's checkNotNull by Objects.requireNonNull
Diffstat (limited to 'ardor3d-awt')
-rw-r--r--ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtKeyboardWrapper.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtKeyboardWrapper.java b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtKeyboardWrapper.java
index 4db16eb..c9247d4 100644
--- a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtKeyboardWrapper.java
+++ b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtKeyboardWrapper.java
@@ -3,7 +3,7 @@
*
* 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>.
*/
@@ -16,13 +16,13 @@ import java.awt.event.FocusListener;
import java.awt.event.KeyListener;
import java.util.EnumSet;
import java.util.LinkedList;
+import java.util.Objects;
import com.ardor3d.annotation.GuardedBy;
import com.ardor3d.input.Key;
import com.ardor3d.input.KeyEvent;
import com.ardor3d.input.KeyState;
import com.ardor3d.input.KeyboardWrapper;
-import com.google.common.base.Preconditions;
import com.google.common.collect.AbstractIterator;
import com.google.common.collect.PeekingIterator;
@@ -43,7 +43,7 @@ public class AwtKeyboardWrapper implements KeyboardWrapper, KeyListener {
protected final EnumSet<Key> _pressedList = EnumSet.noneOf(Key.class);
public AwtKeyboardWrapper(final Component component) {
- _component = Preconditions.checkNotNull(component, "component");
+ _component = Objects.requireNonNull(component, "component");
}
@Override
@@ -101,7 +101,7 @@ public class AwtKeyboardWrapper implements KeyboardWrapper, KeyListener {
/**
* Convert from AWT key event to Ardor3D Key. Override to provide additional or custom behavior.
- *
+ *
* @param e
* the AWT KeyEvent received by the input system.
* @return an Ardor3D Key, to be forwarded to the Predicate/Trigger system.