Deprecate javacc generated code

This commit is contained in:
Clément Fournier
2020-01-22 17:19:29 +01:00
parent 2c670339d8
commit 60e97d0ec8
11 changed files with 164 additions and 2 deletions

View File

@ -91,6 +91,21 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
]]></replacevalue>
</replace>
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/cpp/ast"/>
</replaceregexp>
<replaceregexp>
<regexp pattern="public class ParseException " />
<substitution expression=" /** @deprecated Use superclass {@link net.sourceforge.pmd.lang.ast.ParseException} */
@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset file="${target}/net/sourceforge/pmd/lang/cpp/ast/ParseException.java"/>
</replaceregexp>
</target>
</project>