File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change
1
+ package interning.qual:
2
+ annotation @UnknownInterned:
3
+
4
+ package interning.qual:
5
+ annotation @PolyInterned:
6
+
7
+ package interning.qual:
8
+ annotation @Interned:
9
+
10
+ package :
11
+ class MapAssignment:
12
+ field a:
13
+ insert-annotation Variable.type, ParameterizedType.type: @interning.qual.UnknownInterned
14
+
15
+ field b:
16
+ insert-annotation Variable.type, ParameterizedType.type: @interning.qual.UnknownInterned
17
+ insert-annotation Variable.type, ParameterizedType.typeArgument 1: @interning.qual.Interned
18
+
19
+ method <init>()V:
20
+
21
+
Original file line number Diff line number Diff line change 9
9
import org .checkerframework .framework .type .SubtypeVisitHistory ;
10
10
import org .checkerframework .javacutil .BugInCF ;
11
11
12
- import javax .lang .model .element .AnnotationMirror ;
13
-
14
12
import checkers .inference .model .Slot ;
15
13
14
+ import javax .lang .model .element .AnnotationMirror ;
15
+
16
16
/**
17
17
* The InferenceTypeHierarchy along with the InferenceQualifierHierarchy is responsible for
18
18
* creating a subtype and equality constraints. Normally the methods of these two classes are queried
@@ -27,7 +27,6 @@ public class InferenceTypeHierarchy extends DefaultTypeHierarchy {
27
27
private final AnnotationMirror varAnnot ;
28
28
// TODO: Think this through, add any missing constraints
29
29
30
-
31
30
/**
32
31
* Constructs an instance of {@code TypeHierarchy} for the type system
33
32
* whose qualifiers represented in qualifierHierarchy.
@@ -52,6 +51,12 @@ public StructuralEqualityComparer createEqualityComparer() {
52
51
return new InferenceEqualityComparer (this .typeargVisitHistory ,
53
52
InferenceQualifierHierarchy .findVarAnnot (qualifierHierarchy .getTopAnnotations ()));
54
53
}
54
+
55
+ @ Override
56
+ public boolean isSubtype (
57
+ final AnnotatedTypeMirror subtype , final AnnotatedTypeMirror supertype ) {
58
+ return isSubtype (subtype , supertype , varAnnot );
59
+ }
55
60
}
56
61
57
62
class InferenceEqualityComparer extends StructuralEqualityComparer {
You can’t perform that action at this time.
0 commit comments