Lines 36-61
Link Here
|
36 |
|
36 |
|
37 |
return constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), sourceName, '$'); |
37 |
return constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), sourceName, '$'); |
38 |
} |
38 |
} |
39 |
public void initializeDeprecatedAnnotationTagBits() { |
|
|
40 |
if ((this.tagBits & (TagBits.AnnotationResolved|TagBits.AnnotationDeprecated)) == 0) { |
41 |
ReferenceBinding enclosing = this.enclosingType(); |
42 |
enclosing.initializeDeprecatedAnnotationTagBits(); |
43 |
TypeDeclaration typeDecl = this.scope.referenceContext; |
44 |
boolean old = typeDecl.staticInitializerScope.insideTypeAnnotation; |
45 |
try { |
46 |
typeDecl.staticInitializerScope.insideTypeAnnotation = true; |
47 |
ASTNode.resolveDeprecatedAnnotations(typeDecl.staticInitializerScope, typeDecl.annotations, this); |
48 |
} finally { |
49 |
typeDecl.staticInitializerScope.insideTypeAnnotation = old; |
50 |
} |
51 |
if ((this.tagBits & TagBits.AnnotationDeprecated) != 0) { |
52 |
this.modifiers |= ClassFileConstants.AccDeprecated; |
53 |
} else if ((enclosing.modifiers & (ClassFileConstants.AccDeprecated | |
54 |
ExtraCompilerModifiers.AccDeprecatedImplicitly)) != 0) { |
55 |
this.modifiers |= ExtraCompilerModifiers.AccDeprecatedImplicitly; |
56 |
} |
57 |
} |
58 |
} |
59 |
public String toString() { |
39 |
public String toString() { |
60 |
return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$ |
40 |
return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$ |
61 |
} |
41 |
} |