Skip to content

Commit 8352925

Browse files
committed
Java: Minor re-factorings.
1 parent 9f783b0 commit 8352925

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

java/ql/src/utils/model-generator/internal/CaptureTypeBasedSummaryModels.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ private import CaptureModelsSpecific as Specific
55
private import CaptureModels
66

77
/**
8-
* A type representing class types of instantiations of class types
8+
* A type representing instantiations of class types
99
* that has a method which returns an iterator.
1010
*/
1111
private class IterableType extends Class {
@@ -49,11 +49,11 @@ private predicate isEffectivelyLowerBound(Type t, Type bound) {
4949
*/
5050
private predicate genericContainerType(RefType t, TypeVariable tv) {
5151
exists(Type et |
52-
et = t.(ContainerType).getElementType()
53-
or
54-
et = t.(IterableType).getElementType()
55-
or
56-
et = t.(Array).getElementType()
52+
et =
53+
[
54+
t.(ContainerType).getElementType(), t.(IterableType).getElementType(),
55+
t.(Array).getElementType()
56+
]
5757
|
5858
isEffectivelyUpperBound(et, tv)
5959
)

0 commit comments

Comments
 (0)