Resolves checkstyle errors for dao data-bus data-locality data-mapper data-transfer-object decorator (#1067)
* Reduces checkstyle errors in dao * Reduces checkstyle errors in data-bus * Reduces checkstyle errors in data-locality * Reduces checkstyle errors in data-mapper * Reduces checkstyle errors in data-transfer-object * Reduces checkstyle errors in decorator
This commit is contained in:
committed by
Ilkka Seppälä
parent
eae09fc07e
commit
01e489c77b
@ -27,24 +27,22 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* The Decorator pattern is a more flexible alternative to subclassing. The Decorator class
|
||||
* implements the same interface as the target and uses aggregation to "decorate" calls to the
|
||||
* target. Using the Decorator pattern it is possible to change the behavior of the class during
|
||||
* runtime.
|
||||
* <p>
|
||||
* In this example we show how the simple {@link SimpleTroll} first attacks and then flees the battle.
|
||||
* Then we decorate the {@link SimpleTroll} with a {@link ClubbedTroll} and perform the attack again. You
|
||||
* can see how the behavior changes after the decoration.
|
||||
*
|
||||
*
|
||||
* <p>In this example we show how the simple {@link SimpleTroll} first attacks and then flees the
|
||||
* battle. Then we decorate the {@link SimpleTroll} with a {@link ClubbedTroll} and perform the
|
||||
* attack again. You can see how the behavior changes after the decoration.
|
||||
*/
|
||||
public class App {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
|
||||
|
||||
/**
|
||||
* Program entry point
|
||||
*
|
||||
* Program entry point.
|
||||
*
|
||||
* @param args command line args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
|
@ -27,7 +27,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Decorator that adds a club for the troll
|
||||
* Decorator that adds a club for the troll.
|
||||
*/
|
||||
public class ClubbedTroll implements Troll {
|
||||
|
||||
|
@ -27,9 +27,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* SimpleTroll implements {@link Troll} interface directly.
|
||||
*
|
||||
*/
|
||||
public class SimpleTroll implements Troll {
|
||||
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.decorator;
|
||||
|
||||
/**
|
||||
*
|
||||
* Interface for trolls
|
||||
*
|
||||
* Interface for trolls.
|
||||
*/
|
||||
public interface Troll {
|
||||
|
||||
|
Reference in New Issue
Block a user