summaryrefslogtreecommitdiff
path: root/lib/java/src/main/java/org/apache/thrift/TEnumHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'lib/java/src/main/java/org/apache/thrift/TEnumHelper.java')
-rw-r--r--lib/java/src/main/java/org/apache/thrift/TEnumHelper.java15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/java/src/main/java/org/apache/thrift/TEnumHelper.java b/lib/java/src/main/java/org/apache/thrift/TEnumHelper.java
index fbc778751..84aa82e8d 100644
--- a/lib/java/src/main/java/org/apache/thrift/TEnumHelper.java
+++ b/lib/java/src/main/java/org/apache/thrift/TEnumHelper.java
@@ -19,27 +19,20 @@
package org.apache.thrift;
-import java.lang.NoSuchMethodException;
-import java.lang.IllegalAccessException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-/**
- * Utility class with static methods for interacting with TEnum
- */
+/** Utility class with static methods for interacting with TEnum */
public class TEnumHelper {
/**
- * Given a TEnum class and integer value, this method will return
- * the associated constant from the given TEnum class.
- * This method MUST be modified should the name of the 'findByValue' method
+ * Given a TEnum class and integer value, this method will return the associated constant from the
+ * given TEnum class. This method MUST be modified should the name of the 'findByValue' method
* change.
*
* @param enumClass TEnum from which to return a matching constant.
* @param value Value for which to return the constant.
- *
- * @return The constant in 'enumClass' whose value is 'value' or null if
- * something went wrong.
+ * @return The constant in 'enumClass' whose value is 'value' or null if something went wrong.
*/
public static TEnum getByValue(Class<? extends TEnum> enumClass, int value) {
try {