hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1499273 - /httpcomponents/httpcore/branches/4.2.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncPrematureTermination.java
Date Wed, 03 Jul 2013 08:54:06 GMT
Author: olegk
Date: Wed Jul  3 08:54:06 2013
New Revision: 1499273

URL: http://svn.apache.org/r1499273
Log:
Fixed Java 1.5 incompatibility

Modified:
    httpcomponents/httpcore/branches/4.2.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncPrematureTermination.java

Modified: httpcomponents/httpcore/branches/4.2.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncPrematureTermination.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.2.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncPrematureTermination.java?rev=1499273&r1=1499272&r2=1499273&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.2.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncPrematureTermination.java
(original)
+++ httpcomponents/httpcore/branches/4.2.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncPrematureTermination.java
Wed Jul  3 08:54:06 2013
@@ -183,7 +183,8 @@ public class TestHttpAsyncPrematureTermi
     @Test
     public void testConnectionTerminatedHandlingRequest() throws Exception {
         final CountDownLatch responseStreamClosed = new CountDownLatch(1);
-        final InputStream testInputStream = new ByteArrayInputStream("all is well".getBytes(Consts.ASCII))
{
+        final InputStream testInputStream = new ByteArrayInputStream(
+                "all is well".getBytes(Consts.ASCII.name())) {
             @Override
             public void close() throws IOException {
                 responseStreamClosed.countDown();



Mime
View raw message