Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99C9010303 for ; Sat, 25 Jan 2014 17:17:45 +0000 (UTC) Received: (qmail 64635 invoked by uid 500); 25 Jan 2014 17:17:42 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 63553 invoked by uid 500); 25 Jan 2014 17:17:40 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 63546 invoked by uid 99); 25 Jan 2014 17:17:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jan 2014 17:17:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jan 2014 17:17:37 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id ADC5123888A6; Sat, 25 Jan 2014 17:17:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1561342 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java Date: Sat, 25 Jan 2014 17:17:16 -0000 To: commits@cxf.apache.org From: reta@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140125171716.ADC5123888A6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: reta Date: Sat Jan 25 17:17:16 2014 New Revision: 1561342 URL: http://svn.apache.org/r1561342 Log: CXF-5417: Added ConnectionCallback test case and root cause detection. Fixed couple of checkstyle violations Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java?rev=1561342&r1=1561341&r2=1561342&view=diff ============================================================================== --- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java (original) +++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java Sat Jan 25 17:17:16 2014 @@ -125,7 +125,7 @@ public class Servlet3ContinuationProvide obj = null; if (callback != null) { final Exception ex = inMessage.getExchange().get(Exception.class); - Throwable cause = isCausedByIO( ex ); + Throwable cause = isCausedByIO(ex); if (cause != null && isClientDisconnected(cause)) { callback.onDisconnect(); @@ -178,7 +178,7 @@ public class Servlet3ContinuationProvide private Throwable isCausedByIO(final Exception ex) { Throwable cause = ex; - while(cause != null && !(cause instanceof IOException)) { + while (cause != null && !(cause instanceof IOException)) { cause = cause.getCause(); }