Resolves checkstyle errors for naked-objects null-object object-mother object-pool observer queue-load-leveling (#1082)
* Reduces checkstyle errors in naked-objects * Reduces checkstyle errors in null-object * Reduces checkstyle errors in object-mother * Reduces checkstyle errors in object-pool * Reduces checkstyle errors in observer * Reduces checkstyle errors in queue-load-leveling
This commit is contained in:
committed by
Ilkka Seppälä
parent
1e76d91929
commit
6ef840f3cf
@ -24,17 +24,16 @@
|
||||
package com.iluwatar.nullobject;
|
||||
|
||||
/**
|
||||
*
|
||||
* Null Object implementation for binary tree node.
|
||||
* <p>
|
||||
* Implemented as Singleton, since all the NullNodes are the same.
|
||||
*
|
||||
* <p>Implemented as Singleton, since all the NullNodes are the same.
|
||||
*/
|
||||
public final class NullNode implements Node {
|
||||
|
||||
private static NullNode instance = new NullNode();
|
||||
|
||||
private NullNode() {}
|
||||
private NullNode() {
|
||||
}
|
||||
|
||||
public static NullNode getInstance() {
|
||||
return instance;
|
||||
|
Reference in New Issue
Block a user