From 316ce2584a3d7b860dd3fbe96057df2086808364 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sat, 18 Jul 2009 00:29:07 +0200 Subject: Added a byline to all current feature pages, as well as fixing 1 typo in Cleanup.html. --- website/features/Cleanup.html | 3 ++- website/features/Data.html | 2 ++ website/features/GetterSetter.html | 1 + website/features/features.css | 7 +++++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/website/features/Cleanup.html b/website/features/Cleanup.html index 53c94701..ae74c474 100644 --- a/website/features/Cleanup.html +++ b/website/features/Cleanup.html @@ -12,12 +12,13 @@
Project Lombok

@Cleanup

+
Automatic resource management: Call your close() methods safely with no hassle.

Overview

You can use @Cleanup to ensure a given resource is automatically cleaned up before the code execution path exits your current scope. You do this by annotating any local variable declaration with the @Cleanup annotation like so:
- @Cleanup InputStream in = new FileInputStream("some/file");
+ @Cleanup InputStream in = new FileInputStream("some/file");
As a result, at the end of the scope you're in, in.close() is called. This call is guaranteed to run by way of a try/finally construct. Look at the example below to see how this works.

diff --git a/website/features/Data.html b/website/features/Data.html index 23f9cea8..cb15ed9b 100644 --- a/website/features/Data.html +++ b/website/features/Data.html @@ -12,6 +12,8 @@

@Data

+

Overview

diff --git a/website/features/GetterSetter.html b/website/features/GetterSetter.html index e865cfff..c71d08c7 100644 --- a/website/features/GetterSetter.html +++ b/website/features/GetterSetter.html @@ -12,6 +12,7 @@

@Getter and @Setter

+

Overview

diff --git a/website/features/features.css b/website/features/features.css index f2eff7fc..de669c7b 100644 --- a/website/features/features.css +++ b/website/features/features.css @@ -33,6 +33,13 @@ h1 { text-align: center; } +.byline { + width: 100%; + text-align: center; + font-style: italic; + font-size: 1.3em; +} + .index { font-size: 1.2em; margin: 64px 0px 32px 64px; -- cgit