Autoformat.

This commit is contained in:
Anders Schack-Mulligen
2020-11-30 14:42:38 +01:00
parent 931322e4c5
commit 8f2094f0bf
95 changed files with 189 additions and 341 deletions

View File

@@ -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)

View File

@@ -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()