Resolves checkstyle errors for trampoline twin typeobjectpattern unit-of-work value-object (#1074)
* Reduces checkstyle errors in trampoline * Reduces checkstyle errors in twin * Reduces checkstyle errors in typeobjectpattern * Reduces checkstyle errors in unit-of-work * Reduces checkstyle errors in value-object
This commit is contained in:
committed by
Ilkka Seppälä
parent
b92eb5229d
commit
f0f0143d48
@ -26,17 +26,17 @@ package com.iluwatar.twin;
|
||||
/**
|
||||
* Twin pattern is a design pattern which provides a standard solution to simulate multiple
|
||||
* inheritance in java.
|
||||
* <p>
|
||||
* In this example, the essence of the Twin pattern is the {@link BallItem} class and
|
||||
* {@link BallThread} class represent the twin objects to coordinate with each other(via the twin
|
||||
*
|
||||
* <p>In this example, the essence of the Twin pattern is the {@link BallItem} class and {@link
|
||||
* BallThread} class represent the twin objects to coordinate with each other(via the twin
|
||||
* reference) like a single class inheriting from {@link GameItem} and {@link Thread}.
|
||||
*/
|
||||
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Program entry point
|
||||
*
|
||||
* Program entry point.
|
||||
*
|
||||
* @param args command line args
|
||||
*/
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
@ -29,7 +29,6 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* This class is a UI thread for drawing the {@link BallItem}, and provide the method for suspend
|
||||
* and resume. It hold the reference of {@link BallItem} to delegate the draw task.
|
||||
*
|
||||
*/
|
||||
|
||||
public class BallThread extends Thread {
|
||||
@ -47,7 +46,7 @@ public class BallThread extends Thread {
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the thread
|
||||
* Run the thread.
|
||||
*/
|
||||
public void run() {
|
||||
|
||||
|
@ -34,7 +34,7 @@ public abstract class GameItem {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(GameItem.class);
|
||||
|
||||
/**
|
||||
* Template method, do some common logic before draw
|
||||
* Template method, do some common logic before draw.
|
||||
*/
|
||||
public void draw() {
|
||||
LOGGER.info("draw");
|
||||
|
Reference in New Issue
Block a user