Remove mystery method
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 20 Apr 2010 22:19:42 +0000 (22:19 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 20 Apr 2010 22:19:42 +0000 (22:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@936091 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/Response.java
java/org/apache/catalina/core/DummyResponse.java

index 7c5aba7..2e62653 100644 (file)
@@ -859,8 +859,8 @@ public class Response
     /**
      * Return the value for the specified header, or <code>null</code> if this
      * header has not been set.  If more than one value was added for this
-     * name, only the first is returned; use getHeaderValues() to retrieve all
-     * of them.
+     * name, only the first is returned; use {@link #getHeaders(String)} to
+     * retrieve all of them.
      *
      * @param name Header name to look up
      */
index 9ebb51d..6ca847b 100644 (file)
@@ -102,9 +102,7 @@ public class DummyResponse
 
     public String getHeader(String name) { return null; }
     public Collection<String> getHeaderNames() { return null; }
-    public String[] getHeaderValues(@SuppressWarnings("unused") String name) {
-        return null;
-    }
+    public Collection<String> getHeaders(String name) { return null; }
     public String getMessage() { return null; }
     public int getStatus() { return -1; }
     public void reset(@SuppressWarnings("unused") int status,
@@ -133,5 +131,4 @@ public class DummyResponse
     /** @deprecated */
     @Deprecated
     public void setStatus(int status, String message) {}
-    public Collection<String> getHeaders(String name) { return null; }
 }