Return-Path: X-Original-To: apmail-commons-notifications-archive@minotaur.apache.org Delivered-To: apmail-commons-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 678CB1892F for ; Sun, 2 Aug 2015 15:46:29 +0000 (UTC) Received: (qmail 46425 invoked by uid 500); 2 Aug 2015 15:46:29 -0000 Delivered-To: apmail-commons-notifications-archive@commons.apache.org Received: (qmail 46404 invoked by uid 500); 2 Aug 2015 15:46:29 -0000 Mailing-List: contact notifications-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list notifications@commons.apache.org Received: (qmail 45965 invoked by uid 99); 2 Aug 2015 15:46:29 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2015 15:46:29 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id DE98FAC0B92 for ; Sun, 2 Aug 2015 15:46:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r960538 [16/30] - in /websites/production/commons/content/proper/commons-pool: ./ apidocs/ apidocs/org/apache/commons/pool2/ apidocs/org/apache/commons/pool2/class-use/ apidocs/org/apache/commons/pool2/impl/ apidocs/org/apache/commons/pool2... Date: Sun, 02 Aug 2015 15:46:22 -0000 To: notifications@commons.apache.org From: psteitz@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150802154628.DE98FAC0B92@hades.apache.org> Modified: websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.PoolImplUtils.html ============================================================================== --- websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.PoolImplUtils.html (original) +++ websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.PoolImplUtils.html Sun Aug 2 15:46:18 2015 @@ -96,7 +96,7 @@
     @SuppressWarnings("rawtypes")
 40  
     static Class<?> getFactoryType(Class<? extends PooledObjectFactory> factory) {
-  41  2
         return (Class<?>) getGenericType(PooledObjectFactory.class, factory);
+  41  4
         return (Class<?>) getGenericType(PooledObjectFactory.class, factory);
 42  
     }
 43   @@ -135,18 +135,18 @@
 
 60  
         // Get all the interfaces
-  61  9
         Type[] interfaces = clazz.getGenericInterfaces();
