This is an automated email from the ASF dual-hosted git repository. kusal pushed a commit to branch WW-5337-exclusion-performance in repository https://gitbox.apache.org/repos/asf/struts.git
commit 393eb8c0f89f802dffb7c6d0d20da4bdfd73fa82 Author: Kusal Kithul-Godage <g...@kusal.io> AuthorDate: Mon Aug 21 23:32:04 2023 +1000 WW-5337 Minor clean up OgnlUtil --- core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java index be738be93..21ebd5fea 100644 --- a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java +++ b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java @@ -24,7 +24,6 @@ import com.opensymphony.xwork2.inject.Container; import com.opensymphony.xwork2.inject.Inject; import com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor; import com.opensymphony.xwork2.util.CompoundRoot; -import com.opensymphony.xwork2.util.TextParseUtil; import com.opensymphony.xwork2.util.reflection.ReflectionException; import ognl.ClassResolver; import ognl.Ognl; @@ -190,9 +189,8 @@ public class OgnlUtil { } private Set<Class<?>> parseClasses(String commaDelimitedClasses) { - Set<String> classNames = TextParseUtil.commaDelimitedStringToSet(commaDelimitedClasses); + Set<String> classNames = commaDelimitedStringToSet(commaDelimitedClasses); Set<Class<?>> classes = new HashSet<>(); - for (String className : classNames) { try { classes.add(Class.forName(className)); @@ -200,7 +198,6 @@ public class OgnlUtil { throw new ConfigurationException("Cannot load class for exclusion/exemption configuration: " + className, e); } } - return classes; }