geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r593268 - /geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Service.java
Date Thu, 08 Nov 2007 19:24:02 GMT
Author: rickmcguire
Date: Thu Nov  8 11:24:00 2007
New Revision: 593268

URL: http://svn.apache.org/viewvc?rev=593268&view=rev
Log:
GERONIMO-3592 javamail Service.toString() method should not include password information.


Modified:
    geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Service.java

Modified: geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Service.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Service.java?rev=593268&r1=593267&r2=593268&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Service.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Service.java
Thu Nov  8 11:24:00 2007
@@ -381,6 +381,10 @@
     }
 
     public String toString() {
+        // NOTE:  We call getURLName() rather than use the URL directly 
+        // because the get method strips out the password information. 
+        URLName url = getURLName(); 
+        
         return url == null ? super.toString() : url.toString();
     }
 



Mime
View raw message