Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

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>> {
}
private void printRow(final PrintWriter out, final K key) {
@SuppressWarnings("unchecked")
final List<String> fields = composeLine(toStrings(key), p -> Arrays.stream(p.toStrings(key)));
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> 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