-
Enhancement
-
Resolution: Fixed
-
P4
-
21
-
b21
DCEndPosTrr<T extends DCEndPosTree> has a method
T setEndPos(int)
so that it can easily be used in chained method calls.
But that flexibility is lost for subtypes of DCInlineTag which is defined as
public abstract static class DCInlineTag extends DCEndPosTree<DCInlineTag> implements InlineTagTree {
In other words, the T in EndPosTree<T> is fixed at DCInlineTag.
We should change DCInlineTag to itself be a generic type.
T setEndPos(int)
so that it can easily be used in chained method calls.
But that flexibility is lost for subtypes of DCInlineTag which is defined as
public abstract static class DCInlineTag extends DCEndPosTree<DCInlineTag> implements InlineTagTree {
In other words, the T in EndPosTree<T> is fixed at DCInlineTag.
We should change DCInlineTag to itself be a generic type.