Rule that checks for a duplicate import NOTE: Does not distinguish between multiple duplicate imports of the same class. Thus, it may produce multiple violations with the same line number in that case.
Fields inherited from class | Fields |
---|---|
class AbstractImportRule |
NON_STATIC_IMPORT_PATTERN, STATIC_IMPORT_PATTERN |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
applyTo(SourceCode sourceCode, List violations) |
Methods inherited from class | Name |
---|---|
class AbstractImportRule |
eachImportLine, findLineNumberOfFirstClassDeclaration |