builder.check(TagBits.AnnotationForType, TypeConstants.TYPE); builder.check(TagBits.AnnotationForField, TypeConstants.UPPER_FIELD); builder.check(TagBits.AnnotationForMethod, TypeConstants.UPPER_METHOD); builder.check(TagBits.AnnotationForParameter, TypeConstants.UPPER_PARAMETER); builder.check(TagBits.AnnotationForConstructor, TypeConstants.UPPER_CONSTRUCTOR); builder.check(TagBits.AnnotationForLocalVariable, TypeConstants.UPPER_LOCAL_VARIABLE); builder.checkAnnotationType(TypeConstants.UPPER_ANNOTATION_TYPE); builder.check(TagBits.AnnotationForPackage, TypeConstants.UPPER_PACKAGE); builder.check(TagBits.AnnotationForTypeParameter, TypeConstants.TYPE_PARAMETER_TARGET); builder.check(TagBits.AnnotationForTypeUse, TypeConstants.TYPE_USE_TARGET); if (builder.hasError()) { repeatableAnnotationType.tagAsHavingDefectiveContainerType(); scope.problemReporter().repeatableAnnotationTypeTargetMismatch(culpritNode, repeatableAnnotationType, containerType, builder.toString());
builder.check(TagBits.AnnotationForType, TypeConstants.TYPE); builder.check(TagBits.AnnotationForField, TypeConstants.UPPER_FIELD); builder.check(TagBits.AnnotationForMethod, TypeConstants.UPPER_METHOD); builder.check(TagBits.AnnotationForParameter, TypeConstants.UPPER_PARAMETER); builder.check(TagBits.AnnotationForConstructor, TypeConstants.UPPER_CONSTRUCTOR); builder.check(TagBits.AnnotationForLocalVariable, TypeConstants.UPPER_LOCAL_VARIABLE); builder.checkAnnotationType(TypeConstants.UPPER_ANNOTATION_TYPE); builder.check(TagBits.AnnotationForPackage, TypeConstants.UPPER_PACKAGE); builder.check(TagBits.AnnotationForTypeParameter, TypeConstants.TYPE_PARAMETER_TARGET); builder.check(TagBits.AnnotationForTypeUse, TypeConstants.TYPE_USE_TARGET); if (builder.hasError()) { repeatableAnnotationType.tagAsHavingDefectiveContainerType(); scope.problemReporter().repeatableAnnotationTypeTargetMismatch(culpritNode, repeatableAnnotationType, containerType, builder.toString());
builder.check(TagBits.AnnotationForType, TypeConstants.TYPE); builder.check(TagBits.AnnotationForField, TypeConstants.UPPER_FIELD); builder.check(TagBits.AnnotationForMethod, TypeConstants.UPPER_METHOD); builder.check(TagBits.AnnotationForParameter, TypeConstants.UPPER_PARAMETER); builder.check(TagBits.AnnotationForConstructor, TypeConstants.UPPER_CONSTRUCTOR); builder.check(TagBits.AnnotationForLocalVariable, TypeConstants.UPPER_LOCAL_VARIABLE); builder.checkAnnotationType(TypeConstants.UPPER_ANNOTATION_TYPE); builder.check(TagBits.AnnotationForPackage, TypeConstants.UPPER_PACKAGE); builder.check(TagBits.AnnotationForTypeParameter, TypeConstants.TYPE_PARAMETER_TARGET); builder.check(TagBits.AnnotationForTypeUse, TypeConstants.TYPE_USE_TARGET); builder.check(TagBits.AnnotationForModule, TypeConstants.UPPER_MODULE); if (builder.hasError()) { repeatableAnnotationType.tagAsHavingDefectiveContainerType(); scope.problemReporter().repeatableAnnotationTypeTargetMismatch(culpritNode, repeatableAnnotationType, containerType, builder.toString());
builder.check(TagBits.AnnotationForType, TypeConstants.TYPE); builder.check(TagBits.AnnotationForField, TypeConstants.UPPER_FIELD); builder.check(TagBits.AnnotationForMethod, TypeConstants.UPPER_METHOD); builder.check(TagBits.AnnotationForParameter, TypeConstants.UPPER_PARAMETER); builder.check(TagBits.AnnotationForConstructor, TypeConstants.UPPER_CONSTRUCTOR); builder.check(TagBits.AnnotationForLocalVariable, TypeConstants.UPPER_LOCAL_VARIABLE); builder.checkAnnotationType(TypeConstants.UPPER_ANNOTATION_TYPE); builder.check(TagBits.AnnotationForPackage, TypeConstants.UPPER_PACKAGE); builder.check(TagBits.AnnotationForTypeParameter, TypeConstants.TYPE_PARAMETER_TARGET); builder.check(TagBits.AnnotationForTypeUse, TypeConstants.TYPE_USE_TARGET); if (builder.hasError()) { repeatableAnnotationType.tagAsHavingDefectiveContainerType(); scope.problemReporter().repeatableAnnotationTypeTargetMismatch(culpritNode, repeatableAnnotationType, containerType, builder.toString());
builder.check(TagBits.AnnotationForType, TypeConstants.TYPE); builder.check(TagBits.AnnotationForField, TypeConstants.UPPER_FIELD); builder.check(TagBits.AnnotationForMethod, TypeConstants.UPPER_METHOD); builder.check(TagBits.AnnotationForParameter, TypeConstants.UPPER_PARAMETER); builder.check(TagBits.AnnotationForConstructor, TypeConstants.UPPER_CONSTRUCTOR); builder.check(TagBits.AnnotationForLocalVariable, TypeConstants.UPPER_LOCAL_VARIABLE); builder.checkAnnotationType(TypeConstants.UPPER_ANNOTATION_TYPE); builder.check(TagBits.AnnotationForPackage, TypeConstants.UPPER_PACKAGE); builder.check(TagBits.AnnotationForTypeParameter, TypeConstants.TYPE_PARAMETER_TARGET); builder.check(TagBits.AnnotationForTypeUse, TypeConstants.TYPE_USE_TARGET); if (builder.hasError()) { repeatableAnnotationType.tagAsHavingDefectiveContainerType(); scope.problemReporter().repeatableAnnotationTypeTargetMismatch(culpritNode, repeatableAnnotationType, containerType, builder.toString());
builder.check(TagBits.AnnotationForType, TypeConstants.TYPE); builder.check(TagBits.AnnotationForField, TypeConstants.UPPER_FIELD); builder.check(TagBits.AnnotationForMethod, TypeConstants.UPPER_METHOD); builder.check(TagBits.AnnotationForParameter, TypeConstants.UPPER_PARAMETER); builder.check(TagBits.AnnotationForConstructor, TypeConstants.UPPER_CONSTRUCTOR); builder.check(TagBits.AnnotationForLocalVariable, TypeConstants.UPPER_LOCAL_VARIABLE); builder.checkAnnotationType(TypeConstants.UPPER_ANNOTATION_TYPE); builder.check(TagBits.AnnotationForPackage, TypeConstants.UPPER_PACKAGE); builder.check(TagBits.AnnotationForTypeParameter, TypeConstants.TYPE_PARAMETER_TARGET); builder.check(TagBits.AnnotationForTypeUse, TypeConstants.TYPE_USE_TARGET); if (builder.hasError()) { repeatableAnnotationType.tagAsHavingDefectiveContainerType(); scope.problemReporter().repeatableAnnotationTypeTargetMismatch(culpritNode, repeatableAnnotationType, containerType, builder.toString());
builder.check(TagBits.AnnotationForType, TypeConstants.TYPE); builder.check(TagBits.AnnotationForField, TypeConstants.UPPER_FIELD); builder.check(TagBits.AnnotationForMethod, TypeConstants.UPPER_METHOD); builder.check(TagBits.AnnotationForParameter, TypeConstants.UPPER_PARAMETER); builder.check(TagBits.AnnotationForConstructor, TypeConstants.UPPER_CONSTRUCTOR); builder.check(TagBits.AnnotationForLocalVariable, TypeConstants.UPPER_LOCAL_VARIABLE); builder.checkAnnotationType(TypeConstants.UPPER_ANNOTATION_TYPE); builder.check(TagBits.AnnotationForPackage, TypeConstants.UPPER_PACKAGE); builder.check(TagBits.AnnotationForTypeParameter, TypeConstants.TYPE_PARAMETER_TARGET); builder.check(TagBits.AnnotationForTypeUse, TypeConstants.TYPE_USE_TARGET); if (builder.hasError()) { repeatableAnnotationType.tagAsHavingDefectiveContainerType(); scope.problemReporter().repeatableAnnotationTypeTargetMismatch(culpritNode, repeatableAnnotationType, containerType, builder.toString());
builder.check(TagBits.AnnotationForType, TypeConstants.TYPE); builder.check(TagBits.AnnotationForField, TypeConstants.UPPER_FIELD); builder.check(TagBits.AnnotationForMethod, TypeConstants.UPPER_METHOD); builder.check(TagBits.AnnotationForParameter, TypeConstants.UPPER_PARAMETER); builder.check(TagBits.AnnotationForConstructor, TypeConstants.UPPER_CONSTRUCTOR); builder.check(TagBits.AnnotationForLocalVariable, TypeConstants.UPPER_LOCAL_VARIABLE); builder.checkAnnotationType(TypeConstants.UPPER_ANNOTATION_TYPE); builder.check(TagBits.AnnotationForPackage, TypeConstants.UPPER_PACKAGE); builder.check(TagBits.AnnotationForTypeParameter, TypeConstants.TYPE_PARAMETER_TARGET); builder.check(TagBits.AnnotationForTypeUse, TypeConstants.TYPE_USE_TARGET); builder.check(TagBits.AnnotationForModule, TypeConstants.UPPER_MODULE); if (builder.hasError()) { repeatableAnnotationType.tagAsHavingDefectiveContainerType(); scope.problemReporter().repeatableAnnotationTypeTargetMismatch(culpritNode, repeatableAnnotationType, containerType, builder.toString());