Skip to content

Commit 9137ca6

Browse files
committed
introduce PMD/category/java/errorprone.xml/CloneMethodReturnTypeMustMatchClassName rule
1 parent 3cf8249 commit 9137ca6

File tree

2 files changed

+2
-1
lines changed
  • scribejava-httpclient-okhttp/src/test/java/com/github/scribejava/httpclient/okhttp

2 files changed

+2
-1
lines changed

pmd.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@
7373
<rule ref="category/java/errorprone.xml/ClassCastExceptionWithToArray" />
7474
<rule ref="category/java/errorprone.xml/CloneMethodMustBePublic" />
7575
<rule ref="category/java/errorprone.xml/CloneMethodMustImplementCloneable" />
76+
<rule ref="category/java/errorprone.xml/CloneMethodReturnTypeMustMatchClassName" />
7677
</ruleset>

scribejava-httpclient-okhttp/src/test/java/com/github/scribejava/httpclient/okhttp/MockCall.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public boolean isExecuted() {
4949
}
5050

5151
@Override
52-
public Call clone() {
52+
public MockCall clone() {
5353
throw new UnsupportedOperationException("Not supported yet.");
5454
}
5555

0 commit comments

Comments
 (0)