Skip to content

Commit 9c62b34

Browse files
committed
Autoformat
1 parent a0d5d41 commit 9c62b34

File tree

1 file changed

+4
-4
lines changed
  • java/ql/test/kotlin/library-tests/java-kotlin-collection-type-generic-methods

1 file changed

+4
-4
lines changed

java/ql/test/kotlin/library-tests/java-kotlin-collection-type-generic-methods/test.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import java
22

33
RefType getARelevantCollectionType() {
4-
result.hasQualifiedName(["java.util", "kotlin.collections"], ["Abstract", ""] + ["Mutable", ""] + ["Collection", "List", "Map"])
4+
result
5+
.hasQualifiedName(["java.util", "kotlin.collections"],
6+
["Abstract", ""] + ["Mutable", ""] + ["Collection", "List", "Map"])
57
}
68

79
class RelevantMethod extends Method {
8-
910
RelevantMethod() { this.getDeclaringType().getSourceDeclaration() = getARelevantCollectionType() }
10-
1111
}
1212

1313
// Check for methods with suspicious twins -- probably another extraction of the same method outline which was given a different trap key.
@@ -18,7 +18,7 @@ query predicate methodWithDuplicate(string methodName, string typeName) {
1818
not dup.getName() = ["of", "remove", "toArray"] and // These really do have overloads with the same parameter count, so it isn't trivial to tell if they are intentional overloads or inappropriate duplicates.
1919
dup.getNumberOfParameters() = m.getNumberOfParameters() and
2020
dup.getDeclaringType() = m.getDeclaringType() and
21-
dup != m and
21+
dup != m and
2222
methodName = m.getName() and
2323
typeName = m.getDeclaringType().getName()
2424
)

0 commit comments

Comments
 (0)