mirror of
https://github.com/github/codeql.git
synced 2026-03-21 06:57:09 +01:00
23 lines
579 B
Plaintext
23 lines
579 B
Plaintext
/**
|
|
* @deprecated
|
|
* @name Duplicate anonymous class
|
|
* @description Duplicated anonymous classes indicate that refactoring is necessary.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @precision high
|
|
* @id java/duplicate-anonymous-class
|
|
* @tags testability
|
|
* maintainability
|
|
* useless-code
|
|
* duplicate-code
|
|
* statistical
|
|
* non-attributable
|
|
*/
|
|
|
|
import java
|
|
|
|
from AnonymousClass c, AnonymousClass other
|
|
where none()
|
|
select c, "Anonymous class is identical to $@.", other,
|
|
"another anonymous class in " + other.getFile().getStem()
|