From e8c5f9fbb68483d701b70cf328e180042152f18f Mon Sep 17 00:00:00 2001
From: Fredrik Westermarck
Date: Fri, 5 May 2006 15:23:31 +0000
Subject: [PATCH] Resolved a few checkstyle issues.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@400092 13f79535-47bb-0310-9956-ffa450edef68
---
src/java/org/apache/commons/lang/ClassUtils.java | 8 ++++++++
src/java/org/apache/commons/lang/LocaleUtils.java | 1 +
.../commons/lang/builder/ReflectionToStringBuilder.java | 3 ---
src/java/org/apache/commons/lang/text/StrBuilder.java | 1 -
4 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/java/org/apache/commons/lang/ClassUtils.java b/src/java/org/apache/commons/lang/ClassUtils.java
index a01f04389..d8be8e846 100644
--- a/src/java/org/apache/commons/lang/ClassUtils.java
+++ b/src/java/org/apache/commons/lang/ClassUtils.java
@@ -604,6 +604,14 @@ public static Class getClass(String className, boolean initialize) throws ClassN
* Method method = ClassUtils.getPublicMethod(set.getClass(), "isEmpty", new Class[0]);
* Object result = method.invoke(set, new Object[]);
*
+ *
+ * @param cls the class to check
+ * @param methodName the name of the method
+ * @param parameterTypes the list of parameters
+ * @return the method
+ * @throws SecurityException If a a security violation occured
+ * @throws NoSuchMethodException If the method is not found in the given class
+ * or if the metothod doen't conform with the requirements
*/
public static Method getPublicMethod(Class cls, String methodName, Class parameterTypes[])
throws SecurityException, NoSuchMethodException
diff --git a/src/java/org/apache/commons/lang/LocaleUtils.java b/src/java/org/apache/commons/lang/LocaleUtils.java
index a1c54496d..abff5102e 100644
--- a/src/java/org/apache/commons/lang/LocaleUtils.java
+++ b/src/java/org/apache/commons/lang/LocaleUtils.java
@@ -215,6 +215,7 @@ public static Set availableLocaleSet() {
/**
* Checks if the locale specified is in the list of available locales.
*
+ * @param locale the Locale object to check if it is available
* @return true if the locale is a known locale
*/
public static boolean isAvailableLocale(Locale locale) {
diff --git a/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java b/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
index 58a07cdef..9459e7c31 100644
--- a/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
+++ b/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
@@ -23,10 +23,7 @@
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
import java.util.Set;
-
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.ClassUtils;
diff --git a/src/java/org/apache/commons/lang/text/StrBuilder.java b/src/java/org/apache/commons/lang/text/StrBuilder.java
index 03b7b1636..aa774ec78 100644
--- a/src/java/org/apache/commons/lang/text/StrBuilder.java
+++ b/src/java/org/apache/commons/lang/text/StrBuilder.java
@@ -1241,7 +1241,6 @@ public StrBuilder deleteFirst(StrMatcher matcher) {
* @param removeLen the length to remove (endIndex - startIndex), must be valid
* @param insertStr the string to replace with, null means delete range
* @param insertLen the length of the insert string, must be valid
- * @param len the length, must be valid
* @throws IndexOutOfBoundsException if any index is invalid
*/
private void replaceImpl(int startIndex, int endIndex, int removeLen, String insertStr, int insertLen) {