diff options
Diffstat (limited to 'website/usageExamples')
-rw-r--r-- | website/usageExamples/experimental/Tolerate_post.jpage | 8 | ||||
-rw-r--r-- | website/usageExamples/experimental/Tolerate_pre.jpage | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/website/usageExamples/experimental/Tolerate_post.jpage b/website/usageExamples/experimental/Tolerate_post.jpage new file mode 100644 index 00000000..57f29e1b --- /dev/null +++ b/website/usageExamples/experimental/Tolerate_post.jpage @@ -0,0 +1,8 @@ +public class TolerateExample { + @Setter + private Date date; + + public void setDateFromString(String date) { + this.date = Date.valueOf(date); + } +} diff --git a/website/usageExamples/experimental/Tolerate_pre.jpage b/website/usageExamples/experimental/Tolerate_pre.jpage new file mode 100644 index 00000000..5723df5c --- /dev/null +++ b/website/usageExamples/experimental/Tolerate_pre.jpage @@ -0,0 +1,11 @@ +import lombok.experimental.Tolerate; + +public class TolerateExample { + @Setter + private Date date; + + @Tolerate + public void setDate(String date) { + this.date = Date.valueOf(date); + } +} |