File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
execute-around/src/main/java/com/iluwatar/execute/around Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 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 */
1616public 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 () {
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments