This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
The following commit(s) were added to refs/heads/master by this push: new 68860d95 Needs to track feature list 68860d95 is described below commit 68860d95e342da0791585d7c6a907bf0c04b1f7c Author: Sebb <s...@apache.org> AuthorDate: Mon Oct 23 11:23:07 2023 +0100 Needs to track feature list So move closer together --- src/main/java/org/apache/commons/jexl3/JexlFeatures.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/jexl3/JexlFeatures.java b/src/main/java/org/apache/commons/jexl3/JexlFeatures.java index 62536618..7b732bed 100644 --- a/src/main/java/org/apache/commons/jexl3/JexlFeatures.java +++ b/src/main/java/org/apache/commons/jexl3/JexlFeatures.java @@ -126,6 +126,12 @@ public final class JexlFeatures { /** Captured variables are const. */ public static final int CONST_CAPTURE = 22; + /** + * All features. + * N.B. ensure this is updated if additional features are added. + */ + private static final long ALL_FEATURES = (1L << (CONST_CAPTURE + 1)) - 1L; + /** * The default features flag mask. * <p>Meant for compatibility with scripts written before 3.3.1</p> @@ -161,11 +167,6 @@ public final class JexlFeatures { & ~(1L << COMPARATOR_NAMES) & ~(1L << PRAGMA_ANYWHERE); - /** - * All features. - */ - private static final long ALL_FEATURES = (1L << (CONST_CAPTURE + 1)) - 1L; - /** * Creates an all features enabled set. * @return a new instance of all features set