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 2019/04/01 16:05:25 UTC

[commons-jexl] branch master updated: JEXL-292: allowing permissions to be subclassed

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 11a82f0  JEXL-292: allowing permissions to be subclassed
11a82f0 is described below

commit 11a82f0c76c9a683365031a488963b3fe80f2ec7
Author: henrib <he...@apache.org>
AuthorDate: Mon Apr 1 18:03:47 2019 +0200

    JEXL-292: allowing permissions to be subclassed
---
 .../apache/commons/jexl3/internal/introspection/Permissions.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java b/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java
index c79e7e0..45aa1e1 100644
--- a/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java
+++ b/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java
@@ -29,7 +29,7 @@ import org.apache.commons.jexl3.annotations.NoJexl;
  */
 public class Permissions {
     /** Make non instantiable. */
-    private Permissions() {
+    protected Permissions() {
     }
     /**
      * The default singleton.
@@ -156,7 +156,7 @@ public class Permissions {
      * @param interf whether interfaces should be checked as well
      * @return true if JEXL is allowed to introspect, false otherwise
      */
-    private static boolean allow(Class<?> clazz, boolean interf) {
+    protected boolean allow(Class<?> clazz, boolean interf) {
         if (clazz == null) {
             return false;
         }
@@ -194,7 +194,7 @@ public class Permissions {
      * @param method the method
      * @return true if JEXL is allowed to introspect, false otherwise
      */
-    private static boolean allow(Class<?> clazz, Method method) {
+    protected boolean allow(Class<?> clazz, Method method) {
         if (clazz != null) {
             try {
                 // check if method in that class is different from the method argument