Skip to content

Commit

Permalink
chore[storage]: rename generic type
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Jul 19, 2024
1 parent 552ebac commit cc76daf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ public static <T> List<T> convertToList(String content, Class<T> genericType) {
return Collections.emptyList();
}
var splits = content.split(StringUtils.COMMA_REGEX);
var length = splits.length;
var list = new ArrayList<T>();
for (var i = 0; i < length; i++) {
var value = ConvertUtils.convert(StringUtils.trim(splits[i]), genericType);
for (var split : splits) {
var value = ConvertUtils.convert(StringUtils.trim(split), genericType);
list.add(value);
}
return Collections.unmodifiableList(list);
Expand Down

0 comments on commit cc76daf

Please sign in to comment.