[O] More cleanup, return 400 for bad requests

This commit is contained in:
Azalea
2024-03-26 23:03:40 -04:00
parent 305d1cea94
commit c99d8e7e75
7 changed files with 24 additions and 53 deletions

View File

@@ -35,7 +35,7 @@ public class IntegerListConverter implements AttributeConverter<List<Integer>, S
@Override
public List<Integer> convertToEntityAttribute(String string) {
if (string != null && !string.isEmpty()) {
List<Integer> iList = new ArrayList<Integer>();
List<Integer> iList = new ArrayList<>();
for (String s : string.split(SPLIT_CHAR)) {
iList.add(Integer.parseInt(s));
}