abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1175659 - /abdera/abdera2/common/src/main/java/org/apache/abdera2/common/protocol/AbstractResponseContext.java
Date Mon, 26 Sep 2011 04:20:35 GMT
Author: jmsnell
Date: Mon Sep 26 04:20:35 2011
New Revision: 1175659

URL: http://svn.apache.org/viewvc?rev=1175659&view=rev
Log: (empty)

Modified:
    abdera/abdera2/common/src/main/java/org/apache/abdera2/common/protocol/AbstractResponseContext.java

Modified: abdera/abdera2/common/src/main/java/org/apache/abdera2/common/protocol/AbstractResponseContext.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/common/src/main/java/org/apache/abdera2/common/protocol/AbstractResponseContext.java?rev=1175659&r1=1175658&r2=1175659&view=diff
==============================================================================
--- abdera/abdera2/common/src/main/java/org/apache/abdera2/common/protocol/AbstractResponseContext.java
(original)
+++ abdera/abdera2/common/src/main/java/org/apache/abdera2/common/protocol/AbstractResponseContext.java
Mon Sep 26 04:20:35 2011
@@ -182,7 +182,7 @@ public abstract class AbstractResponseCo
 
     public <T extends ResponseContext>T setSlug(String slug) {
         if (slug == null) {
-            return removeHeader("Slug");
+            return (T)removeHeader("Slug");
         }
         if (slug.indexOf((char)10) > -1 || slug.indexOf((char)13) > -1)
             throw new IllegalArgumentException(Localizer.get("SLUG.BAD.CHARACTERS"));



Mime
View raw message