diff options
author | Roel Spilker <r.spilker@gmail.com> | 2011-08-15 21:21:51 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2011-08-15 21:21:51 +0200 |
commit | a284600987065aa78bc41b2099421f864cfcec20 (patch) | |
tree | 1c8b7dd807bef387bba0c0cda42b8d6550bd3ce3 /usage_examples/onXExample_post.jpage | |
parent | 55cb9f8dac271fe0facd2ce2ad365f8084942181 (diff) | |
download | lombok-a284600987065aa78bc41b2099421f864cfcec20.tar.gz lombok-a284600987065aa78bc41b2099421f864cfcec20.tar.bz2 lombok-a284600987065aa78bc41b2099421f864cfcec20.zip |
Removed support for onMethod, onParam and onConstructor due to javac7 type incapabilities. Issue #251
Diffstat (limited to 'usage_examples/onXExample_post.jpage')
-rw-r--r-- | usage_examples/onXExample_post.jpage | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/usage_examples/onXExample_post.jpage b/usage_examples/onXExample_post.jpage deleted file mode 100644 index 85e3c58f..00000000 --- a/usage_examples/onXExample_post.jpage +++ /dev/null @@ -1,42 +0,0 @@ -import com.google.inject.Inject; -import lombok.Getter; -import lombok.RequiredArgsConstructor; -import lombok.Setter; -import org.hibernate.validator.Min; - -public class OnMethodOnParamExample { - private int bananas; - private int radishes; - - @Deprecated - public int getBananas() { - return bananas; - } - - @Min(10) - public int setRadishes(int radishes) { - this.radishes = radishes; - } - - @Override public String toString() { - return String.format("I have %d bananas and %d beautiful radishes", bananas, radishes); - } -} - -class OnConstructorExample { - private final Fireman fireman; - private int fires = 10; - - @Inject - public OnConstructorExample(Fireman fireman) { - this.fireman = fireman; - } - - public void setFires(@SuppressWarnings("all") int fires) { - this.fires = fires; - } - - @Override public String toString() { - return String.format("Fireman: %s has %d fires", fireman, fires); - } -}
\ No newline at end of file |