X Tutup
Skip to content

Commit add57d4

Browse files
committed
iluwatar#107 Improve JavaDoc for Lazy Loading example
1 parent 48cb04f commit add57d4

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

lazy-loading/src/main/java/com/iluwatar/lazy/loading/App.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
/**
44
*
55
* Lazy loading idiom defers object creation until needed.
6-
*
6+
* <p>
77
* This example shows different implementations of the pattern
88
* with increasing sophistication.
9-
*
9+
* <p>
1010
* Additional information and lazy loading flavours are described in
1111
* http://martinfowler.com/eaaCatalog/lazyLoad.html
1212
*
1313
*/
1414
public class App
1515
{
16+
/**
17+
* Program entry point
18+
* @param args command line args
19+
*/
1620
public static void main( String[] args ) {
1721

1822
// Simple lazy loader - not thread safe

lazy-loading/src/main/java/com/iluwatar/lazy/loading/Java8Holder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
/**
66
*
7-
* This lazy loader is thread safe and more efficient than HolderThreadSafe.
8-
* It utilizes Java 8 functional interface Supplier<T> as Heavy factory.
7+
* This lazy loader is thread safe and more efficient than {@link HolderThreadSafe}.
8+
* It utilizes Java 8 functional interface {@link Supplier<T>} as {@link Heavy} factory.
99
*
1010
*/
1111
public class Java8Holder {

lazy-loading/src/test/java/com/iluwatar/lazy/loading/AppTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import com.iluwatar.lazy.loading.App;
66

7+
/**
8+
*
9+
* Application test
10+
*
11+
*/
712
public class AppTest {
813

914
@Test

0 commit comments

Comments
 (0)
X Tutup