Fix pmd violations
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user