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:
Anurag Agarwal
2019-11-13 00:56:15 +05:30
committed by Ilkka Seppälä
parent 1e76d91929
commit 6ef840f3cf
41 changed files with 242 additions and 288 deletions

View File

@ -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;