tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1377335 - in /tomcat/trunk/test/org/apache/coyote/http11: TestAbstractHttp11Processor.java filters/TestFlushableGZIPOutputStream.java
Date Sat, 25 Aug 2012 18:53:16 GMT
Author: markt
Date: Sat Aug 25 18:53:16 2012
New Revision: 1377335

URL: http://svn.apache.org/viewvc?rev=1377335&view=rev
Log:
Java 7 <>

Modified:
    tomcat/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java
    tomcat/trunk/test/org/apache/coyote/http11/filters/TestFlushableGZIPOutputStream.java

Modified: tomcat/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java?rev=1377335&r1=1377334&r2=1377335&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java (original)
+++ tomcat/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java Sat Aug 25
18:53:16 2012
@@ -264,8 +264,7 @@ public class TestAbstractHttp11Processor
         tomcat.start();
 
         ByteChunk responseBody = new ByteChunk();
-        Map<String,List<String>> responseHeaders =
-                new HashMap<String,List<String>>();
+        Map<String,List<String>> responseHeaders = new HashMap<>();
         int rc = getUrl("http://localhost:" + getPort() + "/test", responseBody,
                 responseHeaders);
 
@@ -294,8 +293,7 @@ public class TestAbstractHttp11Processor
         tomcat.start();
 
         ByteChunk responseBody = new ByteChunk();
-        Map<String,List<String>> responseHeaders =
-                new HashMap<String,List<String>>();
+        Map<String,List<String>> responseHeaders = new HashMap<>();
         int rc = getUrl("http://localhost:" + getPort() + "/test", responseBody,
                 responseHeaders);
 

Modified: tomcat/trunk/test/org/apache/coyote/http11/filters/TestFlushableGZIPOutputStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http11/filters/TestFlushableGZIPOutputStream.java?rev=1377335&r1=1377334&r2=1377335&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http11/filters/TestFlushableGZIPOutputStream.java
(original)
+++ tomcat/trunk/test/org/apache/coyote/http11/filters/TestFlushableGZIPOutputStream.java
Sat Aug 25 18:53:16 2012
@@ -47,7 +47,7 @@ public class TestFlushableGZIPOutputStre
         OutputStream output = new FlushableGZIPOutputStream(byteOutStream);
 
         File sourcesDir = new File("test/org/apache/coyote/http11/filters/");
-        List<byte[]> parts = new ArrayList<byte[]>();
+        List<byte[]> parts = new ArrayList<>();
         byte[] part;
 
         part = loadFile(new File(sourcesDir, "bug52121-part1"));



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


Mime
View raw message