blob: 41139a0fda2234be5545457488c2c0e837611d28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class WithMethodMarkedDeprecatedAnnOnly {
@Deprecated
int annotation;
WithMethodMarkedDeprecatedAnnOnly(int annotation) {
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public WithMethodMarkedDeprecatedAnnOnly withAnnotation(final int annotation) {
return this.annotation == annotation ? this : new WithMethodMarkedDeprecatedAnnOnly(annotation);
}
}
|