aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-jogl/src/main
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-jogl/src/main
parentfabe162197c274aadcbc89e342f08e7c0bbe19ca (diff)
Replaces Guava's checkNotNull by Objects.requireNonNull
Diffstat (limited to 'ardor3d-jogl/src/main')
-rw-r--r--ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java b/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java
index 119820d..b3cbb6c 100644
--- a/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java
+++ b/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.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>.
*/
@@ -12,6 +12,7 @@ package com.ardor3d.input.jogl;
import java.util.EnumSet;
import java.util.LinkedList;
+import java.util.Objects;
import com.ardor3d.annotation.GuardedBy;
import com.ardor3d.framework.jogl.NewtWindowContainer;
@@ -19,7 +20,6 @@ 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;
import com.jogamp.newt.event.KeyAdapter;
@@ -46,7 +46,7 @@ public class JoglNewtKeyboardWrapper extends KeyAdapter implements KeyboardWrapp
public JoglNewtKeyboardWrapper(final NewtWindowContainer newtWindowContainer) {
super();
- _newtWindow = Preconditions.checkNotNull(newtWindowContainer.getNewtWindow(), "newtWindow");
+ _newtWindow = Objects.requireNonNull(newtWindowContainer.getNewtWindow(), "newtWindow");
}
@Override
@@ -102,7 +102,7 @@ public class JoglNewtKeyboardWrapper extends KeyAdapter implements KeyboardWrapp
/**
* Convert from NEWT key event to Ardor3D Key. Override to provide additional or custom behavior.
- *
+ *
* @param e
* the NEWT KeyEvent received by the input system.
* @return an Ardor3D Key, to be forwarded to the Predicate/Trigger system.