From b4719060fa6c2040ae09cb92e6403755e7aec6ea Mon Sep 17 00:00:00 2001 From: Julien Gouesse Date: Sat, 14 Jul 2018 13:59:22 +0200 Subject: Replaces Guava's checkNotNull by Objects.requireNonNull --- .../main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ardor3d-jogl/src/main/java') 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 . */ @@ -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. -- cgit v1.2.3