Skip to content

Commit e7dd8e5

Browse files
committed
introduce PMD/category/java/codestyle.xml/UnnecessaryConstructor rule
1 parent a1a75d0 commit e7dd8e5

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

pmd.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@
4646
<rule ref="category/java/codestyle.xml/NoPackage" />
4747
<rule ref="category/java/codestyle.xml/PackageCase" />
4848
<rule ref="category/java/codestyle.xml/UnnecessaryAnnotationValueElement" />
49+
<rule ref="category/java/codestyle.xml/UnnecessaryConstructor" />
4950
</ruleset>

scribejava-apis/src/main/java/com/github/scribejava/apis/NaverApi.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ protected NaverApi() {
1010

1111
private static class InstanceHolder {
1212
private static final NaverApi INSTANCE = new NaverApi();
13-
14-
private InstanceHolder() {
15-
}
1613
}
1714

1815
public static NaverApi instance() {

scribejava-core/src/test/java/com/github/scribejava/core/oauth/OAuth20ServiceTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,5 @@ public void testOAuthExtractAuthorization() {
121121
}
122122

123123
private static class TypeTokenImpl extends TypeToken<Map<String, String>> {
124-
125-
private TypeTokenImpl() {
126-
}
127124
}
128-
129125
}

0 commit comments

Comments
 (0)