diff options
author | Julien Gouesse <[email protected]> | 2018-07-14 13:59:22 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2018-07-14 13:59:22 +0200 |
commit | b4719060fa6c2040ae09cb92e6403755e7aec6ea (patch) | |
tree | ec441ae83cf65b4f2904b44a43fe5ad2892a73ae /ardor3d-swt/src | |
parent | fabe162197c274aadcbc89e342f08e7c0bbe19ca (diff) |
Replaces Guava's checkNotNull by Objects.requireNonNull
Diffstat (limited to 'ardor3d-swt/src')
-rw-r--r-- | ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java | 9 |
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. |