-  62  9
         for (Type iface : interfaces) {
+  61  18
         Type[] interfaces = clazz.getGenericInterfaces();
+  62  18
         for (Type iface : interfaces) {
 63  
             // Only need to check interfaces that use generics
-  64  2
             if (iface instanceof ParameterizedType) {
-  65  2
                 ParameterizedType pi = (ParameterizedType) iface;
+  64  4
             if (iface instanceof ParameterizedType) {
+  65  4
                 ParameterizedType pi = (ParameterizedType) iface;
 66  
                 // Look for the generic interface
-  67  2
                 if (pi.getRawType() instanceof Class) {
-  68  2
                     if (type.isAssignableFrom((Class<?>) pi.getRawType())) {
-  69  4
                         return getTypeParameter(
-  70  2
                                 clazz, pi.getActualTypeArguments()[0]);
+  67  4
                 if (pi.getRawType() instanceof Class) {
+  68  4
                     if (type.isAssignableFrom((Class<?>) pi.getRawType())) {
+  69  8
                         return getTypeParameter(
+  70  4
                                 clazz, pi.getActualTypeArguments()[0]);
 71  
                     }
 72   @@ -161,29 +161,29 @@
         // Interface not found on this class. Look at the superclass.
 77  
         @SuppressWarnings("unchecked")
-  78  7
         Class<? extends T> superClazz =
-  79  7
                 (Class<? extends T>) clazz.getSuperclass();
+  78  14
         Class<? extends T> superClazz =
+  79  14
                 (Class<? extends T>) clazz.getSuperclass();
 80  
 
-  81  7
         Object result = getGenericType(type, superClazz);
-  82  7
         if (result instanceof Class<?>) {
+  81  14
         Object result = getGenericType(type, superClazz);
+  82  14
         if (result instanceof Class<?>) {
 83  
             // Superclass implements interface and defines explicit type for
 84  
             // generic
-  85  1
             return result;
-  86  6
         } else if (result instanceof Integer) {
+  85  2
             return result;
+  86  12
         } else if (result instanceof Integer) {
 87  
             // Superclass implements interface and defines unknown type for
 88  
             // generic
 89  
             // Map that unknown type to the generic types defined in this class
-  90  6
             ParameterizedType superClassType =
-  91  6
                     (ParameterizedType) clazz.getGenericSuperclass();
-  92  12
             return getTypeParameter(clazz,
-  93  6
                     superClassType.getActualTypeArguments()[
-  94  6
                             ((Integer) result).intValue()]);
+  90  12
             ParameterizedType superClassType =
+  91  12
                     (ParameterizedType) clazz.getGenericSuperclass();
+  92  24
             return getTypeParameter(clazz,
+  93  12
                     superClassType.getActualTypeArguments()[
+  94  12
                             ((Integer) result).intValue()]);
 95  
         } else {
 96   @@ -221,14 +221,14 @@
      */
 113  
     private static Object getTypeParameter(Class<?> clazz, Type argType) {
-  114  8
         if (argType instanceof Class<?>) {
-  115  2
             return argType;
+  114  16
         if (argType instanceof Class<?>) {
+  115  4
             return argType;
 116  
         } else {
-  117  6
             TypeVariable<?>[] tvs = clazz.getTypeParameters();
-  118  7
             for (int i = 0; i < tvs.length; i++) {
-  119  7
                 if (tvs[i].equals(argType)) {
-  120  6
                     return Integer.valueOf(i);
+  117  12
             TypeVariable<?>[] tvs = clazz.getTypeParameters();
+  118  14
             for (int i = 0; i < tvs.length; i++) {
+  119  14
                 if (tvs[i].equals(argType)) {
+  120  12
                     return Integer.valueOf(i);
 121  
                 }
 122   @@ -242,6 +242,6 @@
 }
- + \ No newline at end of file Modified: websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.PooledSoftReference.html ============================================================================== --- websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.PooledSoftReference.html (original) +++ websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.PooledSoftReference.html Sun Aug 2 15:46:18 2015 @@ -103,9 +103,9 @@
      */
 43  
     public PooledSoftReference(SoftReference<T> reference) {
-  44  53
         super(null);  // Null the hard reference in the parent
-  45  53
         this.reference = reference;
-  46  53
     }
+  44  106
         super(null);  // Null the hard reference in the parent
+  45  106
         this.reference = reference;
+  46  106
     }
 47  
 
 48   @@ -128,7 +128,7 @@
     @Override
 57  
     public T getObject() {
-  58  221
         return reference.get();
+  58  442
         return reference.get();
 59  
     }
 60   @@ -143,14 +143,14 @@
     @Override
 65  
     public String toString() {
-  66  1
         StringBuilder result = new StringBuilder();
-  67  1
         result.append("Referenced Object: ");
-  68  1
         result.append(getObject().toString());
-  69  1
         result.append(", State: ");
-  70  1
         synchronized (this) {
-  71  1
             result.append(getState().toString());
-  72  1
         }
-  73  1
         return result.toString();
+  66  2
         StringBuilder result = new StringBuilder();
+  67  2
         result.append("Referenced Object: ");
+  68  2
         result.append(getObject().toString());
+  69  2
         result.append(", State: ");
+  70  2
         synchronized (this) {
+  71  2
             result.append(getState().toString());
+  72  2
         }
+  73  2
         return result.toString();
 74  
         // TODO add other attributes
 75   @@ -171,7 +171,7 @@
      */
 83  
     public synchronized SoftReference<T> getReference() {
-  84  266
         return reference;
+  84  532
         return reference;
 85  
     }
 86   @@ -198,12 +198,12 @@
      */
 97  
     public synchronized void setReference(SoftReference<T> reference) {
-  98  11
         this.reference = reference;
-  99  11
     }
+  98  22
         this.reference = reference;
+  99  22
     }
 100  
 }
- + \ No newline at end of file