diff --git a/src/main/java/org/apache/commons/collections/buffer/BoundedBuffer.java b/src/main/java/org/apache/commons/collections/buffer/BoundedBuffer.java index 940b9d1f1..fe1b5059c 100644 --- a/src/main/java/org/apache/commons/collections/buffer/BoundedBuffer.java +++ b/src/main/java/org/apache/commons/collections/buffer/BoundedBuffer.java @@ -82,7 +82,8 @@ public class BoundedBuffer extends SynchronizedBuffer implements BoundedCo * @throws IllegalArgumentException if the buffer is null * @throws IllegalArgumentException if the maximum size is zero or less */ - public static BoundedBuffer boundedBuffer(final Buffer buffer, final int maximumSize, final long timeout) { + public static BoundedBuffer boundedBuffer(final Buffer buffer, final int maximumSize, + final long timeout) { return new BoundedBuffer(buffer, maximumSize, timeout); } diff --git a/src/main/java/org/apache/commons/collections/buffer/PredicatedBuffer.java b/src/main/java/org/apache/commons/collections/buffer/PredicatedBuffer.java index 64984ec43..6a82d55db 100644 --- a/src/main/java/org/apache/commons/collections/buffer/PredicatedBuffer.java +++ b/src/main/java/org/apache/commons/collections/buffer/PredicatedBuffer.java @@ -54,7 +54,8 @@ public class PredicatedBuffer extends PredicatedCollection implements Buff * @throws IllegalArgumentException if buffer or predicate is null * @throws IllegalArgumentException if the buffer contains invalid elements */ - public static PredicatedBuffer predicatedBuffer(final Buffer buffer, final Predicate predicate) { + public static PredicatedBuffer predicatedBuffer(final Buffer buffer, + final Predicate predicate) { return new PredicatedBuffer(buffer, predicate); }