Skip to content

Commit 7f2951e

Browse files
committed
Checkstyle: update external URLs to new format
1 parent e92bee6 commit 7f2951e

File tree

191 files changed

+337
-337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+337
-337
lines changed

checkstyle/AbbreviationAsWordInName.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ To configure to check variables and classes identifiers, do not ignore variables
3232

3333
## Further Reading
3434

35-
* [checkstyle - AbbreviationAsWordInName](http://checkstyle.sourceforge.net/config_naming.html#AbbreviationAsWordInName)
35+
* [checkstyle - AbbreviationAsWordInName](https://checkstyle.sourceforge.io/checks/naming/abbreviationaswordinname/abbreviationaswordinname.html#AbbreviationAsWordInName)

checkstyle/AbstractClassName.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ The following example shows how to configure the `AbstractClassName` to checks n
1919

2020
## Further Reading
2121

22-
* [checkstyle - AbstractClassName](http://checkstyle.sourceforge.net/config_naming.html#AbstractClassName)
22+
* [checkstyle - AbstractClassName](https://checkstyle.sourceforge.io/checks/naming/abstractclassname/abstractclassname.html#AbstractClassName)

checkstyle/AnnotationLocation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ public void test(@MyAnnotation String s) { // OK
124124

125125
## Further Reading
126126

127-
* [checkstyle - AnnotationLocation](http://checkstyle.sourceforge.net/config_annotation.html#AnnotationLocation)
127+
* [checkstyle - AnnotationLocation](https://checkstyle.sourceforge.io/checks/annotation/annotationlocation/annotationlocation.html#AnnotationLocation)

checkstyle/AnnotationLocationMostCases.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ public void test(@MyAnnotation String s) { // OK
124124

125125
## Further Reading
126126

127-
* [checkstyle - AnnotationLocation](http://checkstyle.sourceforge.net/config_annotation.html#AnnotationLocation)
127+
* [checkstyle - AnnotationLocation](https://checkstyle.sourceforge.io/checks/annotation/annotationlocationmostcases/annotationlocationmostcases.html#AnnotationLocation)

checkstyle/AnnotationLocationVariables.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ public void test(@MyAnnotation String s) { // OK
124124

125125
## Further Reading
126126

127-
* [checkstyle - AnnotationLocation](http://checkstyle.sourceforge.net/config_annotation.html#AnnotationLocation)
127+
* [checkstyle - AnnotationLocation](https://checkstyle.sourceforge.io/checks/annotation/annotationlocationvariables/annotationlocationvariables.html#AnnotationLocation)

checkstyle/AnnotationOnSameLine.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Verifies that annotations are located on the same line as their targets.
88

99
## Further Reading
1010

11-
* [checkstyle - AnnotationOnSameLine](http://checkstyle.sourceforge.net/config_annotation.html#AnnotationOnSameLine)
11+
* [checkstyle - AnnotationOnSameLine](https://checkstyle.sourceforge.io/checks/annotation/annotationonsameline/annotationonsameline.html#AnnotationOnSameLine)

checkstyle/AnnotationUseStyle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ To configure the check to enforce an `expanded` style, with a trailing array com
2929

3030
## Further Reading
3131

32-
* [checkstyle - AnnotationUseStyle](http://checkstyle.sourceforge.net/config_annotation.html#AnnotationUseStyle)
32+
* [checkstyle - AnnotationUseStyle](https://checkstyle.sourceforge.io/checks/annotation/annotationusestyle/annotationusestyle.html#AnnotationUseStyle)

checkstyle/AnonInnerLength.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ To configure the check to accept files with up to `60` lines:
2121

2222
## Further Reading
2323

24-
* [checkstyle - AnonInnerLength](http://checkstyle.sourceforge.net/config_sizes.html#AnonInnerLength)
24+
* [checkstyle - AnonInnerLength](https://checkstyle.sourceforge.io/checks/sizes/anoninnerlength/anoninnerlength.html#AnonInnerLength)

checkstyle/ArrayTrailingComma.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ Which results in the following violations:
130130

131131
## Further Reading
132132

133-
* [checkstyle - ArrayTrailingComma](http://checkstyle.sourceforge.net/config_coding.html#ArrayTrailingComma)
133+
* [checkstyle - ArrayTrailingComma](https://checkstyle.sourceforge.io/checks/coding/arraytrailingcomma/arraytrailingcomma.html#ArrayTrailingComma)

checkstyle/ArrayTypeStyle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ To configure the check to enforce C style:
2525
## Further Reading
2626

2727
* [Google Java Style Guide - Arrays](https://google.github.io/styleguide/javaguide.html#s4.8.3-arrays)
28-
* [checkstyle - ArrayTypeStyle](http://checkstyle.sourceforge.net/config_misc.html#ArrayTypeStyle)
28+
* [checkstyle - ArrayTypeStyle](https://checkstyle.sourceforge.io/checks/misc/arraytypestyle/arraytypestyle.html#ArrayTypeStyle)

checkstyle/AtclauseOrder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Default configuration
2323

2424
## Further Reading
2525

26-
* [checkstyle - AtclauseOrder](http://checkstyle.sourceforge.net/config_javadoc.html#AtclauseOrder)
26+
* [checkstyle - AtclauseOrder](https://checkstyle.sourceforge.io/checks/javadoc/atclauseorder/atclauseorder.html#AtclauseOrder)
+87-87
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,87 @@
1-
Pattern: Use of double-brace initialization
2-
3-
Issue: -
4-
5-
## Description
6-
7-
Double-brace initialization can be considered as an anti-pattern, as it unnecessarily creates subclasses and also might break `equals` checks that most often consider instances to be non-equal if the class is not the same to ensure symmetric behavior of the `equals` method as required by its contract.
8-
9-
## Examples
10-
11-
```java
12-
// will fail
13-
List<?> list = new ArrayList<Object>() {
14-
{
15-
add(null);
16-
}
17-
};
18-
// will fail
19-
list = new ArrayList<Object>() {
20-
{
21-
add(null);
22-
}
23-
{
24-
add(null);
25-
}
26-
};
27-
// will fail
28-
list = new ArrayList<Object>() {
29-
// foo
30-
{
31-
add(null);
32-
}
33-
};
34-
// will fail
35-
list = new ArrayList<Object>() {
36-
{
37-
add(null);
38-
} // foo
39-
};
40-
// will fail
41-
list = new ArrayList<Object>() {
42-
{
43-
add(null);
44-
}
45-
// foo
46-
};
47-
// will fail
48-
list = new ArrayList<Object>() {
49-
/* foo */
50-
{
51-
add(null);
52-
}
53-
};
54-
// will fail
55-
list = new ArrayList<Object>() {
56-
{
57-
add(null);
58-
}
59-
/* foo */
60-
};
61-
// will fail
62-
list = new ArrayList<Object>() {
63-
{
64-
add(null);
65-
} /* foo */
66-
};
67-
// will not fail
68-
list = new ArrayList<Object>() {
69-
{
70-
add(null);
71-
}
72-
73-
public void foo() {
74-
}
75-
};
76-
// will not fail
77-
list = new ArrayList<Object>() {
78-
private Object o;
79-
{
80-
add(null);
81-
}
82-
};
83-
```
84-
85-
## Further Reading
86-
87-
* [checkstyle - AvoidDoubleBraceInitialization](https://checkstyle.sourceforge.io/config_misc.html#AvoidDoubleBraceInitialization)
1+
Pattern: Use of double-brace initialization
2+
3+
Issue: -
4+
5+
## Description
6+
7+
Double-brace initialization can be considered as an anti-pattern, as it unnecessarily creates subclasses and also might break `equals` checks that most often consider instances to be non-equal if the class is not the same to ensure symmetric behavior of the `equals` method as required by its contract.
8+
9+
## Examples
10+
11+
```java
12+
// will fail
13+
List<?> list = new ArrayList<Object>() {
14+
{
15+
add(null);
16+
}
17+
};
18+
// will fail
19+
list = new ArrayList<Object>() {
20+
{
21+
add(null);
22+
}
23+
{
24+
add(null);
25+
}
26+
};
27+
// will fail
28+
list = new ArrayList<Object>() {
29+
// foo
30+
{
31+
add(null);
32+
}
33+
};
34+
// will fail
35+
list = new ArrayList<Object>() {
36+
{
37+
add(null);
38+
} // foo
39+
};
40+
// will fail
41+
list = new ArrayList<Object>() {
42+
{
43+
add(null);
44+
}
45+
// foo
46+
};
47+
// will fail
48+
list = new ArrayList<Object>() {
49+
/* foo */
50+
{
51+
add(null);
52+
}
53+
};
54+
// will fail
55+
list = new ArrayList<Object>() {
56+
{
57+
add(null);
58+
}
59+
/* foo */
60+
};
61+
// will fail
62+
list = new ArrayList<Object>() {
63+
{
64+
add(null);
65+
} /* foo */
66+
};
67+
// will not fail
68+
list = new ArrayList<Object>() {
69+
{
70+
add(null);
71+
}
72+
73+
public void foo() {
74+
}
75+
};
76+
// will not fail
77+
list = new ArrayList<Object>() {
78+
private Object o;
79+
{
80+
add(null);
81+
}
82+
};
83+
```
84+
85+
## Further Reading
86+
87+
* [checkstyle - AvoidDoubleBraceInitialization](https://checkstyle.sourceforge.io/checks/coding/avoiddoublebraceinitialization.html#AvoidDoubleBraceInitialization)

checkstyle/AvoidEscapedUnicodeCharacters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ String unitAbbrev = "μs"; //Best: perfectly clear even without a comment.
4141
## Further Reading
4242

4343
* [Google Java Style Guide - Non-ASCII characters](https://google.github.io/styleguide/javaguide.html#s2.3.3-non-ascii-characters)
44-
* [checkstyle - AvoidEscapedUnicodeCharacters](http://checkstyle.sourceforge.net/config_misc.html#AvoidEscapedUnicodeCharacters)
44+
* [checkstyle - AvoidEscapedUnicodeCharacters](https://checkstyle.sourceforge.io/checks/misc/avoidescapedunicodecharacters.html#AvoidEscapedUnicodeCharacters)

checkstyle/AvoidInlineConditionals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ To configure the check:
2626

2727
## Further Reading
2828

29-
* [checkstyle - AvoidInlineConditionals](http://checkstyle.sourceforge.net/config_coding.html#AvoidInlineConditionals)
29+
* [checkstyle - AvoidInlineConditionals](https://checkstyle.sourceforge.io/checks/coding/avoidinlineconditionals.html#AvoidInlineConditionals)

checkstyle/AvoidNestedBlocks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ To configure the check:
7575

7676
## Further Reading
7777

78-
* [checkstyle - AvoidNestedBlocks](http://checkstyle.sourceforge.net/config_blocks.html#AvoidNestedBlocks)
78+
* [checkstyle - AvoidNestedBlocks](https://checkstyle.sourceforge.io/checks/blocks/avoidnestedblocks.html#AvoidNestedBlocks)

checkstyle/AvoidNoArgumentSuperConstructorCall.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ class MyClass extends SomeOtherClass {
2929

3030
## Further Reading
3131

32-
* [checkstyle - AvoidNoArgumentSuperConstructorCall](http://checkstyle.sourceforge.net/config_coding.html#AvoidNoArgumentSuperConstructorCall)
32+
* [checkstyle - AvoidNoArgumentSuperConstructorCall](https://checkstyle.sourceforge.io/checks/coding/avoidnoargumentsuperconstructorcall.html#AvoidNoArgumentSuperConstructorCall)

checkstyle/AvoidStarImport.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ An example how to configure the check so that star imports from packages `java.i
2424

2525
* [Google Java Style Guide - No wildcard imports](https://google.github.io/styleguide/javaguide.html#s3.3.1-wildcard-imports)
2626
* [Stack Overflow - Why is using a wild card with a Java import statement bad?](https://stackoverflow.com/questions/147454/why-is-using-a-wild-card-with-a-java-import-statement-bad)
27-
* [checkstyle - AvoidStarImport](http://checkstyle.sourceforge.net/config_imports.html#AvoidStarImport)
27+
* [checkstyle - AvoidStarImport](https://checkstyle.sourceforge.io/checks/imports/avoidstarimport.html#AvoidStarImport)

checkstyle/AvoidStaticImport.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ An example of how to configure the check so that the `java.lang.System.out` memb
2121

2222
## Further Reading
2323

24-
* [checkstyle - AvoidStaticImport](http://checkstyle.sourceforge.net/config_imports.html#AvoidStaticImport)
24+
* [checkstyle - AvoidStaticImport](https://checkstyle.sourceforge.io/checks/imports/avoidstaticimport.html#AvoidStaticImport)

checkstyle/BooleanExpressionComplexity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ To configure the check to ignore `&` and `|`:
4343

4444
## Further Reading
4545

46-
* [checkstyle - BooleanExpressionComplexity](http://checkstyle.sourceforge.net/config_metrics.html#BooleanExpressionComplexity)
46+
* [checkstyle - BooleanExpressionComplexity](https://checkstyle.sourceforge.io/checks/metrics/booleanexpressioncomplexity.html#BooleanExpressionComplexity)

checkstyle/CatchParameterName.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ An example of how to configure the check for names that begin with a lower case
3636

3737
## Further Reading
3838

39-
* [checkstyle - CatchParameterName](http://checkstyle.sourceforge.net/config_naming.html#CatchParameterName)
39+
* [checkstyle - CatchParameterName](https://checkstyle.sourceforge.io/checks/naming/catchparametername.html#CatchParameterName)

checkstyle/ClassDataAbstractionCoupling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@ Example of usage:
185185

186186
## Further Reading
187187

188-
* [checkstyle - ClassDataAbstractionCoupling](http://checkstyle.sourceforge.net/config_metrics.html#ClassDataAbstractionCoupling)
188+
* [checkstyle - ClassDataAbstractionCoupling](https://checkstyle.sourceforge.io/checks/metrics/classdataabstractioncoupling.html#ClassDataAbstractionCoupling)

checkstyle/ClassFanOutComplexity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ Example of usage:
9898

9999
## Further Reading
100100

101-
* [checkstyle - ClassFanOutComplexity](http://checkstyle.sourceforge.net/config_metrics.html#ClassFanOutComplexity)
101+
* [checkstyle - ClassFanOutComplexity](https://checkstyle.sourceforge.io/checks/metrics/classfanoutcomplexity.html#ClassFanOutComplexity)

checkstyle/ClassMemberImpliedModifier.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ Code:
4949

5050
## Further Reading
5151

52-
* [checkstyle - ClassMemberImpliedModifier](http://checkstyle.sourceforge.net/config_modifier.html#ClassMemberImpliedModifier)
52+
* [checkstyle - ClassMemberImpliedModifier](https://checkstyle.sourceforge.io/checks/modifier/classmemberimpliedmodifier.html#ClassMemberImpliedModifier)

checkstyle/ClassTypeParameterName.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ To configure the check:
1717

1818
## Further Reading
1919

20-
* [checkstyle - ClassTypeParameterName](http://checkstyle.sourceforge.net/config_naming.html#ClassTypeParameterName)
20+
* [checkstyle - ClassTypeParameterName](https://checkstyle.sourceforge.io/checks/naming/classtypeparametername.html#ClassTypeParameterName)

checkstyle/CommentsIndentation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ double d = 3.14;
4343
## Further Reading
4444

4545
* [Google Java Style Guide - Block comment style](http://checkstyle.sourceforge.net/reports/google-java-style-20170228.html#s4.8.6.1-block-comment-style)
46-
* [checkstyle - CommentsIndentation](http://checkstyle.sourceforge.net/config_misc.html#CommentsIndentation)
46+
* [checkstyle - CommentsIndentation](https://checkstyle.sourceforge.io/checks/misc/commentsindentation.html#CommentsIndentation)

checkstyle/ConstantName.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Property `format` in module `ConstantName` is used to specify names to be allowe
2020

2121
## Further Reading
2222

23-
* [checkstyle - ConstantName](http://checkstyle.sourceforge.net/config_naming.html#ConstantName)
23+
* [checkstyle - ConstantName](https://checkstyle.sourceforge.io/checks/naming/constantname.html#ConstantName)

checkstyle/CovariantEquals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ class Test {
6464

6565
## Further Reading
6666

67-
* [checkstyle - CovariantEquals](http://checkstyle.sourceforge.net/config_coding.html#CovariantEquals)
67+
* [checkstyle - CovariantEquals](https://checkstyle.sourceforge.io/checks/coding/covariantequals.html#CovariantEquals)

checkstyle/CustomImportOrder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ configure as follows:
158158

159159
## Further Reading
160160

161-
* [checkstyle - CustomImportOrder](http://checkstyle.sourceforge.net/config_imports.html#CustomImportOrder)
161+
* [checkstyle - CustomImportOrder](https://checkstyle.sourceforge.io/checks/imports/customimportorder.html#CustomImportOrder)

checkstyle/CyclomaticComplexity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ class SwitchExample {
104104

105105
## Further Reading
106106

107-
* [checkstyle - CyclomaticComplexity](http://checkstyle.sourceforge.net/config_metrics.html#CyclomaticComplexity)
107+
* [checkstyle - CyclomaticComplexity](https://checkstyle.sourceforge.io/checks/metrics/cyclomaticcomplexity.html#CyclomaticComplexity)

checkstyle/DeclarationOrder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ With **ignoreConstructors** option and without a method definition in a source c
7474

7575
## Further Reading
7676

77-
* [checkstyle - DeclarationOrder](http://checkstyle.sourceforge.net/config_coding.html#DeclarationOrder)
77+
* [checkstyle - DeclarationOrder](https://checkstyle.sourceforge.io/checks/coding/declarationorder.html#DeclarationOrder)

checkstyle/DefaultComesLast.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ switch (type) {
5353

5454
## Further Reading
5555

56-
* [checkstyle - DefaultComesLast](http://checkstyle.sourceforge.net/config_coding.html#DefaultComesLast)
56+
* [checkstyle - DefaultComesLast](https://checkstyle.sourceforge.io/checks/coding/defaultcomeslast.html#DefaultComesLast)

checkstyle/DescendantToken.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,4 @@ Too many fields within a class:
230230

231231
## Further Reading
232232

233-
* [checkstyle - DescendantToken](http://checkstyle.sourceforge.net/config_misc.html#DescendantToken)
233+
* [checkstyle - DescendantToken](https://checkstyle.sourceforge.io/checks/misc/descendanttoken.html#DescendantToken)

checkstyle/DesignForExtension.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ public class FooTest {
150150

151151
## Further Reading
152152

153-
* [checkstyle - DesignForExtension](http://checkstyle.sourceforge.net/config_design.html#DesignForExtension)
153+
* [checkstyle - DesignForExtension](https://checkstyle.sourceforge.io/checks/design/designforextension.html#DesignForExtension)

checkstyle/EmptyBlock.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ else
4646

4747
## Further Reading
4848

49-
* [checkstyle - block policy](http://checkstyle.sourceforge.net/property_types.html#block)
49+
* [checkstyle - block policy](https://checkstyle.sourceforge.io/property_types/emptyblock.html#block)
5050
* [checkstyle - EmptyBlock](http://checkstyle.sourceforge.net/config_blocks.html#EmptyBlock)

checkstyle/EmptyCatchBlock.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ To configure the check to suppress empty `catch` block if single-line comment in
5757
## Further Reading
5858

5959
* [Google Java Style Guide - Caught exceptions: not ignored](https://google.github.io/styleguide/javaguide.html#s6.2-caught-exceptions)
60-
* [checkstyle - EmptyCatchBlock](http://checkstyle.sourceforge.net/config_blocks.html#EmptyCatchBlock)
60+
* [checkstyle - EmptyCatchBlock](https://checkstyle.sourceforge.io/checks/blocks/emptycatchblock.html#EmptyCatchBlock)

checkstyle/EmptyForInitializerPad.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ To configure the check to require white space at an empty `for` iterator:
3434

3535
## Further Reading
3636

37-
* [checkstyle - EmptyForInitializerPad](http://checkstyle.sourceforge.net/config_whitespace.html#EmptyForInitializerPad)
37+
* [checkstyle - EmptyForInitializerPad](https://checkstyle.sourceforge.io/checks/whitespace/emptyforinitializerpad.html#EmptyForInitializerPad)

checkstyle/EmptyForIteratorPad.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ To configure the check to require white space at an empty `for` iterator:
3535

3636
## Further Reading
3737

38-
* [checkstyle - EmptyForIteratorPad](http://checkstyle.sourceforge.net/config_whitespace.html#EmptyForIteratorPad)
38+
* [checkstyle - EmptyForIteratorPad](https://checkstyle.sourceforge.io/checks/whitespace/emptyforiteratorpad.html#EmptyForIteratorPad)

0 commit comments

Comments
 (0)