tmf: Fix some Sonar warnings in the state system code
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / statesystem / TmfStateSystemFactory.java
index 5dfa164f66631e96c2b24254b0ac9941a88ca336..ebcb251c3350d72fbda3023e6ede92986a1d1a4e 100644 (file)
@@ -40,7 +40,7 @@ public final class TmfStateSystemFactory extends TmfComponent {
     private TmfStateSystemFactory() {}
 
     /** Size of the blocking queue to use when building a state history */
-    private final static int QUEUE_SIZE = 10000;
+    private static final int QUEUE_SIZE = 10000;
 
     /**
      * Load the history file matching the target trace. If the file already
@@ -82,8 +82,7 @@ public final class TmfStateSystemFactory extends TmfComponent {
                     stateProvider.getVersion();
             try {
                 htBackend = new HistoryTreeBackend(htFile, version);
-                ITmfStateSystem ss = HistoryBuilder.openExistingHistory(htBackend);
-                return ss;
+                return HistoryBuilder.openExistingHistory(htBackend);
             } catch (IOException e) {
                 /*
                  * There was an error opening the existing file. Perhaps it was
This page took 0.024275 seconds and 5 git commands to generate.