From 2f9ec6f2aa9d6cf7ad0455e41cf8bf82b0ff2c1e Mon Sep 17 00:00:00 2001 From: KennyTV Date: Sat, 24 Oct 2020 22:39:17 +0200 Subject: [PATCH] Remove redundant/already implicit check in VersionRange --- .../java/us/myles/ViaVersion/api/protocol/VersionRange.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/api/protocol/VersionRange.java b/common/src/main/java/us/myles/ViaVersion/api/protocol/VersionRange.java index 2cd7eb41e..c7d3a0d1c 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/protocol/VersionRange.java +++ b/common/src/main/java/us/myles/ViaVersion/api/protocol/VersionRange.java @@ -12,12 +12,12 @@ public class VersionRange { * * @param baseVersion base version * @param rangeFrom minor version the range begins at, must be greater than or equal to 0 - * @param rangeTo minor version the range ends at, must be greater than 0 and {@link #rangeFrom} + * @param rangeTo minor version the range ends at, must be greater than {@code rangeFrom} */ public VersionRange(String baseVersion, int rangeFrom, int rangeTo) { Preconditions.checkNotNull(baseVersion); Preconditions.checkArgument(rangeFrom >= 0); - Preconditions.checkArgument(rangeTo > rangeFrom && rangeTo > 0); + Preconditions.checkArgument(rangeTo > rangeFrom); this.baseVersion = baseVersion; this.rangeFrom = rangeFrom; this.rangeTo = rangeTo;