Commit 332e49d6 authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Suppress warnings from generics use

parent c8acc2ff
...@@ -60,11 +60,12 @@ public abstract class OutputFile<K extends Comparable<K>> { ...@@ -60,11 +60,12 @@ public abstract class OutputFile<K extends Comparable<K>> {
} }
private void printRow(final PrintWriter out, final K key) { private void printRow(final PrintWriter out, final K key) {
@SuppressWarnings("unchecked")
final List<String> fields = composeLine(toStrings(key), p -> Arrays.stream(p.toStrings(key))); final List<String> fields = composeLine(toStrings(key), p -> Arrays.stream(p.toStrings(key)));
writeLine(out, fields); writeLine(out, fields);
} }
private List<String> composeLine(String[] keyFieldArray, Function<Processor, Stream<String>> valueFields) { private List<String> composeLine(String[] keyFieldArray, @SuppressWarnings("rawtypes") Function<Processor, Stream<String>> valueFields) {
final List<String> fields = new LinkedList<>(Arrays.asList(keyFieldArray)); final List<String> fields = new LinkedList<>(Arrays.asList(keyFieldArray));
final List<String> processorFields = processors.stream() final List<String> processorFields = processors.stream()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment