mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Autoformat.
This commit is contained in:
@@ -25,8 +25,7 @@ class EmptyIterableIterator extends IterableIterator {
|
||||
exists(Method m |
|
||||
m.getDeclaringType().getSourceDeclaration() = this and
|
||||
m.getName() = "hasNext" and
|
||||
m
|
||||
.getBody()
|
||||
m.getBody()
|
||||
.(SingletonBlock)
|
||||
.getStmt()
|
||||
.(ReturnStmt)
|
||||
|
||||
@@ -25,8 +25,7 @@ predicate iteratorWrapper(Iterable it, Field f, boolean wrap) {
|
||||
f.getAnAssignedValue().getEnclosingCallable() instanceof InitializerMethod
|
||||
) and
|
||||
// ... whose type is a sub-type of `java.util.Iterator` and ...
|
||||
f
|
||||
.getType()
|
||||
f.getType()
|
||||
.(RefType)
|
||||
.getASupertype*()
|
||||
.getSourceDeclaration()
|
||||
|
||||
Reference in New Issue
Block a user