Examples of NonNullDefaultAwareTypeAnnotationWalker


Examples of org.eclipse.jdt.internal.compiler.classfmt.NonNullDefaultAwareTypeAnnotationWalker

  if (!isPrototype()) throw new IllegalStateException();
  if (annotations == null || annotations.length == 0 || !this.environment.usesAnnotatedTypeSystem()) {
    if (this.environment.globalOptions.isAnnotationBasedNullAnalysisEnabled) {
      int nullness = getNullDefault();
      if (nullness > Binding.NULL_UNSPECIFIED_BY_DEFAULT)
        return new NonNullDefaultAwareTypeAnnotationWalker(nullness, this.environment);
    }
    return TypeAnnotationWalker.EMPTY_ANNOTATION_WALKER;
  }
  if (this.environment.globalOptions.isAnnotationBasedNullAnalysisEnabled) {
    int nullness = getNullDefault();
    if (nullness > Binding.NULL_UNSPECIFIED_BY_DEFAULT)
      return new NonNullDefaultAwareTypeAnnotationWalker(annotations, nullness, this.environment);
  }
  return new TypeAnnotationWalker(annotations);
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.