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 2021/06/17 10:31:49 UTC

[commons-jexl] branch master updated: JEXL: unused import

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

henrib 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 21d1511  JEXL: unused import
21d1511 is described below

commit 21d1511b4db58ee4e22718a7f8175331fb01a923
Author: henrib <he...@apache.org>
AuthorDate: Thu Jun 17 12:31:42 2021 +0200

    JEXL: unused import
---
 .../org/apache/commons/jexl3/introspection/JexlUberspect.java    | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/jexl3/introspection/JexlUberspect.java b/src/main/java/org/apache/commons/jexl3/introspection/JexlUberspect.java
index 30a484a..08a9b02 100644
--- a/src/main/java/org/apache/commons/jexl3/introspection/JexlUberspect.java
+++ b/src/main/java/org/apache/commons/jexl3/introspection/JexlUberspect.java
@@ -115,7 +115,7 @@ public interface JexlUberspect {
     /**
      * A resolver types list tailored for POJOs, favors '.' over '[]'.
      */
-    List<PropertyResolver> POJO = Collections.unmodifiableList(Arrays.asList(
+    static final List<PropertyResolver> POJO = Collections.unmodifiableList(Arrays.asList(
             JexlResolver.PROPERTY,
             JexlResolver.MAP,
             JexlResolver.LIST,
@@ -124,10 +124,11 @@ public interface JexlUberspect {
             JexlResolver.CONTAINER
     ));
 
+
     /**
      * A resolver types list tailored for Maps, favors '[]' over '.'.
      */
-    List<PropertyResolver> MAP = Collections.unmodifiableList(Arrays.asList(
+    static final List<PropertyResolver> MAP = Collections.unmodifiableList(Arrays.asList(
             JexlResolver.MAP,
             JexlResolver.LIST,
             JexlResolver.DUCK,
@@ -164,7 +165,7 @@ public interface JexlUberspect {
      * If the operator is '[]' or if the operator is null and the object is a map, use the MAP list of resolvers;
      * Other cases use the POJO list of resolvers.
      */
-    ResolverStrategy JEXL_STRATEGY = (op, obj) -> {
+    static final ResolverStrategy JEXL_STRATEGY = (op, obj) -> {
         if (op == JexlOperator.ARRAY_GET) {
             return MAP;
         }
@@ -183,7 +184,7 @@ public interface JexlUberspect {
      * <p>If the operator is '[]' or if the object is a map, use the MAP list of resolvers.
      * Otherwise, use the POJO list of resolvers.</p>
      */
-    ResolverStrategy MAP_STRATEGY = (op, obj) -> {
+    static final ResolverStrategy MAP_STRATEGY = (op, obj) -> {
         if (op == JexlOperator.ARRAY_GET) {
             return MAP;
         }