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,7 +24,7 @@
|
||||
package com.iluwatar.objectmother;
|
||||
|
||||
/**
|
||||
* Defines all attributes and behaviour related to the King
|
||||
* Defines all attributes and behaviour related to the King.
|
||||
*/
|
||||
public class King implements Royalty {
|
||||
boolean isDrunk = false;
|
||||
@ -56,6 +56,7 @@ public class King implements Royalty {
|
||||
|
||||
/**
|
||||
* Method to flirt to a queen.
|
||||
*
|
||||
* @param queen Queen which should be flirted.
|
||||
*/
|
||||
public void flirt(Queen queen) {
|
||||
|
@ -24,7 +24,7 @@
|
||||
package com.iluwatar.objectmother;
|
||||
|
||||
/**
|
||||
* Defines all attributes and behaviour related to the Queen
|
||||
* Defines all attributes and behaviour related to the Queen.
|
||||
*/
|
||||
public class Queen implements Royalty {
|
||||
private boolean isDrunk = false;
|
||||
@ -61,6 +61,7 @@ public class Queen implements Royalty {
|
||||
|
||||
/**
|
||||
* Method which is called when the king is flirting to a queen.
|
||||
*
|
||||
* @param king King who initialized the flirt.
|
||||
* @return A value which describes if the flirt was successful or not.
|
||||
*/
|
||||
|
@ -24,7 +24,7 @@
|
||||
package com.iluwatar.objectmother;
|
||||
|
||||
/**
|
||||
* Interface contracting Royalty Behaviour
|
||||
* Interface contracting Royalty Behaviour.
|
||||
*/
|
||||
public interface Royalty {
|
||||
void makeDrunk();
|
||||
|
@ -24,12 +24,13 @@
|
||||
package com.iluwatar.objectmother;
|
||||
|
||||
/**
|
||||
* Object Mother Pattern generating Royalty Types
|
||||
* Object Mother Pattern generating Royalty Types.
|
||||
*/
|
||||
public final class RoyaltyObjectMother {
|
||||
|
||||
/**
|
||||
* Method to create a sober and unhappy king. The standard parameters are set.
|
||||
*
|
||||
* @return An instance of {@link com.iluwatar.objectmother.King} with the standard properties.
|
||||
*/
|
||||
public static King createSoberUnhappyKing() {
|
||||
@ -38,6 +39,7 @@ public final class RoyaltyObjectMother {
|
||||
|
||||
/**
|
||||
* Method of the object mother to create a drunk king.
|
||||
*
|
||||
* @return A drunk {@link com.iluwatar.objectmother.King}.
|
||||
*/
|
||||
public static King createDrunkKing() {
|
||||
@ -48,6 +50,7 @@ public final class RoyaltyObjectMother {
|
||||
|
||||
/**
|
||||
* Method to create a happy king.
|
||||
*
|
||||
* @return A happy {@link com.iluwatar.objectmother.King}.
|
||||
*/
|
||||
public static King createHappyKing() {
|
||||
@ -58,6 +61,7 @@ public final class RoyaltyObjectMother {
|
||||
|
||||
/**
|
||||
* Method to create a happy and drunk king.
|
||||
*
|
||||
* @return A drunk and happy {@link com.iluwatar.objectmother.King}.
|
||||
*/
|
||||
public static King createHappyDrunkKing() {
|
||||
@ -69,6 +73,7 @@ public final class RoyaltyObjectMother {
|
||||
|
||||
/**
|
||||
* Method to create a flirty queen.
|
||||
*
|
||||
* @return A flirty {@link com.iluwatar.objectmother.Queen}.
|
||||
*/
|
||||
public static Queen createFlirtyQueen() {
|
||||
@ -79,6 +84,7 @@ public final class RoyaltyObjectMother {
|
||||
|
||||
/**
|
||||
* Method to create a not flirty queen.
|
||||
*
|
||||
* @return A not flirty {@link com.iluwatar.objectmother.Queen}.
|
||||
*/
|
||||
public static Queen createNotFlirtyQueen() {
|
||||
|
Reference in New Issue
Block a user