Fix pmd violations

This commit is contained in:
Clément Fournier committed 2021-06-24 01:14:38 +02:00
1 parent 4d5fc38a05
commit 4f64f93c85
2 files changed
+3 -3

No files matched your search

@@ -66,7 +66,7 @@ public final class ConstructorCallsOverridableMethodRule extends AbstractJavaRul
JMethodSymbol unsafetyReason = getUnsafetyReason(call, TreePVector.empty());
if (unsafetyReason != null) {
String message;
if (unsafetyReason == call.getOverloadSelectionInfo().getMethodType().getSymbol()) {
if (unsafetyReason.equals(call.getOverloadSelectionInfo().getMethodType().getSymbol())) {
message = MESSAGE;
} else {
message = MESSAGE_TRANSITIVE;
@@ -51,8 +51,8 @@ public final class TypePrettyPrint {
private boolean isVarargs = false;
/** Create a new pretty printer with the default configuration. */
public TypePrettyPrinter() {
public TypePrettyPrinter() { // NOPMD
// default
}
StringBuilder append(char o) {