Skip to content

Commit dbbfaf8

Browse files
authored
Get rid of compiler warning about fields in deprecated class (#4739)
#4739
1 parent 6d9b5ac commit dbbfaf8

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.jdt.apt.tests; singleton:=true
5-
Bundle-Version: 3.6.900.qualifier
5+
Bundle-Version: 3.6.1000.qualifier
66
Bundle-ClassPath: apt.jar,
77
aptext.jar,
88
.

org.eclipse.jdt.apt.tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<relativePath>../tests-pom/</relativePath>
2020
</parent>
2121
<artifactId>org.eclipse.jdt.apt.tests</artifactId>
22-
<version>3.6.900-SNAPSHOT</version>
22+
<version>3.6.1000-SNAPSHOT</version>
2323
<packaging>eclipse-test-plugin</packaging>
2424

2525
<build>

org.eclipse.jdt.apt.tests/src-resources/question/AnnotationTest.java

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ public interface AnnotationTest{
2828
@Deprecated
2929
public int field1 = 1;
3030

31-
@RTVisibleAnno(anno=@SimpleAnnotation("field"), clazzes={})
31+
@Deprecated
32+
@RTVisibleAnno(anno=@SimpleAnnotation("field"), clazzes={})
3233
@RTInvisibleAnno("2")
3334
public int field2 = 2;
3435

35-
@RTInvisibleAnno("3")
36+
@Deprecated
37+
@RTInvisibleAnno("3")
3638
public int field3 = 3;
3739

38-
@SimpleAnnotation("4")
40+
@Deprecated
41+
@SimpleAnnotation("4")
3942
public int field4 = 4;
4043

4144
@RTVisibleAnno(anno=@SimpleAnnotation("method0"), clazzes={})
@@ -46,26 +49,32 @@ public interface AnnotationTest{
4649
@Deprecated
4750
public int method1();
4851

49-
@RTVisibleAnno(anno=@SimpleAnnotation("method2"), clazzes={})
52+
@Deprecated
53+
@RTVisibleAnno(anno=@SimpleAnnotation("method2"), clazzes={})
5054
@RTInvisibleAnno("2")
5155
public int method2();
5256

53-
@RTInvisibleAnno("3")
57+
@Deprecated
58+
@RTInvisibleAnno("3")
5459
public int method3();
5560

56-
@SimpleAnnotation("method4")
61+
@Deprecated
62+
@SimpleAnnotation("method4")
5763
public int method4();
5864

59-
public int method5(int p0,
65+
@Deprecated
66+
public int method5(int p0,
6067
@Deprecated
6168
int p1,
6269
@RTVisibleAnno(anno=@SimpleAnnotation("param2"), clazzes={})
6370
@RTInvisibleAnno("2")
6471
int p2);
6572

66-
public int method6(int p0, int p1, int p2);
73+
@Deprecated
74+
public int method6(int p0, int p1, int p2);
6775

68-
@RTVisibleAnno(name = "I'm \"special\": \t\\\n",
76+
@Deprecated
77+
@RTVisibleAnno(name = "I'm \"special\": \t\\\n",
6978
charValue = '\'',
7079
clazzes = {},
7180
anno = @SimpleAnnotation(""))

0 commit comments

Comments
 (0)