From commits-return-1167-archive-asf-public=cust-asf.ponee.io@fineract.apache.org Mon Jan 22 16:01:09 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 68455180676 for ; Mon, 22 Jan 2018 16:01:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 57A5A160C3A; Mon, 22 Jan 2018 15:01:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A8419160C4F for ; Mon, 22 Jan 2018 16:01:05 +0100 (CET) Received: (qmail 12585 invoked by uid 500); 22 Jan 2018 15:00:59 -0000 Mailing-List: contact commits-help@fineract.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.apache.org Delivered-To: mailing list commits@fineract.apache.org Received: (qmail 12426 invoked by uid 99); 22 Jan 2018 15:00:59 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jan 2018 15:00:59 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 1705F81FE8; Mon, 22 Jan 2018 15:00:56 +0000 (UTC) Date: Mon, 22 Jan 2018 15:01:15 +0000 To: "commits@fineract.apache.org" Subject: [fineract-cn-lang] 20/49: Logic of assignability of exception was reversed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: myrle@apache.org In-Reply-To: <151663325509.14804.2883341681694436220@gitbox.apache.org> References: <151663325509.14804.2883341681694436220@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: fineract-cn-lang X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: 86d418e63fe38525e8d80ffef2e3a53a410d746b X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180122150056.1705F81FE8@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. myrle pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/fineract-cn-lang.git commit 86d418e63fe38525e8d80ffef2e3a53a410d746b Author: myrle-krantz AuthorDate: Fri May 26 11:33:35 2017 +0200 Logic of assignability of exception was reversed. --- src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java b/src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java index 45e8f7c..96f04d3 100644 --- a/src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java +++ b/src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java @@ -40,7 +40,7 @@ final class ServiceExceptionFilter extends OncePerRequestFilter { try { filterChain.doFilter(request, response); } catch (final NestedServletException ex) { - if (ex.getCause().getClass().isAssignableFrom(ServiceException.class)) { + if (ServiceException.class.isAssignableFrom(ex.getCause().getClass())) { @SuppressWarnings("ThrowableResultOfMethodCallIgnored") final ServiceException serviceException = ServiceException.class.cast(ex.getCause()); final ServiceError serviceError = serviceException.serviceError(); logger.info("Responding with a service error " + serviceError); -- To stop receiving notification emails like this one, please contact myrle@apache.org.