Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Werner Dietl <[email protected]>
  • Loading branch information
Ao-senXiong and wmdietl authored Apr 7, 2024
1 parent 4cb067a commit 9baba17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/checkers/inference/InferenceValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public void setInfer(boolean infer) {
protected void validateWildCardTargetLocation(AnnotatedTypeMirror.AnnotatedWildcardType type, Tree tree) {

InferenceVisitor<?,?> inferVisitor = (InferenceVisitor<?,?>) visitor;
if (inferVisitor.ignoreTargetLocations) return;
if (inferVisitor.ignoreTargetLocations) {
return;
}

AnnotationMirror[] mirrors = new AnnotationMirror[0];
for (AnnotationMirror am : type.getSuperBound().getAnnotations()) {
Expand Down
4 changes: 2 additions & 2 deletions src/checkers/inference/InferenceVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,9 @@ protected void checkConstructorResult(
}

/**
* This method creates a mapping from type-use locations a lists of qualifiers.
* This method creates a mapping from type-use locations to a set of qualifiers which cannot be applied to that location.
*
* @return A mapping from type-use location to list of qualifiers which cannot be applied to that location.
* @return a mapping from type-use locations to a set of qualifiers which cannot be applied to that location
*/
protected Map<TypeUseLocation, Set<AnnotationMirror>> createMapForIllegalQuals() {
Map<TypeUseLocation, Set<AnnotationMirror>> locationToIllegalQuals = new HashMap<>();
Expand Down

0 comments on commit 9baba17

Please sign in to comment.