geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r587059 - /geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Session.java
Date Mon, 22 Oct 2007 11:26:03 GMT
Author: rickmcguire
Date: Mon Oct 22 04:26:02 2007
New Revision: 587059

URL: http://svn.apache.org/viewvc?rev=587059&view=rev
Log:
GERONIMO-3540 Session.loadProviders(ProviderInfo info, InputStream is) doesn't seem to handle
comments correctly


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

Modified: geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Session.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Session.java?rev=587059&r1=587058&r2=587059&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Session.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/Session.java
Mon Oct 22 04:26:02 2007
@@ -618,6 +618,11 @@
         BufferedReader reader = new BufferedReader(new InputStreamReader(is));
         String line;
         while ((line = reader.readLine()) != null) {
+            // Lines beginning with "#" are just comments.  
+            if (line.startsWith("#")) {
+                continue; 
+            }
+            
             StringTokenizer tok = new StringTokenizer(line, ";");
             String protocol = null;
             Provider.Type type = null;



Mime
View raw message