You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2017/05/02 18:54:58 UTC

svn commit: r1793574 - /tomcat/trunk/java/javax/servlet/http/HttpServletRequest.java

Author: markt
Date: Tue May  2 18:54:58 2017
New Revision: 1793574

URL: http://svn.apache.org/viewvc?rev=1793574&view=rev
Log:
Spec includes a default impl (don't know why)

Modified:
    tomcat/trunk/java/javax/servlet/http/HttpServletRequest.java

Modified: tomcat/trunk/java/javax/servlet/http/HttpServletRequest.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/HttpServletRequest.java?rev=1793574&r1=1793573&r2=1793574&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/http/HttpServletRequest.java (original)
+++ tomcat/trunk/java/javax/servlet/http/HttpServletRequest.java Tue May  2 18:54:58 2017
@@ -19,6 +19,7 @@ package javax.servlet.http;
 
 import java.io.IOException;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.Enumeration;
 import java.util.Map;
 
@@ -584,5 +585,7 @@ public interface HttpServletRequest exte
      * @return A Map of the received trailer fields with all keys lower case
      *         or an empty Map if no trailers are present
      */
-    public Map<String,String> getTrailerFields();
+    public default Map<String,String> getTrailerFields() {
+        return Collections.emptyMap();
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org