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-core | |
parent | fabe162197c274aadcbc89e342f08e7c0bbe19ca (diff) |
Replaces Guava's checkNotNull by Objects.requireNonNull
Diffstat (limited to 'ardor3d-core')
-rw-r--r-- | ardor3d-core/src/main/java/com/ardor3d/input/logical/TwoInputStates.java | 6 |
1 files changed, 2 insertions, 4 deletions
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() { |