Use the NonNull utility methods where we can
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.pcap.ui / src / org / eclipse / tracecompass / internal / tmf / pcap / ui / stream / StreamListView.java
index 7fed461c008427ddcd4451388adace9d765fa133..034620980da4d6b7832eb307c4763e5761d36694 100644 (file)
@@ -17,7 +17,6 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.custom.CTabFolder;
@@ -275,9 +274,10 @@ public class StreamListView extends TmfView {
                 if (tables == null) {
                     return;
                 }
-                for (TmfPcapProtocol p : tables.keySet()) {
-                    @SuppressWarnings("null")
-                    @NonNull TmfPcapProtocol protocol = p;
+                for (TmfPcapProtocol protocol : tables.keySet()) {
+                    if (protocol == null) {
+                        throw new IllegalStateException();
+                    }
                     TmfPacketStreamBuilder builder = analysis.getBuilder(protocol);
                     if (builder != null && !(tables.get(protocol).isDisposed())) {
                         for (TmfPacketStream stream : builder.getStreams()) {
This page took 0.02604 seconds and 5 git commands to generate.