diff --git a/lib/thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/expression/ThymeleafEvaluationContext.java b/lib/thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/expression/ThymeleafEvaluationContext.java index 4183095c4..c810062b7 100755 --- a/lib/thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/expression/ThymeleafEvaluationContext.java +++ b/lib/thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/expression/ThymeleafEvaluationContext.java @@ -239,17 +239,11 @@ public List getConstructorResolvers() { @Override public List getMethodResolvers() { - if (this.variableAccessRestricted) { - return this.restrictedModeContext.getMethodResolvers(); - } return super.getMethodResolvers(); } @Override public List getPropertyAccessors() { - if (this.variableAccessRestricted) { - return this.restrictedModeContext.getPropertyAccessors(); - } return super.getPropertyAccessors(); } diff --git a/lib/thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/expression/ThymeleafEvaluationContextWrapper.java b/lib/thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/expression/ThymeleafEvaluationContextWrapper.java index 361f035b7..f24a9f4f0 100755 --- a/lib/thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/expression/ThymeleafEvaluationContextWrapper.java +++ b/lib/thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/expression/ThymeleafEvaluationContextWrapper.java @@ -149,16 +149,10 @@ public List getConstructorResolvers() { } public List getMethodResolvers() { - if (this.variableAccessRestricted) { - return this.restrictedModeContext.getMethodResolvers(); - } return this.methodResolvers == null ? this.delegate.getMethodResolvers() : this.methodResolvers; } public List getPropertyAccessors() { - if (this.variableAccessRestricted) { - return this.restrictedModeContext.getPropertyAccessors(); - } return this.propertyAccessors == null ? this.delegate.getPropertyAccessors() : this.propertyAccessors; } diff --git a/lib/thymeleaf-spring6/src/main/java/org/thymeleaf/spring6/expression/ThymeleafEvaluationContext.java b/lib/thymeleaf-spring6/src/main/java/org/thymeleaf/spring6/expression/ThymeleafEvaluationContext.java index 53ff4e1d7..c39c0de04 100755 --- a/lib/thymeleaf-spring6/src/main/java/org/thymeleaf/spring6/expression/ThymeleafEvaluationContext.java +++ b/lib/thymeleaf-spring6/src/main/java/org/thymeleaf/spring6/expression/ThymeleafEvaluationContext.java @@ -239,17 +239,11 @@ public List getConstructorResolvers() { @Override public List getMethodResolvers() { - if (this.variableAccessRestricted) { - return this.restrictedModeContext.getMethodResolvers(); - } return super.getMethodResolvers(); } @Override public List getPropertyAccessors() { - if (this.variableAccessRestricted) { - return this.restrictedModeContext.getPropertyAccessors(); - } return super.getPropertyAccessors(); } diff --git a/lib/thymeleaf-spring6/src/main/java/org/thymeleaf/spring6/expression/ThymeleafEvaluationContextWrapper.java b/lib/thymeleaf-spring6/src/main/java/org/thymeleaf/spring6/expression/ThymeleafEvaluationContextWrapper.java index 137de580b..8191b54d9 100755 --- a/lib/thymeleaf-spring6/src/main/java/org/thymeleaf/spring6/expression/ThymeleafEvaluationContextWrapper.java +++ b/lib/thymeleaf-spring6/src/main/java/org/thymeleaf/spring6/expression/ThymeleafEvaluationContextWrapper.java @@ -149,16 +149,10 @@ public List getConstructorResolvers() { } public List getMethodResolvers() { - if (this.variableAccessRestricted) { - return this.restrictedModeContext.getMethodResolvers(); - } return this.methodResolvers == null ? this.delegate.getMethodResolvers() : this.methodResolvers; } public List getPropertyAccessors() { - if (this.variableAccessRestricted) { - return this.restrictedModeContext.getPropertyAccessors(); - } return this.propertyAccessors == null ? this.delegate.getPropertyAccessors() : this.propertyAccessors; }