aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Perot2014-07-30 14:49:41 (EDT)
committerAlexandre Montplaisir2014-07-31 17:44:31 (EDT)
commit30ebac5d5128800aa4e2903660210a7afa113dc8 (patch)
tree7caf25ceebe8836a08b10369c54a5d8194717ffd
parent6ef7c7ac205c12bd89d91ceb0ce4d1bca3737426 (diff)
downloadorg.eclipse.linuxtools-30ebac5d5128800aa4e2903660210a7afa113dc8.zip
org.eclipse.linuxtools-30ebac5d5128800aa4e2903660210a7afa113dc8.tar.gz
org.eclipse.linuxtools-30ebac5d5128800aa4e2903660210a7afa113dc8.tar.bz2
tmf: make TmfTimeRange static ranges NonNullrefs/changes/58/30758/4
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
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/TmfTimeRange.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/TmfTimeRange.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/TmfTimeRange.java
index dae79c1..2f373fc 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/TmfTimeRange.java
+++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/TmfTimeRange.java
@@ -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