diff options
Diffstat (limited to 'ardor3d-jogl/src')
-rw-r--r-- | ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtMouseWrapper.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtMouseWrapper.java b/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtMouseWrapper.java index 426d9b4..2596a40 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtMouseWrapper.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtMouseWrapper.java @@ -10,11 +10,10 @@ package com.ardor3d.input.jogl; -import static com.google.common.base.Preconditions.checkNotNull; - import java.util.EnumMap; import java.util.EnumSet; import java.util.LinkedList; +import java.util.Objects; import com.ardor3d.annotation.GuardedBy; import com.ardor3d.framework.jogl.NewtWindowContainer; @@ -60,7 +59,7 @@ public class JoglNewtMouseWrapper implements MouseWrapper, MouseListener { protected int _ignoreY = Integer.MAX_VALUE; public JoglNewtMouseWrapper(final NewtWindowContainer newtWindowContainer, final MouseManager manager) { - _newtWindow = checkNotNull(newtWindowContainer.getNewtWindow(), "newtWindow"); + _newtWindow = Objects.requireNonNull(newtWindowContainer.getNewtWindow(), "newtWindow"); _manager = manager; for (final MouseButton mb : MouseButton.values()) { _lastClickTime.put(mb, 0L); |