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 --- .../src/main/java/com/ardor3d/input/logical/TwoInputStates.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ardor3d-core') diff --git a/ardor3d-core/src/main/java/com/ardor3d/input/logical/TwoInputStates.java b/ardor3d-core/src/main/java/com/ardor3d/input/logical/TwoInputStates.java index 76cff2e..205055a 100644 --- a/ardor3d-core/src/main/java/com/ardor3d/input/logical/TwoInputStates.java +++ b/ardor3d-core/src/main/java/com/ardor3d/input/logical/TwoInputStates.java @@ -10,8 +10,6 @@ package com.ardor3d.input.logical; -import static com.google.common.base.Preconditions.checkNotNull; - import java.util.Objects; import com.ardor3d.annotation.Immutable; @@ -39,8 +37,8 @@ public final class TwoInputStates { * if either parameter is null */ public TwoInputStates(final InputState previous, final InputState current) { - _previous = checkNotNull(previous, "previous"); - _current = checkNotNull(current, "current"); + _previous = Objects.requireNonNull(previous, "previous"); + _current = Objects.requireNonNull(current, "current"); } public InputState getPrevious() { -- cgit v1.2.3