From 3c47eb1299467f052f25581430d20bc3b2b83f4d Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 18 Nov 2010 12:45:02 +0100 Subject: Added documentation for val and @Getter(lazy=true) and updated docs for Log and EqualsAndHashCode to reflect new lombok 0.10 features. --- website/features/Log.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'website/features/Log.html') diff --git a/website/features/Log.html b/website/features/Log.html index 6912b6ed..c5d7771c 100644 --- a/website/features/Log.html +++ b/website/features/Log.html @@ -15,7 +15,7 @@

Overview

- You can annotate any field with @Log to let lombok generate a logger field automatically.
+ NEW in lombok 0.10: You can annotate any field with @Log to let lombok generate a logger field automatically.
The logger is named log and field's type depends on which logger you have selected.

There are four @Log choices available:
@@ -50,11 +50,16 @@

Small print

If a field called log already exists, a warning will be emitted and no code will be generated. +

+ A future feature of lombok's @Log is to find calls to the logger field and, if the chosen logging framework supports + it and the log level can be compile-time determined from the log call, guard it with an if statement. This way if + the log statement ends up being ignored, the potentially expensive calculation of the log string is avoided entirely. This does mean + that you should NOT put any side-effects in the expression that you log.

-- cgit