diff options
author | Will Glass-Husain <wglass@forio.com> | 2020-07-16 21:59:43 -0700 |
---|---|---|
committer | Will Glass-Husain <wglass@forio.com> | 2020-07-16 21:59:43 -0700 |
commit | ad9109b40ca20d48955003dc8b0e5b669901ba7b (patch) | |
tree | 5313aa9ebcdd84b3d6af186bdd51c3f2c4551086 /velocity-engine-core | |
parent | 6b6a42ab9cbedb3591c2c95ab0e7e94db7d89ce2 (diff) | |
download | apache-velocity-engine-ad9109b40ca20d48955003dc8b0e5b669901ba7b.tar.gz |
whitespace fix
Diffstat (limited to 'velocity-engine-core')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/SecureIntrospectorImpl.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/SecureIntrospectorImpl.java b/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/SecureIntrospectorImpl.java index 38ac7ce8..acc35636 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/SecureIntrospectorImpl.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/SecureIntrospectorImpl.java @@ -87,30 +87,30 @@ public class SecureIntrospectorImpl extends Introspector implements SecureIntros */ public boolean checkObjectExecutePermission(Class clazz, String methodName) { - /** - * check for wait and notify - */ + /** + * check for wait and notify + */ if (methodName != null && (methodName.equals("wait") || methodName.equals("notify")) ) - { - return false; - } + { + return false; + } - /** - * Always allow the most common classes - Number, Boolean and String - */ - else if (Number.class.isAssignableFrom(clazz)) - { - return true; - } - else if (Boolean.class.isAssignableFrom(clazz)) - { - return true; - } - else if (String.class.isAssignableFrom(clazz)) - { - return true; - } + /** + * Always allow the most common classes - Number, Boolean and String + */ + else if (Number.class.isAssignableFrom(clazz)) + { + return true; + } + else if (Boolean.class.isAssignableFrom(clazz)) + { + return true; + } + else if (String.class.isAssignableFrom(clazz)) + { + return true; + } /** * Always allow Class.getName() |