mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 03:13:38 +00:00
16 lines
527 B
Java
16 lines
527 B
Java
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")
|
|
@lombok.Generated
|
|
public WithMethodMarkedDeprecatedAnnOnly withAnnotation(final int annotation) {
|
|
return this.annotation == annotation ? this : new WithMethodMarkedDeprecatedAnnOnly(annotation);
|
|
}
|
|
}
|