tmf: Make CtfLocation extend TmfLocation
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / TmfLocation.java
index 363ceef022c201c807c51ae099a4123a83abb5be..e8647740a89f0b7f322cfb4f4f5e6d496177881b 100644 (file)
@@ -33,18 +33,11 @@ public abstract class TmfLocation implements ITmfLocation {
     // Constructors
     // ------------------------------------------------------------------------
 
-    /**
-     * Default constructor (for the 'null' location)
-     */
-    @SuppressWarnings("unused")
-    private TmfLocation() {
-        fLocationInfo = null;
-    }
-
     /**
      * Standard constructor.
      *
-     * @param locationInfo the concrete trace location
+     * @param locationInfo
+     *            The concrete trace location
      */
     public TmfLocation(final Comparable<?> locationInfo) {
         fLocationInfo = locationInfo;
@@ -53,7 +46,8 @@ public abstract class TmfLocation implements ITmfLocation {
     /**
      * Copy constructor
      *
-     * @param location the original trace location
+     * @param location
+     *            The original trace location
      */
     public TmfLocation(final TmfLocation location) {
         fLocationInfo = location.fLocationInfo;
@@ -63,9 +57,6 @@ public abstract class TmfLocation implements ITmfLocation {
     // Getters
     // ------------------------------------------------------------------------
 
-    /* (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.core.trace.ITmfLocation#getLocationInfo()
-     */
     /**
      * @since 2.0
      */
@@ -78,9 +69,6 @@ public abstract class TmfLocation implements ITmfLocation {
     // Object
     // ------------------------------------------------------------------------
 
-    /* (non-Javadoc)
-     * @see java.lang.Object#hashCode()
-     */
     @Override
     public int hashCode() {
         final int prime = 31;
@@ -89,9 +77,6 @@ public abstract class TmfLocation implements ITmfLocation {
         return result;
     }
 
-    /* (non-Javadoc)
-     * @see java.lang.Object#equals(java.lang.Object)
-     */
     @Override
     public boolean equals(final Object obj) {
         if (this == obj) {
@@ -117,7 +102,7 @@ public abstract class TmfLocation implements ITmfLocation {
     @Override
     @SuppressWarnings("nls")
     public String toString() {
-        return "TmfLocation [fLocation=" + fLocationInfo + "]";
+        return getClass().getSimpleName() + " [fLocationInfo=" + fLocationInfo.toString() + "]";
     }
 
 }
This page took 0.024785 seconds and 5 git commands to generate.