Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.
This commit is contained in:
@ -5,8 +5,6 @@ import java.util.HashSet;
|
||||
/**
|
||||
*
|
||||
* Generic object pool
|
||||
*
|
||||
* @param <T>
|
||||
*/
|
||||
public abstract class ObjectPool<T> {
|
||||
|
||||
@ -15,6 +13,9 @@ public abstract class ObjectPool<T> {
|
||||
|
||||
protected abstract T create();
|
||||
|
||||
/**
|
||||
* Checkout object from pool
|
||||
*/
|
||||
public synchronized T checkOut() {
|
||||
if (available.size() <= 0) {
|
||||
available.add(create());
|
||||
|
@ -11,6 +11,9 @@ public class Oliphaunt {
|
||||
|
||||
private final int id;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public Oliphaunt() {
|
||||
id = counter++;
|
||||
try {
|
||||
|
Reference in New Issue
Block a user