Author: oheger
Date: Fri Mar 18 20:55:28 2011
New Revision: 1083068
URL: http://svn.apache.org/viewvc?rev=1083068&view=rev
Log:
Checkstyle and trailing spaces.
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/EnumUtils.java
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/EnumUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/EnumUtils.java?rev=1083068&r1=1083067&r2=1083068&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/EnumUtils.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/EnumUtils.java
Fri Mar 18 20:55:28 2011
@@ -5,9 +5,9 @@
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,9 +24,9 @@ import java.util.Map;
/**
* <p>Utility library to provide helper methods for Java enums.</p>
- *
+ *
* <p>#ThreadSafe#</p>
- *
+ *
* @author Apache Software Foundation
* @since 3.0
* @version $Id$
@@ -42,9 +42,10 @@ public class EnumUtils {
/**
* <p>Gets the {@code Map} of enums by name.</p>
- *
+ *
* <p>This method is useful when you need a map of enums by name.</p>
*
+ * @param <E> the type of the enumeration
* @param enumClass the class of the enum to query, not null
* @return the modifiable map of enum names to enums, never null
*/
@@ -58,9 +59,10 @@ public class EnumUtils {
/**
* <p>Gets the {@code List} of enums.</p>
- *
+ *
* <p>This method is useful when you need a list of enums rather than an
array.</p>
*
+ * @param <E> the type of the enumeration
* @param enumClass the class of the enum to query, not null
* @return the modifiable list of enums, never null
*/
@@ -70,10 +72,11 @@ public class EnumUtils {
/**
* <p>Checks if the specified name is a valid enum for the class.</p>
- *
+ *
* <p>This method differs from {@link Enum#valueOf} in that checks if the
name is
* a valid enum without needing to catch the exception.</p>
*
+ * @param <E> the type of the enumeration
* @param enumClass the class of the enum to query, not null
* @param enumName the enum name, null returns false
* @return true if the enum name is valid, otherwise false
@@ -92,10 +95,11 @@ public class EnumUtils {
/**
* <p>Gets the enum for the class, returning {@code null} if not found.</p>
- *
+ *
* <p>This method differs from {@link Enum#valueOf} in that it does not
throw an exception
* for an invalid enum name.</p>
*
+ * @param <E> the type of the enumeration
* @param enumClass the class of the enum to query, not null
* @param enumName the enum name, null returns null
* @return the enum, null if not found