Skip to content

Commit e7d9729

Browse files
committed
chore: update javadoc deprecated tags
All deprecated infos should contain the version, since the element has been deprecated.
1 parent 237f5cf commit e7d9729

24 files changed

Lines changed: 58 additions & 23 deletions

File tree

pmd-ant/src/main/java/net/sourceforge/pmd/ant/CPDTask.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public class CPDTask extends Task {
6767

6868
private static final String TEXT_FORMAT = "text";
6969
private static final String XML_FORMAT = "xml";
70+
/**
71+
* @deprecated Since 7.3.0.
72+
*/
7073
@Deprecated
7174
private static final String XMLOLD_FORMAT = "xmlold";
7275
private static final String CSV_FORMAT = "csv";
@@ -78,6 +81,9 @@ public class CPDTask extends Task {
7881
private boolean ignoreIdentifiers;
7982
private boolean ignoreAnnotations;
8083
private boolean ignoreUsings;
84+
/**
85+
* @deprecated Since 7.3.0.
86+
*/
8187
@Deprecated
8288
private boolean skipLexicalErrors;
8389
private boolean skipDuplicateFiles;
@@ -241,7 +247,7 @@ public void setIgnoreUsings(boolean value) {
241247
}
242248

243249
/**
244-
* @deprecated Use {@link #setFailOnError(boolean)} instead.
250+
* @deprecated Since 7.3.0. Use {@link #setFailOnError(boolean)} instead.
245251
*/
246252
@Deprecated
247253
public void setSkipLexicalErrors(boolean skipLexicalErrors) {

pmd-cli/src/main/java/net/sourceforge/pmd/cli/commands/internal/AbstractAnalysisPmdSubcommand.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ protected static class FileCollectionOptions<C extends AbstractConfiguration> {
5555

5656
boolean usesDeprecatedIgnoreListOption = false;
5757

58+
/**
59+
* @deprecated Since 7.14.0. Use {@code --exclude-file-list} instead.
60+
*/
5861
@Option(names = "--ignore-list",
5962
description = "(DEPRECATED: use --exclude-file-list) Path to a file containing a list of files to exclude from the analysis, one path per line. "
6063
+ "This option can be combined with --dir, --file-list and --uri.")

pmd-cli/src/main/java/net/sourceforge/pmd/cli/commands/internal/CpdCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class CpdCommand extends AbstractAnalysisPmdSubcommand<CPDConfiguration>
7474
private boolean ignoreIdentifierAndLiteralSequences;
7575

7676
/**
77-
* @deprecated Since 7.3.0. Use --[no-]fail-on-error instead.
77+
* @deprecated Since 7.3.0. Use {@code --[no-]fail-on-error} instead.
7878
*/
7979
@Option(names = "--skip-lexical-errors",
8080
description = "Skip files which can't be tokenized due to invalid characters, instead of aborting with an error. Deprecated - use --[no-]fail-on-error instead.")

pmd-core/src/main/java/net/sourceforge/pmd/cpd/CPDConfiguration.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public class CPDConfiguration extends AbstractConfiguration {
6767

6868
private boolean ignoreIdentifierAndLiteralSequences = false;
6969

70+
/**
71+
* @deprecated Since 7.3.0.
72+
*/
7073
@Deprecated
7174
// Note: The default value was false until up to 7.3.0 and is true since 7.4.0
7275
private boolean skipLexicalErrors = true;
@@ -231,7 +234,7 @@ public void setIgnoreIdentifierAndLiteralSequences(boolean ignoreIdentifierAndLi
231234
}
232235

233236
/**
234-
* @deprecated This option will be removed. With {@link #isFailOnError()}, you can
237+
* @deprecated Since 7.3.0. This option will be removed. With {@link #isFailOnError()}, you can
235238
* control whether lexical errors should fail the build or not.
236239
*/
237240
@Deprecated
@@ -240,7 +243,7 @@ public boolean isSkipLexicalErrors() {
240243
}
241244

242245
/**
243-
* @deprecated This option will be removed. With {@link #setFailOnError(boolean)}, you can
246+
* @deprecated Since 7.3.0. This option will be removed. With {@link #setFailOnError(boolean)}, you can
244247
* control whether lexical errors should fail the build or not.
245248
*/
246249
@Deprecated

pmd-core/src/main/java/net/sourceforge/pmd/cpd/XMLOldRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* <p>This renderer is available as "xmlold".
1515
*
16-
* @deprecated Update your tools to use the standard XML renderer "xml" again.
16+
* @deprecated Since 7.3.0. Update your tools to use the standard XML renderer "xml" again.
1717
*/
1818
@Deprecated
1919
public class XMLOldRenderer implements CPDReportRenderer {

pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/AntlrToken.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class AntlrToken implements GenericToken<AntlrToken> {
3434
* @param previousComment The previous comment
3535
* @param textDoc The text document
3636
*
37-
* @deprecated Don't create antlr tokens directly, use an {@link AntlrTokenManager}
37+
* @deprecated Since 7.3.0. Don't create antlr tokens directly, use an {@link AntlrTokenManager}
3838
*/
3939
@Deprecated
4040
public AntlrToken(final Token token, final AntlrToken previousComment, TextDocument textDoc) {

pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/AbstractTokenManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void setSuppressMarker(String marker) {
3333
}
3434

3535
/**
36-
* @deprecated since 7.14.0. Use {@link #getSuppressionComments()} instead.
36+
* @deprecated Since 7.14.0. Use {@link #getSuppressionComments()} instead.
3737
*/
3838
@Deprecated
3939
public Map<Integer, String> getSuppressMap() {

pmd-core/src/main/java/net/sourceforge/pmd/lang/symboltable/package-info.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
*/
44

55
/**
6-
* @deprecated Since 7.19.0. All classes in this package are deprecated. The symbol table and type
6+
* <strong>Deprecated: Since 7.19.0.</strong><br>
7+
* <em>
8+
* All classes in this package are deprecated. The symbol table and type
79
* resolution implementation for Java has been rewritten from scratch for PMD 7.0.0. This package
810
* is the remains of the old symbol table API, that is only used by PL/SQL. For PMD 8.0.0 all these
911
* classes will be removed from pmd-core.
12+
* </em>
13+
*
14+
* @deprecated Since 7.19.0.
1015
*/
1116
@Deprecated
1217
package net.sourceforge.pmd.lang.symboltable;

pmd-core/src/main/java/net/sourceforge/pmd/renderers/CSVWriter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
import java.util.Iterator;
1010
import java.util.List;
1111

12+
import net.sourceforge.pmd.annotation.InternalApi;
13+
1214
/**
1315
* A generic writer that formats input items into rows and columns per the
1416
* provided column descriptors.
1517
*
1618
* @author Brian Remedios
1719
* @param <T>
18-
* @deprecated This is internal API and an implementation detail for {@link CSVRenderer}.
20+
* @apiNote This is internal API and an implementation detail for {@link CSVRenderer}.
1921
*/
22+
@InternalApi
2023
class CSVWriter<T> {
2124

2225
private final String separator; // e.g., the comma

pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTClassDeclaration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void setInterface() {
6060

6161

6262
/**
63-
* @deprecated Use {@link #getPermitsClause()} or {@link JClassSymbol#getPermittedSubtypes()}
63+
* @deprecated Since 7.8.0. Use {@link #getPermitsClause()} or {@link JClassSymbol#getPermittedSubtypes()}
6464
*/
6565
@Deprecated
6666
public List<ASTClassType> getPermittedSubclasses() {

0 commit comments

Comments
 (0)