mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 22:16:11 +00:00
The great rename: the old ‘website’ is now ‘website-old’, and ‘website2’ is now ‘website’.
This commit is contained in:
1 parent
72fd50b9f1
commit
8b7a7cbc81
185 files changed
+25
-25
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import lombok.Cleanup;
|
||||
import java.io.*;
|
||||
|
||||
public class CleanupExample {
|
||||
public static void main(String[] args) throws IOException {
|
||||
@Cleanup InputStream in = new FileInputStream(args[0]);
|
||||
@Cleanup OutputStream out = new FileOutputStream(args[1]);
|
||||
byte[] b = new byte[10000];
|
||||
while (true) {
|
||||
int r = in.read(b);
|
||||
if (r == -1) break;
|
||||
out.write(b, 0, r);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user