#107 Improve JavaDoc for Null Object example

This commit is contained in:
Ilkka Seppala 2015-08-20 22:42:49 +03:00
parent 952ebc638f
commit 2bc23844a4
3 changed files with 11 additions and 2 deletions

View File

@ -5,7 +5,7 @@ package com.iluwatar.nullobject;
* Null Object pattern replaces null values with neutral objects.
* Many times this simplifies algorithms since no extra null checks
* are needed.
*
* <p>
* In this example we build a binary tree where the nodes are either
* normal or Null Objects. No null values are used in the tree making
* the traversal easy.
@ -13,6 +13,10 @@ package com.iluwatar.nullobject;
*/
public class App
{
/**
* Program entry point
* @param args command line args
*/
public static void main( String[] args ) {
Node root = new NodeImpl("1",

View File

@ -3,7 +3,7 @@ package com.iluwatar.nullobject;
/**
*
* Null Object implementation for binary tree node.
*
* <p>
* Implemented as Singleton, since all the NullNodes are the same.
*
*/

View File

@ -4,6 +4,11 @@ import org.junit.Test;
import com.iluwatar.nullobject.App;
/**
*
* Application test
*
*/
public class AppTest {
@Test