예제 #1
0
파일: GWTClass.java 프로젝트: wclaeys/errai
  @Override
  public Annotation[] getAnnotations() {
    if (annotationsCache == null) {
      final JClassType classOrInterface = getEnclosedMetaObject().isClassOrInterface();

      if (classOrInterface != null) {
        annotationsCache = classOrInterface.getAnnotations();
      }

      if (annotationsCache == null) {
        annotationsCache = new Annotation[0];
      }
    }

    return annotationsCache;
  }