mirror of
https://github.com/apache/struts.git
synced 2026-08-05 22:56:59 +00:00
Cleaner result name parsing
This commit is contained in:
+2
-5
@@ -777,12 +777,9 @@ public class XmlConfigurationProvider implements ConfigurationProvider {
|
||||
}
|
||||
params.putAll(resultParams);
|
||||
|
||||
Set<String> resultNamesSet;
|
||||
if (",".equals(resultName.trim())) {
|
||||
resultNamesSet = new HashSet<>(1);
|
||||
Set<String> resultNamesSet = TextParseUtil.commaDelimitedStringToSet(resultName);
|
||||
if (resultNamesSet.isEmpty()) {
|
||||
resultNamesSet.add(resultName);
|
||||
} else {
|
||||
resultNamesSet = TextParseUtil.commaDelimitedStringToSet(resultName);
|
||||
}
|
||||
|
||||
for (String name : resultNamesSet) {
|
||||
|
||||
Reference in New Issue
Block a user