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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to