commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1537356 - /commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java
Date Thu, 31 Oct 2013 00:20:51 GMT
Author: sebb
Date: Thu Oct 31 00:20:51 2013
New Revision: 1537356

URL: http://svn.apache.org/r1537356
Log:
Avoid data hiding

Modified:
    commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java

Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java?rev=1537356&r1=1537355&r2=1537356&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java
(original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java
Thu Oct 31 00:20:51 2013
@@ -231,13 +231,13 @@ public class DefaultPooledObject<T> impl
 
     @Override
     public void printStackTrace(PrintWriter writer) {
-        Exception borrowedBy = this.borrowedBy;
-        if (borrowedBy != null) {
-            borrowedBy.printStackTrace(writer);
+        Exception borrowedByCopy = this.borrowedBy;
+        if (borrowedByCopy != null) {
+            borrowedByCopy.printStackTrace(writer);
         }
-        Exception usedBy = this.usedBy;
-        if (usedBy != null) {
-            usedBy.printStackTrace(writer);
+        Exception usedByCopy = this.usedBy;
+        if (usedByCopy != null) {
+            usedByCopy.printStackTrace(writer);
         }
     }
 



Mime
View raw message