Abstract toString into AbstractNode, deprecate the implementation
Log that the default implementation will be removed
This commit is contained in:
@ -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() {
|
||||
|
@ -23,6 +23,7 @@ public abstract class Comment extends AbstractNode {
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public String toString() {
|
||||
return getImage();
|
||||
}
|
||||
|
@ -21,10 +21,7 @@ public class JavadocElement extends AbstractNode {
|
||||
return tag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getXPathNodeName();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user