Resolves checkstyle errors for template-method thread-pool throttling tls tolerant-reader (#1073)
* Reduces checkstyle errors in template-method * Reduces checkstyle errors in thread-pool * Reduces checkstyle errors in throttling * Reduces checkstyle errors in tls * Reduces checkstyle errors in tolerant-reader
This commit is contained in:
committed by
Ilkka Seppälä
parent
9c8ad4485b
commit
b92eb5229d
@ -24,19 +24,17 @@
|
||||
package com.iluwatar.templatemethod;
|
||||
|
||||
/**
|
||||
*
|
||||
* Template Method defines a skeleton for an algorithm. The algorithm subclasses provide
|
||||
* implementation for the blank parts.
|
||||
* <p>
|
||||
* In this example {@link HalflingThief} contains {@link StealingMethod} that can be changed. First
|
||||
* the thief hits with {@link HitAndRunMethod} and then with {@link SubtleMethod}.
|
||||
*
|
||||
*
|
||||
* <p>In this example {@link HalflingThief} contains {@link StealingMethod} that can be changed.
|
||||
* First the thief hits with {@link HitAndRunMethod} and then with {@link SubtleMethod}.
|
||||
*/
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Program entry point
|
||||
*
|
||||
* Program entry point.
|
||||
*
|
||||
* @param args command line args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.templatemethod;
|
||||
|
||||
/**
|
||||
*
|
||||
* Halfling thief uses {@link StealingMethod} to steal.
|
||||
*
|
||||
*/
|
||||
public class HalflingThief {
|
||||
|
||||
|
@ -27,9 +27,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* HitAndRunMethod implementation of {@link StealingMethod}.
|
||||
*
|
||||
*/
|
||||
public class HitAndRunMethod extends StealingMethod {
|
||||
|
||||
|
@ -27,9 +27,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* StealingMethod defines skeleton for the algorithm.
|
||||
*
|
||||
*/
|
||||
public abstract class StealingMethod {
|
||||
|
||||
@ -42,7 +40,7 @@ public abstract class StealingMethod {
|
||||
protected abstract void stealTheItem(String target);
|
||||
|
||||
/**
|
||||
* Steal
|
||||
* Steal.
|
||||
*/
|
||||
public void steal() {
|
||||
var target = pickTarget();
|
||||
|
@ -27,9 +27,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* SubtleMethod implementation of {@link StealingMethod}.
|
||||
*
|
||||
*/
|
||||
public class SubtleMethod extends StealingMethod {
|
||||
|
||||
|
Reference in New Issue
Block a user