Skip to content

Commit 8524f4b

Browse files
committed
tmf: Fix IAxisDomain toString() and Javadoc
Change Range.toString() to use "Range" instead of "TimeRange". Change both toString() to use "IAxisDomain" instead of "AxisDomain". Change Javadoc to refer to generic axis instead of only X axis. Signed-off-by: Patrick Tasse <[email protected]>
1 parent bb67a0b commit 8524f4b

File tree

1 file changed

+4
-4
lines changed
  • tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/model

1 file changed

+4
-4
lines changed

tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/model/IAxisDomain.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
/**
20-
* Shows the available values of X axis.
20+
* Shows the available values of an axis.
2121
*
2222
* @author Siwei Zhang
2323
* @since 10.1
@@ -28,7 +28,7 @@ public sealed interface IAxisDomain permits IAxisDomain.Categorical, IAxisDomain
2828
* Categorical axis domain (e.g., names or labels).
2929
*
3030
* @param categories
31-
* the category labels for the X axis
31+
* the category labels for the axis
3232
*/
3333
record Categorical(List<String> categories) implements IAxisDomain {
3434
@Override
@@ -49,7 +49,7 @@ public int hashCode() {
4949

5050
@Override
5151
public String toString() {
52-
return "AxisDomain.Categorical{categories=" + categories + "}"; //$NON-NLS-1$ //$NON-NLS-2$
52+
return "IAxisDomain.Categorical{categories=" + categories + "}"; //$NON-NLS-1$ //$NON-NLS-2$
5353
}
5454
}
5555

@@ -81,7 +81,7 @@ public int hashCode() {
8181

8282
@Override
8383
public String toString() {
84-
return "AxisDomain.TimeRange{start=" + start + ", end=" + end + "}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
84+
return "IAxisDomain.Range{start=" + start + ", end=" + end + "}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)