diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-06 06:08:05 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-06 06:08:05 +0200 |
commit | 8534a8e0a552f21ad6479e94fad8db36e67d44d5 (patch) | |
tree | bfd4c5eadd72b306fd1e2a488fc977917f80bccd /src/lombok/Cleanup.java | |
parent | 527b992a074c1c65727bc52c820d40340f074a6b (diff) | |
download | lombok-8534a8e0a552f21ad6479e94fad8db36e67d44d5.tar.gz lombok-8534a8e0a552f21ad6479e94fad8db36e67d44d5.tar.bz2 lombok-8534a8e0a552f21ad6479e94fad8db36e67d44d5.zip |
Fixed javadoc problems, and added a javadoc target to the build script.
Diffstat (limited to 'src/lombok/Cleanup.java')
-rw-r--r-- | src/lombok/Cleanup.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lombok/Cleanup.java b/src/lombok/Cleanup.java index 4c3838f2..7d0fcc3c 100644 --- a/src/lombok/Cleanup.java +++ b/src/lombok/Cleanup.java @@ -30,12 +30,12 @@ import java.lang.annotation.Target; * Ensures the variable declaration that you annotate will be cleaned up by calling its close method, regardless * of what happens. Implemented by wrapping all statements following the local variable declaration to the * end of your scope into a try block that, as a finally action, closes the resource. - * + * <p> * Example: * <pre> * public void copyFile(String in, String out) throws IOException { - * @Cleanup FileInputStream inStream = new FileInputStream(in); - * @Cleamup FileOutputStream outStream = new FileOutputStream(out); + * @Cleanup FileInputStream inStream = new FileInputStream(in); + * @Cleanup FileOutputStream outStream = new FileOutputStream(out); * byte[] b = new byte[65536]; * while (true) { * int r = inStream.read(b); @@ -48,9 +48,9 @@ import java.lang.annotation.Target; * Will generate: * <pre> * public void copyFile(String in, String out) throws IOException { - * @Cleanup FileInputStream inStream = new FileInputStream(in); + * @Cleanup FileInputStream inStream = new FileInputStream(in); * try { - * @Cleamup FileOutputStream outStream = new FileOutputStream(out); + * @Cleanup FileOutputStream outStream = new FileOutputStream(out); * try { * byte[] b = new byte[65536]; * while (true) { @@ -71,7 +71,7 @@ import java.lang.annotation.Target; * in the main body of the generated try block. You should NOT rely on this behaviour - future versions of * lombok intend to silently swallow any exception thrown by the cleanup method <i>_IF</i> the main body * throws an exception as well, as the earlier exception is usually far more useful. - * + * <p> * However, in java 1.6, generating the code to do this is prohibitively complicated. */ @Target(ElementType.LOCAL_VARIABLE) |