X Tutup
Skip to content

Commit 527da25

Browse files
committed
iluwatar#107 Execute Around example JavaDoc
1 parent 0364b49 commit 527da25

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

execute-around/src/main/java/com/iluwatar/execute/around/App.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@
77
* The Execute Around idiom specifies some code to be executed before and after
88
* a method. Typically the idiom is used when the API has methods to be executed in
99
* pairs, such as resource allocation/deallocation or lock acquisition/release.
10-
*
11-
* In this example, we have SimpleFileWriter class that opens and closes the file
10+
* <p>
11+
* In this example, we have {@link SimpleFileWriter} class that opens and closes the file
1212
* for the user. The user specifies only what to do with the file by providing the
13-
* FileWriterAction implementation.
13+
* {@link FileWriterAction} implementation.
1414
*
1515
*/
1616
public class App {
1717

18+
/**
19+
* Program entry point
20+
* @param args command line args
21+
* @throws IOException
22+
*/
1823
public static void main( String[] args ) throws IOException {
1924

2025
new SimpleFileWriter("testfile.txt", new FileWriterAction() {

execute-around/src/main/java/com/iluwatar/execute/around/SimpleFileWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
*
88
* SimpleFileWriter handles opening and closing file for the user. The user
9-
* only has to specify what to do with the file resource through FileWriterAction
9+
* only has to specify what to do with the file resource through {@link FileWriterAction}
1010
* parameter.
1111
*
1212
*/

0 commit comments

Comments
 (0)
X Tutup