diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/GenericToken.java b/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/GenericToken.java index 859cb1e1f8..18798da868 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/GenericToken.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/GenericToken.java @@ -16,11 +16,11 @@ public interface GenericToken { GenericToken getNext(); /** - * Obtain a special generic token which, according to the input stream which generated the instance of this token, + * Obtain a comment-type token which, according to the input stream which generated the instance of this token, * precedes this instance token and succeeds the previous generic token (if there is any). - * @return the special token if it exists; null if it does not exist + * @return the comment-type token if it exists; null if it does not exist */ - GenericToken getPreviousSpecialGenericToken(); + GenericToken getPreviousComment(); /** * Gets the token's text. diff --git a/pmd-cpp/src/main/ant/alljavacc.xml b/pmd-cpp/src/main/ant/alljavacc.xml index 6092c621e1..9347d126e4 100644 --- a/pmd-cpp/src/main/ant/alljavacc.xml +++ b/pmd-cpp/src/main/ant/alljavacc.xml @@ -59,7 +59,7 @@ public class Token implements GenericToken, java.io.Serializable]]>