From 08faffdf836c8b8d0cca9824bfc32dc1d6a7c2e6 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 11 Dec 2019 13:07:16 +0100 Subject: [website] slight update to the tolerate pages --- .../templates/features/experimental/Tolerate.html | 60 +++++++++++----------- website/templates/features/experimental/index.html | 2 +- 2 files changed, 32 insertions(+), 30 deletions(-) (limited to 'website') diff --git a/website/templates/features/experimental/Tolerate.html b/website/templates/features/experimental/Tolerate.html index 09610069..fc0eeb35 100644 --- a/website/templates/features/experimental/Tolerate.html +++ b/website/templates/features/experimental/Tolerate.html @@ -1,34 +1,36 @@ <#import "../_features.html" as f> - <@f.scaffold title="@Tolerate" logline="Skip, jump, and forget! Skip a method or constructor."> - <@f.history> -

- @Tolerate was introduced as feature in lombok v1.14.2
-

- +<@f.scaffold title="@Tolerate" logline="Skip, jump, and forget! Make lombok disregard an existing method or constructor."> + <@f.history> +

+ @Tolerate was introduced as feature in lombok v1.14.2
+

+ - <@f.experimental> - - + <@f.experimental> + + - <@f.overview> -

- Any method or constructor can be annotated with @Tolerate and lombok will skip it when - considering whether or not to generate a method or constructor. This is useful if the types of the - parameters of your method do not clash with what lombok would generate. -

-

- Put on any method or constructor to make lombok pretend it doesn't exist,i.e., to generate a method - which would otherwise be skipped due to possible conflicts. -

- + <@f.overview> +

+ Any method or constructor can be annotated with @Tolerate and lombok will act as if it + does not exist. For example, normally lombok would not generate a setDate method for field + named date if you already have a method named setDate in your code already. By + annotating that method with @Tolerate, lombok will generate it anyway. This can be useful if the + type of the parameter of your existing method is different and doesn't clash. +

+

+ Put on any method or constructor to make lombok pretend it doesn't exist, i.e., to generate a method + which would otherwise be skipped due to possible conflicts. +

+ - <@f.snippets name="experimental/Tolerate" /> - \ No newline at end of file + <@f.snippets name="experimental/Tolerate" /> + diff --git a/website/templates/features/experimental/index.html b/website/templates/features/experimental/index.html index 9ed3f546..b158d381 100644 --- a/website/templates/features/experimental/index.html +++ b/website/templates/features/experimental/index.html @@ -69,7 +69,7 @@ <@main.feature title="@Tolerate" href="Tolerate"> - Skip, jump, and forget! Skip a method or constructor. + Skip, jump, and forget! Make lombok disregard an existing method or constructor. -- cgit