Added a byline to all current feature pages, as well as fixing 1 typo in Cleanup.html.

This commit is contained in:
Reinier Zwitserloot committed 2009-07-18 00:29:07 +02:00
1 parent efe46f68a9
commit 316ce2584a
4 files changed
+12 -1

No files matched your search

+2 -1
View File
@@ -12,12 +12,13 @@
<div class="minimumHeight"></div>
<div class="header"><a href="../index.html">Project Lombok</a></div>
<h1>@Cleanup</h1>
<div class="byline">Automatic resource management: Call your <code>close()</code> methods safely with no hassle.</div>
<div class="overview">
<h3>Overview</h3>
<p>
You can use <code>@Cleanup</code> 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 <code>@Cleanup</code> annotation like so:<br />
<code>@Cleanup InputStream in = new FileInputStream("some/file");</code></br />
<code>@Cleanup InputStream in = new FileInputStream("some/file");</code><br />
As a result, at the end of the scope you're in, <code>in.close()</code> 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.
</p><p>
+2
View File
@@ -12,6 +12,8 @@
<div class="minimumHeight"></div>
<div class="header"><a href="../index.html">Project Lombok</a></div>
<h1>@Data</h1>
<div class="byline">'struct' for java: Automatically generate <code>toString</code>, <code>hashCode</code>, <code>equals</code>, a constructor, and getters and setters
from just the fields in your class.</div>
<div class="overview">
<h3>Overview</h3>
<p>
+1
View File
@@ -12,6 +12,7 @@
<div class="minimumHeight"></div>
<div class="header"><a href="../index.html">Project Lombok</a></div>
<h1>@Getter and @Setter</h1>
<div class="byline">Never write <code>public int getFoo() {return foo;}</code> again.</div>
<div class="overview">
<h3>Overview</h3>
<p>
+7
View File
@@ -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;