|
@@ -31,7 +31,6 @@ import com.dmdirc.util.InvalidConfigFileException;
|
31
|
31
|
|
32
|
32
|
import java.io.File;
|
33
|
33
|
import java.io.IOException;
|
34
|
|
-import java.util.Arrays;
|
35
|
34
|
import java.util.Collection;
|
36
|
35
|
import java.util.Collections;
|
37
|
36
|
import java.util.Map;
|
|
@@ -75,9 +74,9 @@ public class DataLoaderWorker
|
75
|
74
|
try {
|
76
|
75
|
data.read();
|
77
|
76
|
} catch (IOException ex) {
|
78
|
|
- return Arrays.asList(Collections.<String, String>emptyMap());
|
|
77
|
+ return Collections.<Map<String, String>>emptyList();
|
79
|
78
|
} catch (InvalidConfigFileException ex) {
|
80
|
|
- return Arrays.asList(Collections.<String, String>emptyMap());
|
|
79
|
+ return Collections.<Map<String, String>>emptyList();
|
81
|
80
|
}
|
82
|
81
|
return data.getKeyDomains().values();
|
83
|
82
|
}
|
|
@@ -92,10 +91,10 @@ public class DataLoaderWorker
|
92
|
91
|
try {
|
93
|
92
|
data = get();
|
94
|
93
|
} catch (InterruptedException ex) {
|
95
|
|
- data = Arrays.asList(Collections.<String, String>emptyMap());
|
|
94
|
+ data = Collections.<Map<String, String>>emptyList();
|
96
|
95
|
} catch (ExecutionException ex) {
|
97
|
96
|
Logger.appError(ErrorLevel.MEDIUM, ex.getMessage(), ex);
|
98
|
|
- data = Arrays.asList(Collections.<String, String>emptyMap());
|
|
97
|
+ data = Collections.<Map<String, String>>emptyList();
|
99
|
98
|
}
|
100
|
99
|
final int selectedRow;
|
101
|
100
|
if (table.getRowCount() > 0 && table.getSelectedRow() > 0) {
|