blob: a2b0b4224bc3ecd780bed4749b82d405f411293f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package org.eclipse.jpt.common.core.tests.internal.resource.java;
import org.eclipse.jdt.core.dom.Annotation;
import org.eclipse.jpt.common.core.internal.resource.java.source.SourceAnnotation;
import org.eclipse.jpt.common.core.internal.utility.jdt.SimpleDeclarationAnnotationAdapter;
import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement;
import org.eclipse.jpt.common.core.utility.jdt.AnnotatedElement;
import org.eclipse.jpt.common.core.utility.jdt.DeclarationAnnotationAdapter;
public class SourceDeprecatedAnnotation
extends SourceAnnotation {
private static final DeclarationAnnotationAdapter DECLARATION_ANNOTATION_ADAPTER
= new SimpleDeclarationAnnotationAdapter(Deprecated.class.getName());
public SourceDeprecatedAnnotation(JavaResourceAnnotatedElement parent, AnnotatedElement element) {
super(parent, element, DECLARATION_ANNOTATION_ADAPTER);
}
public String getAnnotationName() {
return Deprecated.class.getName();
}
@Override
public void initialize(Annotation astAnnotation) {
// nothing to initialize
}
@Override
public void synchronizeWith(Annotation astAnnotation) {
// nothing to sync
}
}
|