[infrastructure] move infered nullness warnings to error and update EEA (#8949)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -984,7 +984,7 @@ public abstract class RotelConnector {
|
||||
} else {
|
||||
for (RotelSource src : sourcesLabels.keySet()) {
|
||||
String label = sourcesLabels.get(src);
|
||||
if (value.startsWith(label)) {
|
||||
if (label != null && value.startsWith(label)) {
|
||||
if (source == null || sourcesLabels.get(source).length() < label.length()) {
|
||||
source = src;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ import java.io.InterruptedIOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
@@ -1145,11 +1146,10 @@ public class RotelSimuConnector extends RotelConnector {
|
||||
String label;
|
||||
if (considerFollowMain && source.getName().equals(RotelSource.CAT1_FOLLOW_MAIN.getName())) {
|
||||
label = "SOURCE";
|
||||
} else if (sourcesLabels.get(source) != null) {
|
||||
label = sourcesLabels.get(source);
|
||||
} else {
|
||||
label = source.getLabel();
|
||||
label = Objects.requireNonNullElse(sourcesLabels.get(source), source.getLabel());
|
||||
}
|
||||
|
||||
return label;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user