From a68f9dadd5275d1124a532e2d10c70a6b406e24a Mon Sep 17 00:00:00 2001 From: Oliver Heger Date: Fri, 18 Mar 2011 20:55:28 +0000 Subject: [PATCH] Checkstyle and trailing spaces. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083068 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang3/EnumUtils.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/EnumUtils.java b/src/main/java/org/apache/commons/lang3/EnumUtils.java index 8baec19ff..e2773df32 100644 --- a/src/main/java/org/apache/commons/lang3/EnumUtils.java +++ b/src/main/java/org/apache/commons/lang3/EnumUtils.java @@ -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; /** *

Utility library to provide helper methods for Java enums.

- * + * *

#ThreadSafe#

- * + * * @author Apache Software Foundation * @since 3.0 * @version $Id$ @@ -42,9 +42,10 @@ public class EnumUtils { /** *

Gets the {@code Map} of enums by name.

- * + * *

This method is useful when you need a map of enums by name.

* + * @param 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 { /** *

Gets the {@code List} of enums.

- * + * *

This method is useful when you need a list of enums rather than an array.

* + * @param 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 { /** *

Checks if the specified name is a valid enum for the class.

- * + * *

This method differs from {@link Enum#valueOf} in that checks if the name is * a valid enum without needing to catch the exception.

* + * @param 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 { /** *

Gets the enum for the class, returning {@code null} if not found.

- * + * *

This method differs from {@link Enum#valueOf} in that it does not throw an exception * for an invalid enum name.

* + * @param 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