|
|
@ -192,9 +192,12 @@ public class AlphaFineConfigManager implements XMLable { |
|
|
|
if (tmpVal != null) { |
|
|
|
if (tmpVal != null) { |
|
|
|
tmpVal = tmpVal.replace("[",StringUtils.EMPTY).replace("]",StringUtils.EMPTY); |
|
|
|
tmpVal = tmpVal.replace("[",StringUtils.EMPTY).replace("]",StringUtils.EMPTY); |
|
|
|
Stack<String> stack = new SizedStack<>(3); |
|
|
|
Stack<String> stack = new SizedStack<>(3); |
|
|
|
List<String> historyList = Arrays.asList(tmpVal.split(",")); |
|
|
|
String[] historyList = tmpVal.split(","); |
|
|
|
for (String history : historyList) { |
|
|
|
for (String history : historyList) { |
|
|
|
stack.add(history.trim()); |
|
|
|
String value = history.trim(); |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(value)) { |
|
|
|
|
|
|
|
stack.add(value); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
historySearchMap.put(reader.getAttrAsString("user", StringUtils.EMPTY), stack); |
|
|
|
historySearchMap.put(reader.getAttrAsString("user", StringUtils.EMPTY), stack); |
|
|
|
} |
|
|
|
} |
|
|
@ -215,7 +218,10 @@ public class AlphaFineConfigManager implements XMLable { |
|
|
|
String[] idArr = tmpVal.split(","); |
|
|
|
String[] idArr = tmpVal.split(","); |
|
|
|
Set<Long> setId = new HashSet<>(); |
|
|
|
Set<Long> setId = new HashSet<>(); |
|
|
|
for (String id : idArr) { |
|
|
|
for (String id : idArr) { |
|
|
|
setId.add(Long.parseLong(id.trim())); |
|
|
|
String value = id.trim(); |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(value)) { |
|
|
|
|
|
|
|
setId.add(Long.parseLong(value)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
readSetMap.put(reader.getAttrAsString("user", StringUtils.EMPTY), setId); |
|
|
|
readSetMap.put(reader.getAttrAsString("user", StringUtils.EMPTY), setId); |
|
|
|
} |
|
|
|
} |
|
|
|