cbuescher commented on code in PR #16968:
URL: https://github.com/apache/lucene/pull/16968#discussion_r4458405804
##########
lucene/core/src/java/org/apache/lucene/util/automaton/RegExp.java:
##########
@@ -415,14 +415,10 @@ public enum Kind {
// ----- Matching flags ( > 0xff <= 0xffff ) ------
- /**
- * Allows case-insensitive matching of ASCII characters.
- *
- * <p>This flag has been deprecated in favor of {@link #CASE_INSENSITIVE}
that supports the full
- * range of Unicode characters. Usage of this flag now has the same behavior
as {@link
- * #CASE_INSENSITIVE}
- */
- @Deprecated public static final int ASCII_CASE_INSENSITIVE = 0x0100;
+ // Question for review: should we drop the constant instead? Keeping it
makes raw 0x0100 flag
+ // values from 10.x
Review Comment:
The main reason would be for the rare case where users of the `public
RegExp(String s, int syntax_flags, int match_flags)` constructor pass in the
flags directly instead of using the constant. Users of the constant will get a
compile error after removal, but if you pass in the raw flag value instead you
would get a different behaviour (silently ignoring the flag completely).
In the current version this change leaves the contant but sets it to
"private" so its not part of the public API any longer.
I'm totally fine with removal as well though, just left this here as a
discussion point where I wasn't sure about the best solution.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]