Skip to content

Commit 16af9ab

Browse files
committed
Marked an obsolete function as deprecated.
1 parent 17646fb commit 16af9ab

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/main/java/eu/europa/ted/eforms/xpath/XPathStep.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,19 @@ public boolean isTheSameAs(final XPathStep other) {
116116
return pathPredicates.equals(contextPredicates);
117117
}
118118

119+
/*
120+
* @deprecated Use {@link #isSameAsOrNarrowerThan(XPathStep)} instead.
121+
*
122+
* This method was renamed for clarity. It is marked as deprecated so that the
123+
* library interface does not change. It will be removed in the next major
124+
* version of the library.
125+
*
126+
*/
127+
@Deprecated(since = "1.3.0", forRemoval = true)
128+
public boolean isSimilarTo(final XPathStep other) {
129+
return isSameAsOrNarrowerThan(other);
130+
}
131+
119132
public boolean isSameAsOrNarrowerThan(final XPathStep other) {
120133

121134
// First check the step texts are different.

0 commit comments

Comments
 (0)