mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-28 10:16:53 +00:00
* re-introduction of onMethod/onConstructor/onParam * tests checking error/warnings rewritten to be more heuristic, in order to accomodate difference in messaging between java6 and java 7 * Ability to eliminate java's own output of erroneous error messages (heh); i.e. those messages that are invalidated by lombok's actions. This mechanism is used for onMethod/onConstructor/onParam * First steps to unifying a billion setGeneratedBy calls into a single visitor traversal for eclipse' HandleGetter/Setter/Constructor/Wither * To simplify 'zooming in' the tests on just a few files, added an 'accept' mechanism. * Updated copyright headers of website to 2013.
40 lines
1018 B
Java
40 lines
1018 B
Java
import lombok.Setter;
|
|
class SetterOnParam {
|
|
@lombok.Setter() int i;
|
|
@lombok.Setter() int j;
|
|
public @java.lang.SuppressWarnings("all") void setI(final @SuppressWarnings("all") int i) {
|
|
this.i = i;
|
|
}
|
|
public @java.lang.SuppressWarnings("all") void setJ(final @java.lang.SuppressWarnings("all") int j) {
|
|
this.j = j;
|
|
}
|
|
SetterOnParam() {
|
|
super();
|
|
}
|
|
}
|
|
@lombok.Setter() class SetterOnClassOnParam {
|
|
int i;
|
|
int j;
|
|
public @java.lang.SuppressWarnings("all") void setI(final int i) {
|
|
this.i = i;
|
|
}
|
|
public @java.lang.SuppressWarnings("all") void setJ(final int j) {
|
|
this.j = j;
|
|
}
|
|
SetterOnClassOnParam() {
|
|
super();
|
|
}
|
|
}
|
|
@lombok.Setter() class SetterOnClassAndOnAFieldParam {
|
|
int i;
|
|
@lombok.Setter() int j;
|
|
public @java.lang.SuppressWarnings("all") void setJ(final @java.lang.SuppressWarnings("all") int j) {
|
|
this.j = j;
|
|
}
|
|
public @java.lang.SuppressWarnings("all") void setI(final int i) {
|
|
this.i = i;
|
|
}
|
|
SetterOnClassAndOnAFieldParam() {
|
|
super();
|
|
}
|
|
} |