directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r370949 - /directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/IoAddress.java
Date Sat, 21 Jan 2006 01:40:17 GMT
Author: trustin
Date: Fri Jan 20 17:40:03 2006
New Revision: 370949

URL: http://svn.apache.org/viewcvs?rev=370949&view=rev
Log:
More normalization in IoAddress

Modified:
    directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/IoAddress.java

Modified: directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/IoAddress.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/IoAddress.java?rev=370949&r1=370948&r2=370949&view=diff
==============================================================================
--- directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/IoAddress.java
(original)
+++ directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/IoAddress.java
Fri Jan 20 17:40:03 2006
@@ -45,8 +45,8 @@
             throw new NullPointerException( "address" );
         }
         
-        provider = provider.trim();
-        transportType = transportType.trim();
+        provider = provider.trim().toLowerCase();
+        transportType = transportType.trim().toLowerCase();
         address = address.trim();
         
         if( provider.indexOf( ':' ) >= 0 )
@@ -73,12 +73,12 @@
         int startPos;
         int colonPos = uri.indexOf( ':' );
         checkColonPos( uri, colonPos );
-        provider = uri.substring( 0, colonPos ).trim();
+        provider = uri.substring( 0, colonPos ).trim().toLowerCase();
         startPos = colonPos + 1;
         
         colonPos = uri.indexOf( ':', startPos );
         checkColonPos( uri, colonPos );
-        transportType = uri.substring( startPos, colonPos ).trim();
+        transportType = uri.substring( startPos, colonPos ).trim().toLowerCase();
         startPos = colonPos + 1;
         
         address = uri.substring( startPos ).trim();



Mime
View raw message