Checkstyle

This commit is contained in:
Clément Fournier
2018-05-24 03:58:29 +02:00
parent f26e982b7f
commit cf0eb9a9bd

View File

@@ -153,7 +153,7 @@ public class UnnecessaryFullyQualifiedNameRule extends AbstractJavaRule {
// Is there any other static import conflictive?
for (final ASTImportDeclaration importDeclaration : imports) {
if (!Objects.equals(importDeclaration, firstMatch) && importDeclaration.isStatic()) {
if (declarationMatches(firstMatch, importDeclaration.getImportedName())){
if (declarationMatches(firstMatch, importDeclaration.getImportedName())) {
// A conflict against the same class is not an excuse,
// ie:
// import java.util.Arrays;