1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-05 23:22:47 +00:00

Fixes issues found by findbugs

This commit is contained in:
2011-12-29 13:27:55 -02:00
parent 92ebaacf67
commit 1f2b700311
10 changed files with 28 additions and 35 deletions

View File

@@ -63,8 +63,10 @@ public class CSVUtils {
public static <R> List<R> parseCSV(BufferedReader reader,
CSVProcessor<R> processor) throws IOException {
final List<R> results = CollectionFactory.newList();
final String header[] = reader.readLine().split(",");
String line;
String line = reader.readLine();
if (line == null)
return results;
final String header[] = line.split(",");
while ((line = reader.readLine()) != null) {
results.add(processor.process(header, line.split(",")));
}