Apache Lucene open-source search software
Remove deprecated Operations.concatenate and union methods (#15762)
Saurabh Singh94b01922a54b
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 7a68265fac0..1d0eb40bca3 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -7,6 +7,10 @@ http://s.apache.org/luceneversionsAPI Changes---------------------+* GITHUB#XXXXX: Remove deprecated Operations.concatenate(Automaton, Automaton) and+ Operations.union(Automaton, Automaton) methods. Use the List/Collection variants instead.+ (Saurabh Singh)+* GITHUB#XXXXX: Remove deprecated RegExp complement syntax support. The DEPRECATED_COMPLEMENT flag,REGEXP_DEPRECATED_COMPLEMENT enum value, and makeDeprecatedComplement method have been removed.Users should use complement bracket expressions ([^...]) instead. (Saurabh Singh)diff --git a/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java b/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.javaindex 6974cd5137b..af11380460a 100644--- a/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java+++ b/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java@@ -64,18 +64,6 @@ public final class Operations {private Operations() {}- /**- * Returns an automaton that accepts the concatenation of the languages of the given automata.- *- * <p>Complexity: linear in total number of states.- *- * @deprecated use {@link #concatenate(List)} instead- */- @Deprecated- public static Automaton concatenate(Automaton a1, Automaton a2) {- return concatenate(Arrays.asList(a1, a2));- }-/*** Returns an automaton that accepts the concatenation of the languages of the given automata.*@@ -474,18 +462,6 @@ public final class Operations {return reachableFromAccept.isEmpty() == false;}- /**- * Returns an automaton that accepts the union of the languages of the given automata.- *- * <p>Complexity: linear in number of states.- *- * @deprecated use {@link #union(Collection)} instead- */- @Deprecated- public static Automaton union(Automaton a1, Automaton a2) {- return union(Arrays.asList(a1, a2));- }-/*** Returns an automaton that accepts the union of the languages of the given automata.*