abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r771444 - /abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
Date Mon, 04 May 2009 21:10:22 GMT
Author: jmsnell
Date: Mon May  4 21:10:21 2009
New Revision: 771444

URL: http://svn.apache.org/viewvc?rev=771444&view=rev
Log:
IRI.toString() does not preserve empty fragment identifiers and queries

Per https://issues.apache.org/jira/browse/ABDERA-218

Modified:
    abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java

Modified: abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java?rev=771444&r1=771443&r2=771444&view=diff
==============================================================================
--- abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
(original)
+++ abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
Mon May  4 21:10:21 2009
@@ -334,11 +334,11 @@
       if (path != null && path.length() != 0) {
         buf.append(path);
       }
-      if (query != null && query.length() != 0) {
+      if (query != null) {
         buf.append('?');
         buf.append(query);
       }
-      if (fragment != null && fragment.length() != 0) {
+      if (fragment != null) {
         buf.append('#');
         buf.append(fragment);
       }



Mime
View raw message