You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by he...@apache.org on 2022/11/05 17:38:18 UTC

[commons-jexl] 02/02: JEXL-384: revert code related to JEXL-381

This is an automated email from the ASF dual-hosted git repository.

henrib pushed a commit to branch JEXL-384
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git

commit 49e4842298c2410bea954ea972b98b9190173855
Author: henrib <he...@apache.org>
AuthorDate: Sat Nov 5 18:38:07 2022 +0100

    JEXL-384: revert code related to JEXL-381
---
 src/main/java/org/apache/commons/jexl3/JexlFeatures.java | 7 ++-----
 1 file changed, 2 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 58100769..124468fb 100644
--- a/src/main/java/org/apache/commons/jexl3/JexlFeatures.java
+++ b/src/main/java/org/apache/commons/jexl3/JexlFeatures.java
@@ -60,7 +60,7 @@ public final class JexlFeatures {
         "register", "reserved variable", "local variable", "assign/modify",
         "global assign/modify", "array reference", "create instance", "loop", "function",
         "method call", "set/map/array literal", "pragma", "annotation", "script", "lexical", "lexicalShade",
-        "thin-arrow", "fat-arrow", "namespace pragma"
+        "thin-arrow", "fat-arrow"
     };
     /** Registers feature ordinal. */
     private static final int REGISTER = 0;
@@ -98,8 +98,6 @@ public final class JexlFeatures {
     public static final int THIN_ARROW = 16;
     /** Fat-arrow lambda syntax. */
     public static final int FAT_ARROW = 17;
-    /** Allow jexl.namespace pragma syntax. */
-    public static final int NAMESPACE_PRAGMA = 18;
 
     /**
      * Creates an all-features-enabled instance.
@@ -117,8 +115,7 @@ public final class JexlFeatures {
                 | (1L << PRAGMA)
                 | (1L << ANNOTATION)
                 | (1L << SCRIPT)
-                | (1L << THIN_ARROW)
-                | (1L << NAMESPACE_PRAGMA);
+                | (1L << THIN_ARROW);
         reservedNames = Collections.emptySet();
         nameSpaces = TEST_STR_FALSE;
     }