You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by zo...@apache.org on 2006/10/16 23:01:33 UTC
svn commit: r464665 - in /xalan/java/trunk/src/org/apache/xml:
serializer/utils/URI.java utils/URI.java
Author: zongaro
Date: Mon Oct 16 14:01:30 2006
New Revision: 464665
URL: http://svn.apache.org/viewvc?view=rev&rev=464665
Log:
Applying patch for XALANJ-2268 from Dave Brosius.
Removed an unnecessary guard from code in the initialize(URI,String) method that
does not actually protect against any exception.
Modified:
xalan/java/trunk/src/org/apache/xml/serializer/utils/URI.java
xalan/java/trunk/src/org/apache/xml/utils/URI.java
Modified: xalan/java/trunk/src/org/apache/xml/serializer/utils/URI.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/serializer/utils/URI.java?view=diff&rev=464665&r1=464664&r2=464665
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/serializer/utils/URI.java (original)
+++ xalan/java/trunk/src/org/apache/xml/serializer/utils/URI.java Mon Oct 16 14:01:30 2006
@@ -403,8 +403,7 @@
}
// two slashes means generic URI syntax, so we get the authority
- if (((index + 1) < uriSpecLen)
- && (uriSpec.substring(index).startsWith("//")))
+ if (uriSpec.startsWith("//"))
{
index += 2;
Modified: xalan/java/trunk/src/org/apache/xml/utils/URI.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/utils/URI.java?view=diff&rev=464665&r1=464664&r2=464665
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/utils/URI.java (original)
+++ xalan/java/trunk/src/org/apache/xml/utils/URI.java Mon Oct 16 14:01:30 2006
@@ -423,8 +423,7 @@
}
// two slashes means generic URI syntax, so we get the authority
- if (((index + 1) < uriSpecLen)
- && (uriSpec.substring(index).startsWith("//")))
+ if (uriSpec.startsWith("//"))
{
index += 2;
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org