blob: 03b96d335ee4f760b993de0270b02000513635d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
class WithMethodMarkedDeprecated {
@Deprecated
int annotation;
/**
* @deprecated
*/
int javadoc;
WithMethodMarkedDeprecated(int annotation, int javadoc) {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public WithMethodMarkedDeprecated withAnnotation(final int annotation) {
return this.annotation == annotation ? this : new WithMethodMarkedDeprecated(annotation, this.javadoc);
}
/**
* @deprecated
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public WithMethodMarkedDeprecated withJavadoc(final int javadoc) {
return this.javadoc == javadoc ? this : new WithMethodMarkedDeprecated(this.annotation, javadoc);
}
}
|