tmf: make TmfTimeRange static ranges NonNull
authorVincent Perot <vincent.perot@ericsson.com>
Wed, 30 Jul 2014 18:49:41 +0000 (14:49 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 31 Jul 2014 21:44:31 +0000 (17:44 -0400)
This avoids useless null checks in tmf.pcap

Change-Id: Ice73d87d4119469f297d434ca6aca10233807160
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30758
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/TmfTimeRange.java

index dae79c1ffa5a18f3131c2c70898ced2034ef2bc7..2f373fcb510c65a86a6d9ca5fb67c9916c52d0e7 100644 (file)
@@ -13,6 +13,8 @@
 
 package org.eclipse.linuxtools.tmf.core.timestamp;
 
+import org.eclipse.jdt.annotation.NonNull;
+
 /**
  * A utility class to define and manage time ranges.
  *
@@ -31,12 +33,12 @@ public class TmfTimeRange {
     /**
      * The full possible time range
      */
-    public static final TmfTimeRange ETERNITY = new EternityTimeRange();
+    public static final @NonNull TmfTimeRange ETERNITY = new EternityTimeRange();
 
     /**
      * The null time range
      */
-    public static final TmfTimeRange NULL_RANGE = new TmfTimeRange();
+    public static final @NonNull TmfTimeRange NULL_RANGE = new TmfTimeRange();
 
     // ------------------------------------------------------------------------
     // Attributes
This page took 0.026412 seconds and 5 git commands to generate.