projects
/
deliverable
/
tracecompass.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the TmfLocation final and get rid of clone()
[deliverable/tracecompass.git]
/
org.eclipse.linuxtools.tmf.core
/
src
/
org
/
eclipse
/
linuxtools
/
tmf
/
core
/
trace
/
TmfLongLocation.java
diff --git
a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLongLocation.java
b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLongLocation.java
index f4ed38a7ee0968317b60648395d644782b0602de..b54ec5da31d08603c9e703f493799f0f545617cd 100644
(file)
--- a/
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLongLocation.java
+++ b/
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLongLocation.java
@@
-12,32
+12,38
@@
package org.eclipse.linuxtools.tmf.core.trace;
package org.eclipse.linuxtools.tmf.core.trace;
-
/**
/**
- * <b><u>TmfLongLocation</u></b>
- * <p>
- * Implement me. Please.
- * <p>
+ * A concrete implementation of TmfLocation based on Long:s
+ *
+ * @author Francois Chouinard
* @since 2.0
*/
* @since 2.0
*/
-public class TmfLongLocation extends TmfLocation {
+public
final
class TmfLongLocation extends TmfLocation {
/**
/**
- * @param location the location
+ * The normal constructor
+ *
+ * @param locationInfo the concrete location
*/
*/
- public TmfLongLocation(
Long location
) {
- super(location);
+ public TmfLongLocation(
final Long locationInfo
) {
+ super(location
Info
);
}
/**
}
/**
+ * The copy constructor
+ *
* @param other the other location
*/
* @param other the other location
*/
- public TmfLongLocation(TmfLongLocation other) {
+ public TmfLongLocation(
final
TmfLongLocation other) {
super(other.getLocationInfo());
}
super(other.getLocationInfo());
}
+ /* (non-Javadoc)
+ * @see org.eclipse.linuxtools.tmf.core.trace.ITmfLocation#getLocationInfo()
+ */
@Override
@Override
- public
TmfLongLocation clone
() {
- return
new TmfLongLocation((Long) getLocationInfo()
);
+ public
Long getLocationInfo
() {
+ return
(Long) super.getLocationInfo(
);
}
}
+
}
}
This page took
0.025092 seconds
and
5
git commands to generate.