abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r452065 - /incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
Date Mon, 02 Oct 2006 15:11:56 GMT
Author: rooneg
Date: Mon Oct  2 08:11:55 2006
New Revision: 452065

URL: http://svn.apache.org/viewvc?view=rev&rev=452065
Log:
Make the ChangeControlParser work on 1.4 JVMs.

Submitted by: Steven Isaacson <spisaacs gmail.com>

[ in protocol/src/main/java/org/apache/abdera/protocol/util ]

* CacheControlParser.java
  (select): Use String.replaceAll, not String.replace, since replaceAll
   exists in Java 1.4.

Modified:
    incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java

Modified: incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java?view=diff&rev=452065&r1=452064&r2=452065
==============================================================================
--- incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
(original)
+++ incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
Mon Oct  2 08:11:55 2006
@@ -31,7 +31,7 @@
     
     public static Directive select(String d) {
       try {
-        d = d.toUpperCase().replace("-", "");
+        d = d.toUpperCase().replaceAll("-", "");
         return Directive.valueOf(d);
       } catch (Exception e) {}
       return UNKNOWN;



Mime
View raw message