Skip to content

Commit a48614b

Browse files
Code review
Co-authored-by: Michael Ernst <mernst@cs.washington.edu>
1 parent d99cbbc commit a48614b

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

framework/src/main/java/org/checkerframework/framework/util/AtmLubVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private void lubPrimaryAnnotations(
141141
lubSet =
142142
qualHierarchy.leastUpperBoundsShallow(
143143
type1.getPrimaryAnnotations(),
144-
type2.getUnderlyingType(),
144+
type1.getUnderlyingType(),
145145
type2.getPrimaryAnnotations(),
146146
type2.getUnderlyingType());
147147
}

framework/src/main/java/org/checkerframework/framework/util/DefaultQualifierKindHierarchy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ protected void initializeQualifierKindFields(
462462
}
463463
if (qualifierKind.bottom == null) {
464464
qualifierKind.bottom = bot;
465-
} else if (qualifierKind.top != bot) {
465+
} else if (qualifierKind.bottom != bot) {
466466
throw new TypeSystemError(
467467
"Multiple bottoms found for qualifier %s. Bottoms: %s and %s.",
468468
qualifierKind, bot, qualifierKind.bottom);

framework/src/main/java/org/checkerframework/framework/util/TypeArgumentMapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ public static Map<TypeParameterElement, Set<TypeParameterElement>> mapTypeArgume
170170
addToSetMap(intermediate, (TypeParameterElement) typeArgEle, correspondingParameter);
171171
}
172172
}
173+
current = next;
173174
}
174175

175176
List<? extends TypeParameterElement> supertypeParams = supertype.getTypeParameters();
@@ -198,7 +199,7 @@ private static Set<TypeParameterElement> flattenPath(
198199
for (TypeParameterElement oldElement : elements) {
199200
Set<TypeParameterElement> substitutions = map.get(oldElement);
200201
if (substitutions != null) {
201-
result.addAll(flattenPath(elements, map));
202+
result.addAll(flattenPath(substitutions, map));
202203
} else {
203204
result.add(oldElement);
204205
}

0 commit comments

Comments
 (0)