Repository: commons-pool
Updated Branches:
  refs/heads/master 7411f1083 -> d597d74c2


Use longer lines for readability.

Project: http://git-wip-us.apache.org/repos/asf/commons-pool/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-pool/commit/d597d74c
Tree: http://git-wip-us.apache.org/repos/asf/commons-pool/tree/d597d74c
Diff: http://git-wip-us.apache.org/repos/asf/commons-pool/diff/d597d74c

Branch: refs/heads/master
Commit: d597d74c259f579b2d7141f5f1322ad8d5be1b65
Parents: 7411f10
Author: Gary Gregory <garydgreg...@gmail.com>
Authored: Sat May 26 09:20:42 2018 -0600
Committer: Gary Gregory <garydgreg...@gmail.com>
Committed: Sat May 26 09:20:42 2018 -0600

----------------------------------------------------------------------
 .../org/apache/commons/pool2/impl/PoolImplUtils.java  | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-pool/blob/d597d74c/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java 
b/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java
index fb8ace7..f59c92e 100644
--- a/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java
+++ b/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java
@@ -66,8 +66,7 @@ class PoolImplUtils {
                 // Look for the generic interface
                 if (pi.getRawType() instanceof Class) {
                     if (type.isAssignableFrom((Class<?>) pi.getRawType())) {
-                        return getTypeParameter(
-                                clazz, pi.getActualTypeArguments()[0]);
+                        return getTypeParameter(clazz, 
pi.getActualTypeArguments()[0]);
                     }
                 }
             }
@@ -75,9 +74,7 @@ class PoolImplUtils {
 
         // Interface not found on this class. Look at the superclass.
         @SuppressWarnings("unchecked")
-        final
-        Class<? extends T> superClazz =
-                (Class<? extends T>) clazz.getSuperclass();
+        final Class<? extends T> superClazz = (Class<? extends T>) 
clazz.getSuperclass();
 
         final Object result = getGenericType(type, superClazz);
         if (result instanceof Class<?>) {
@@ -88,11 +85,8 @@ class PoolImplUtils {
             // Superclass implements interface and defines unknown type for
             // generic
             // Map that unknown type to the generic types defined in this class
-            final ParameterizedType superClassType =
-                    (ParameterizedType) clazz.getGenericSuperclass();
-            return getTypeParameter(clazz,
-                    superClassType.getActualTypeArguments()[
-                            ((Integer) result).intValue()]);
+            final ParameterizedType superClassType = (ParameterizedType) 
clazz.getGenericSuperclass();
+            return getTypeParameter(clazz, 
superClassType.getActualTypeArguments()[((Integer) result).intValue()]);
         } else {
             // Error will be logged further up the call stack
             return null;

Reply via email to