diff --git a/src/main/java/org/apache/commons/lang3/Streams.java b/src/main/java/org/apache/commons/lang3/Streams.java index 7adcf6b4c..2a9201d75 100644 --- a/src/main/java/org/apache/commons/lang3/Streams.java +++ b/src/main/java/org/apache/commons/lang3/Streams.java @@ -73,7 +73,7 @@ public class Streams { * @deprecated Use {@link org.apache.commons.lang3.stream.Streams.FailableStream}. */ @Deprecated - public static class FailableStream { + public static class FailableStream { private Stream stream; private boolean terminated; @@ -545,7 +545,7 @@ public class Streams { * @return a {@link Collector} which collects all the input elements into an * array, in encounter order */ - public static Collector toArray(final Class pElementType) { + public static Collector toArray(final Class pElementType) { return new ArrayCollector<>(pElementType); } } diff --git a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java index d4eb13590..11e995338 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java @@ -329,7 +329,7 @@ public class MethodUtils { Objects.requireNonNull(object, "object"); args = ArrayUtils.nullToEmpty(args); parameterTypes = ArrayUtils.nullToEmpty(parameterTypes); - final Class cls = object.getClass(); + final Class cls = object.getClass(); final Method method = getAccessibleMethod(cls, methodName, parameterTypes); if (method == null) { throw new NoSuchMethodException("No such accessible method: " + methodName + "() on object: " + cls.getName()); diff --git a/src/main/java/org/apache/commons/lang3/stream/Streams.java b/src/main/java/org/apache/commons/lang3/stream/Streams.java index 6ae7d1aa4..29a00a726 100644 --- a/src/main/java/org/apache/commons/lang3/stream/Streams.java +++ b/src/main/java/org/apache/commons/lang3/stream/Streams.java @@ -174,7 +174,7 @@ public class Streams { * * @param The streams element type. */ - public static class FailableStream { + public static class FailableStream { private Stream stream; private boolean terminated; @@ -777,7 +777,7 @@ public class Streams { * @param the type of the input elements * @return a {@link Collector} which collects all the input elements into an array, in encounter order */ - public static Collector toArray(final Class pElementType) { + public static Collector toArray(final Class pElementType) { return new ArrayCollector<>(pElementType); } }