Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E6B0C200BDC for ; Wed, 30 Nov 2016 00:30:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E56BE160B28; Tue, 29 Nov 2016 23:30:18 +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 44036160B15 for ; Wed, 30 Nov 2016 00:30:18 +0100 (CET) Received: (qmail 18148 invoked by uid 500); 29 Nov 2016 23:30:17 -0000 Mailing-List: contact commits-help@iota.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@iota.incubator.apache.org Delivered-To: mailing list commits@iota.incubator.apache.org Received: (qmail 18138 invoked by uid 99); 29 Nov 2016 23:30:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2016 23:30:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1CAE9C6CAD for ; Tue, 29 Nov 2016 23:30:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id gwtcd4ID1VZM for ; Tue, 29 Nov 2016 23:30:16 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 386C960E32 for ; Tue, 29 Nov 2016 23:30:16 +0000 (UTC) Received: (qmail 8813 invoked by uid 99); 29 Nov 2016 23:29:00 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2016 23:29:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BADACE01F4; Tue, 29 Nov 2016 23:29:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tonyfaustini@apache.org To: commits@iota.incubator.apache.org Date: Tue, 29 Nov 2016 23:29:19 -0000 Message-Id: In-Reply-To: <96874bab2af741898b632b655ac49b5c@git.apache.org> References: <96874bab2af741898b632b655ac49b5c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [20/31] incubator-iota git commit: Removed scalastyle in feyGenericActorReciever archived-at: Tue, 29 Nov 2016 23:30:19 -0000 Removed scalastyle in feyGenericActorReciever Project: http://git-wip-us.apache.org/repos/asf/incubator-iota/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-iota/commit/2be09059 Tree: http://git-wip-us.apache.org/repos/asf/incubator-iota/tree/2be09059 Diff: http://git-wip-us.apache.org/repos/asf/incubator-iota/diff/2be09059 Branch: refs/heads/master Commit: 2be0905961ce6382206201f16c4171ebeba736c6 Parents: 57916d7 Author: Shivansh Authored: Fri Nov 4 00:44:48 2016 +0530 Committer: Shivansh Committed: Fri Nov 4 00:44:48 2016 +0530 ---------------------------------------------------------------------- .../main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/2be09059/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala ---------------------------------------------------------------------- diff --git a/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala b/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala index 7361d01..e3b8001 100644 --- a/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala +++ b/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala @@ -1,4 +1,3 @@ - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -173,7 +172,7 @@ abstract class FeyGenericActorReceiver(override val params: Map[String,String] = }catch{ case e: Exception => - if(outputStream != null) { + if(Option(outputStream).isDefined) { outputStream.close() (new File(s"${CONFIG.DYNAMIC_JAR_REPO}/$jarName")).delete() }