Return-Path: X-Original-To: apmail-deltaspike-commits-archive@www.apache.org Delivered-To: apmail-deltaspike-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 D10CA11496 for ; Tue, 17 Jun 2014 20:26:56 +0000 (UTC) Received: (qmail 43420 invoked by uid 500); 17 Jun 2014 20:26:56 -0000 Delivered-To: apmail-deltaspike-commits-archive@deltaspike.apache.org Received: (qmail 43383 invoked by uid 500); 17 Jun 2014 20:26:56 -0000 Mailing-List: contact commits-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltaspike.apache.org Delivered-To: mailing list commits@deltaspike.apache.org Received: (qmail 43374 invoked by uid 99); 17 Jun 2014 20:26:56 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2014 20:26:56 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7F152981331; Tue, 17 Jun 2014 20:26:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rafabene@apache.org To: commits@deltaspike.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: DELTASPIKE-638 - Fix Checkstyle/formatting/rat issues Date: Tue, 17 Jun 2014 20:26:56 +0000 (UTC) Repository: deltaspike Updated Branches: refs/heads/master 91d09ca1d -> 76de2da91 DELTASPIKE-638 - Fix Checkstyle/formatting/rat issues Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/76de2da9 Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/76de2da9 Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/76de2da9 Branch: refs/heads/master Commit: 76de2da91adb26344e0484a127d2d2d36e2d01de Parents: 91d09ca Author: Rafael Benevides Authored: Tue Jun 17 16:26:47 2014 -0400 Committer: Rafael Benevides Committed: Tue Jun 17 16:26:47 2014 -0400 ---------------------------------------------------------------------- .../control/ExceptionHandlerBroadcaster.java | 42 +++++++++++--------- 1 file changed, 23 insertions(+), 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltaspike/blob/76de2da9/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/ExceptionHandlerBroadcaster.java ---------------------------------------------------------------------- diff --git a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/ExceptionHandlerBroadcaster.java b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/ExceptionHandlerBroadcaster.java index e560a82..0bb21a2 100644 --- a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/ExceptionHandlerBroadcaster.java +++ b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/ExceptionHandlerBroadcaster.java @@ -19,16 +19,6 @@ package org.apache.deltaspike.core.impl.exception.control; -import org.apache.deltaspike.core.api.exception.control.HandlerMethod; -import org.apache.deltaspike.core.api.exception.control.event.ExceptionStackEvent; -import org.apache.deltaspike.core.api.exception.control.event.ExceptionToCatchEvent; -import org.apache.deltaspike.core.api.provider.BeanProvider; - -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.BeanManager; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; @@ -37,9 +27,20 @@ import java.util.List; import java.util.Set; import java.util.logging.Logger; +import javax.enterprise.context.ApplicationScoped; +import javax.enterprise.context.spi.CreationalContext; +import javax.enterprise.event.Observes; +import javax.enterprise.inject.Any; +import javax.enterprise.inject.spi.BeanManager; + +import org.apache.deltaspike.core.api.exception.control.HandlerMethod; +import org.apache.deltaspike.core.api.exception.control.event.ExceptionStackEvent; +import org.apache.deltaspike.core.api.exception.control.event.ExceptionToCatchEvent; +import org.apache.deltaspike.core.api.provider.BeanProvider; + /** - * Observer of {@link org.apache.deltaspike.core.api.exception.control.event.ExceptionToCatchEvent} events and - * handler dispatcher. All handlers are invoked from this class. This class is immutable. + * Observer of {@link org.apache.deltaspike.core.api.exception.control.event.ExceptionToCatchEvent} events and handler + * dispatcher. All handlers are invoked from this class. This class is immutable. */ @ApplicationScoped public class ExceptionHandlerBroadcaster @@ -48,13 +49,16 @@ public class ExceptionHandlerBroadcaster /** * Observes the event, finds the correct exception handler(s) and invokes them. - * - * @param exceptionEventEvent exception to be invoked - * @param beanManager active bean manager - * @throws Throwable If a handler requests the exception to be re-thrown. + * + * @param exceptionEventEvent + * exception to be invoked + * @param beanManager + * active bean manager + * @throws Throwable + * If a handler requests the exception to be re-thrown. */ public void executeHandlers(@Observes @Any ExceptionToCatchEvent exceptionEventEvent, - final BeanManager beanManager) throws Throwable + final BeanManager beanManager) throws Throwable { LOG.entering( ExceptionHandlerBroadcaster.class.getName(), "executeHandlers", exceptionEventEvent.getException()); @@ -76,8 +80,8 @@ public class ExceptionHandlerBroadcaster beanManager.fireEvent(stack); // Allow for modifying the exception stack - inbound_cause: - //indentation needed by the current checkstyle rules + // indentation with 8 for label needed by the current checkstyle rules + inbound_cause: while (stack.getCurrent() != null) { final List> callbackExceptionEvent = new ArrayList>(