diff --git a/server/src/main/java/org/opensearch/Version.java b/server/src/main/java/org/opensearch/Version.java index f2bec388c70..1dc61f6cec0 100644 --- a/server/src/main/java/org/opensearch/Version.java +++ b/server/src/main/java/org/opensearch/Version.java @@ -71,9 +71,7 @@ public class Version implements Comparable, ToXContentFragment { public static final Version V_EMPTY = new Version(V_EMPTY_ID, org.apache.lucene.util.Version.LATEST); public static final Version V_1_0_0 = new Version(1000099, org.apache.lucene.util.Version.LUCENE_8_8_2); - public static final Version V_1_0_1 = new Version(1000199, org.apache.lucene.util.Version.LUCENE_8_8_2); public static final Version V_1_1_0 = new Version(1010099, org.apache.lucene.util.Version.LUCENE_8_9_0); - public static final Version V_1_1_1 = new Version(1010199, org.apache.lucene.util.Version.LUCENE_8_9_0); public static final Version V_1_2_0 = new Version(1020099, org.apache.lucene.util.Version.LUCENE_8_10_1); public static final Version V_1_2_1 = new Version(1020199, org.apache.lucene.util.Version.LUCENE_8_10_1); public static final Version V_1_2_2 = new Version(1020299, org.apache.lucene.util.Version.LUCENE_8_10_1); diff --git a/server/src/test/java/org/opensearch/VersionTests.java b/server/src/test/java/org/opensearch/VersionTests.java index 5fec4fc38d6..beff71eceab 100644 --- a/server/src/test/java/org/opensearch/VersionTests.java +++ b/server/src/test/java/org/opensearch/VersionTests.java @@ -49,7 +49,6 @@ import java.util.Locale; import java.util.Map; import java.util.Set; -import static org.opensearch.Version.V_1_1_1; import static org.opensearch.Version.V_1_3_0; import static org.opensearch.Version.MASK; import static org.opensearch.test.VersionUtils.allVersions; @@ -68,6 +67,7 @@ import static org.hamcrest.Matchers.sameInstance; public class VersionTests extends OpenSearchTestCase { public void testVersionComparison() { + Version V_1_1_1 = Version.fromString("1.1.1"); assertThat(V_1_1_1.before(V_1_3_0), is(true)); assertThat(V_1_1_1.before(V_1_1_1), is(false)); assertThat(V_1_3_0.before(V_1_1_1), is(false));