refactor: remove unneeded blocks/semicolons (#3273)

This commit is contained in:
Connor Tumbleson 2023-08-17 07:35:23 -04:00 committed by GitHub
parent 225c9089d9
commit fedc754a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,18 +196,12 @@ public class YamlReader {
}
public void readStringList(List<String> list) throws AndrolibException {
readList(list,
(items, reader) -> {
items.add(reader.getLine().getValue());
});
};
readList(list, (items, reader) -> items.add(reader.getLine().getValue()));
}
public void readIntList(List<Integer> list) throws AndrolibException {
readList(list,
(items, reader) -> {
items.add(reader.getLine().getValueInt());
});
};
readList(list, (items, reader) -> items.add(reader.getLine().getValueInt()));
}
public void readMap(Map<String, String> map) throws AndrolibException {
readObject(map,
@ -216,5 +210,5 @@ public class YamlReader {
YamlLine line = reader.getLine();
items.put(line.getKey(), line.getValue());
});
};
}
}