mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Java: extend definition of isCompilerGenerated for classes
This commit is contained in:
@@ -702,6 +702,12 @@ class Class extends ClassOrInterface {
|
||||
/** Holds if this class is an implicit class (compact source file). */
|
||||
predicate isImplicit() { isImplicitClass(this.getSourceDeclaration()) }
|
||||
|
||||
/** Holds if this is an auxiliary program element generated by the compiler. */
|
||||
override predicate isCompilerGenerated() {
|
||||
super.isCompilerGenerated() or
|
||||
this.isImplicit()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an annotation that applies to this class.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user