ss: Mark HistoryTreeBackend#getSHT() to be @NonNull
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 21 Jul 2016 20:43:29 +0000 (16:43 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Fri, 22 Jul 2016 23:18:35 +0000 (19:18 -0400)
Was already taken for granted, just not explicitly annotated.

Change-Id: Ib0ea170583da6a08c8c27d9cfae327735341117c
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/77728
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/backend/historytree/HistoryTreeBackend.java

index c867fb94c71be55881ef586fc359acd1f1c95391..c67c44c784f57fe3f8756b123862cc6094cd162e 100644 (file)
@@ -46,7 +46,7 @@ public class HistoryTreeBackend implements IStateHistoryBackend {
     /**
      * The history tree that sits underneath.
      */
-    private final HistoryTree fSht;
+    private final @NonNull HistoryTree fSht;
 
     /** Indicates if the history tree construction is done */
     private volatile boolean fFinishedBuilding = false;
@@ -162,7 +162,7 @@ public class HistoryTreeBackend implements IStateHistoryBackend {
      *             If there was a problem during creation
      */
     @VisibleForTesting
-    protected HistoryTree initializeSHT(@NonNull HTConfig conf) throws IOException {
+    protected @NonNull HistoryTree initializeSHT(@NonNull HTConfig conf) throws IOException {
         return new HistoryTree(conf);
     }
 
@@ -179,7 +179,7 @@ public class HistoryTreeBackend implements IStateHistoryBackend {
      *             If there was a problem during creation
      */
     @VisibleForTesting
-    protected HistoryTree initializeSHT(@NonNull File existingStateFile, int providerVersion) throws IOException {
+    protected @NonNull HistoryTree initializeSHT(@NonNull File existingStateFile, int providerVersion) throws IOException {
         return new HistoryTree(existingStateFile, providerVersion);
     }
 
@@ -192,7 +192,7 @@ public class HistoryTreeBackend implements IStateHistoryBackend {
      *
      * @return The history tree
      */
-    protected final HistoryTree getSHT() {
+    protected final @NonNull HistoryTree getSHT() {
         return fSht;
     }
 
This page took 0.026098 seconds and 5 git commands to generate.