Abstract toString into AbstractNode, deprecate the implementation

Log that the default implementation will be removed
This commit is contained in:
Clément Fournier
2018-01-25 03:02:44 +01:00
parent cd105125d8
commit 6a3b332aee
14 changed files with 36 additions and 29 deletions

View File

@ -78,10 +78,7 @@ public abstract class AbstractJavaNode extends AbstractNode implements JavaNode
return comment;
}
@Override
public String toString() {
return getXPathNodeName();
}
@Override
public final String getXPathNodeName() {

View File

@ -23,6 +23,7 @@ public abstract class Comment extends AbstractNode {
}
}
@Deprecated
public String toString() {
return getImage();
}

View File

@ -21,10 +21,7 @@ public class JavadocElement extends AbstractNode {
return tag;
}
@Override
public String toString() {
return getXPathNodeName();
}
@Override