mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 03:13:38 +00:00
28 lines
929 B
Java
28 lines
929 B
Java
class WithMethodMarkedDeprecated {
|
|
@Deprecated
|
|
int annotation;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
int javadoc;
|
|
WithMethodMarkedDeprecated(int annotation, int javadoc) {
|
|
}
|
|
/**
|
|
* @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 WithMethodMarkedDeprecated withAnnotation(final int annotation) {
|
|
return this.annotation == annotation ? this : new WithMethodMarkedDeprecated(annotation, this.javadoc);
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @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 WithMethodMarkedDeprecated withJavadoc(final int javadoc) {
|
|
return this.javadoc == javadoc ? this : new WithMethodMarkedDeprecated(this.annotation, javadoc);
|
|
}
|
|
}
|