ProblemReporter problemReporter() { return this.type.scope.problemReporter(); }
ProblemReporter problemReporter() { return this.type.scope.problemReporter(); }
ProblemReporter problemReporter() { return this.type.scope.problemReporter(); }
ProblemReporter problemReporter() { return this.type.scope.problemReporter(); }
ProblemReporter problemReporter() { return this.type.scope.problemReporter(); }
ProblemReporter problemReporter() { return this.type.scope.problemReporter(); }
ProblemReporter problemReporter() { return this.type.scope.problemReporter(); }
ProblemReporter problemReporter() { return this.type.scope.problemReporter(); }
protected boolean checkRedundantNullnessDefaultOne(ASTNode location, Annotation[] annotations, long annotationTagBits) { int thisDefault = this.defaultNullness; if (thisDefault == NONNULL_BY_DEFAULT) { if ((annotationTagBits & TagBits.AnnotationNonNullByDefault) != 0) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this); } return false; // different default means inner default is not redundant -> we're done } return true; }
protected void checkRedundantNullnessDefaultRecurse(ASTNode location, Annotation[] annotations, long annotationTagBits) { if (this.fPackage.defaultNullness != NO_NULL_DEFAULT) { if ((this.fPackage.defaultNullness == NONNULL_BY_DEFAULT && ((annotationTagBits & TagBits.AnnotationNonNullByDefault) != 0))) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this.fPackage); } return; } }
protected void checkRedundantNullnessDefaultRecurse(ASTNode location, Annotation[] annotations, long annotationTagBits) { long outerDefault = this.enclosingMethod != null ? this.enclosingMethod.tagBits & ((TagBits.AnnotationNonNullByDefault|TagBits.AnnotationNullUnspecifiedByDefault)) : 0; if (outerDefault != 0) { if (outerDefault == annotationTagBits) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this.enclosingMethod); } return; } super.checkRedundantNullnessDefaultRecurse(location, annotations, annotationTagBits); }
protected boolean checkRedundantNullnessDefaultOne(ASTNode location, Annotation[] annotations, long nullBits, boolean useNullTypeAnnotations) { if (!isPrototype()) throw new IllegalStateException(); int thisDefault = getNullDefault(); if (thisDefault != NO_NULL_DEFAULT) { boolean isRedundant = useNullTypeAnnotations ? thisDefault == nullBits : (nullBits & TagBits.AnnotationNonNullByDefault) != 0; if (isRedundant) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this); } return false; // different default means inner default is not redundant -> we're done } return true; }
protected boolean checkRedundantNullnessDefaultOne(ASTNode location, Annotation[] annotations, long nullBits, boolean isJdk18) { if (!isPrototype()) throw new IllegalStateException(); int thisDefault = getNullDefault(); if (thisDefault != NO_NULL_DEFAULT) { boolean isRedundant = isJdk18 ? thisDefault == nullBits : (nullBits & TagBits.AnnotationNonNullByDefault) != 0; if (isRedundant) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this); } return false; // different default means inner default is not redundant -> we're done } return true; }
protected boolean checkRedundantNullnessDefaultOne(ASTNode location, Annotation[] annotations, long nullBits, boolean useNullTypeAnnotations) { if (!isPrototype()) throw new IllegalStateException(); int thisDefault = getNullDefault(); if (thisDefault != NO_NULL_DEFAULT) { boolean isRedundant = useNullTypeAnnotations ? thisDefault == nullBits : (nullBits & TagBits.AnnotationNonNullByDefault) != 0; if (isRedundant) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this); } return false; // different default means inner default is not redundant -> we're done } return true; }
protected boolean checkRedundantNullnessDefaultOne(ASTNode location, Annotation[] annotations, long nullBits, boolean useNullTypeAnnotations) { if (!isPrototype()) throw new IllegalStateException(); int thisDefault = getNullDefault(); if (thisDefault != NO_NULL_DEFAULT) { boolean isRedundant = useNullTypeAnnotations ? thisDefault == nullBits : (nullBits & TagBits.AnnotationNonNullByDefault) != 0; if (isRedundant) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this); } return false; // different default means inner default is not redundant -> we're done } return true; }
protected boolean checkRedundantNullnessDefaultOne(ASTNode location, Annotation[] annotations, long nullBits, boolean isJdk18) { if (!isPrototype()) throw new IllegalStateException(); int thisDefault = getNullDefault(); if (thisDefault != NO_NULL_DEFAULT) { boolean isRedundant = isJdk18 ? thisDefault == nullBits : (nullBits & TagBits.AnnotationNonNullByDefault) != 0; if (isRedundant) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this); } return false; // different default means inner default is not redundant -> we're done } return true; }
protected boolean checkRedundantNullnessDefaultOne(ASTNode location, Annotation[] annotations, long nullBits, boolean useNullTypeAnnotations) { if (!isPrototype()) throw new IllegalStateException(); int thisDefault = getNullDefault(); if (thisDefault != NO_NULL_DEFAULT) { boolean isRedundant = useNullTypeAnnotations ? thisDefault == nullBits : (nullBits & TagBits.AnnotationNonNullByDefault) != 0; if (isRedundant) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this); } return false; // different default means inner default is not redundant -> we're done } return true; }
protected boolean checkRedundantNullnessDefaultOne(ASTNode location, Annotation[] annotations, long nullBits, boolean isJdk18) { if (!isPrototype()) throw new IllegalStateException(); int thisDefault = getNullDefault(); if (thisDefault != NO_NULL_DEFAULT) { boolean isRedundant = isJdk18 ? thisDefault == nullBits : (nullBits & TagBits.AnnotationNonNullByDefault) != 0; if (isRedundant) { this.scope.problemReporter().nullDefaultAnnotationIsRedundant(location, annotations, this); } return false; // different default means inner default is not redundant -> we're done } return true; }
public MethodBinding resolveTypesFor(MethodBinding method) { ProblemReporter problemReporter = this.scope.problemReporter(); IErrorHandlingPolicy suspendedPolicy = problemReporter.suspendTempErrorHandlingPolicy(); try { return resolveTypesWithSuspendedTempErrorHandlingPolicy(method); } finally { problemReporter.resumeTempErrorHandlingPolicy(suspendedPolicy); } }
public MethodBinding resolveTypesFor(MethodBinding method) { ProblemReporter problemReporter = this.scope.problemReporter(); IErrorHandlingPolicy suspendedPolicy = problemReporter.suspendTempErrorHandlingPolicy(); try { return resolveTypesWithSuspendedTempErrorHandlingPolicy(method); } finally { problemReporter.resumeTempErrorHandlingPolicy(suspendedPolicy); } }