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 86C1C200C7A for ; Tue, 2 May 2017 08:35:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8573C160BA1; Tue, 2 May 2017 06:35:08 +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 CC243160BAC for ; Tue, 2 May 2017 08:35:07 +0200 (CEST) Received: (qmail 34767 invoked by uid 500); 2 May 2017 06:35:07 -0000 Mailing-List: contact issues-help@eagle.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@eagle.apache.org Delivered-To: mailing list issues@eagle.apache.org Received: (qmail 34741 invoked by uid 99); 2 May 2017 06:35:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2017 06:35:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 83B03190173 for ; Tue, 2 May 2017 06:35:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Er9U9AkJGbBC for ; Tue, 2 May 2017 06:35:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 70F445F642 for ; Tue, 2 May 2017 06:35:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D1582E0905 for ; Tue, 2 May 2017 06:35:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 58D1421DE2 for ; Tue, 2 May 2017 06:35:04 +0000 (UTC) Date: Tue, 2 May 2017 06:35:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@eagle.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (EAGLE-1012) Some language level problems MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 02 May 2017 06:35:08 -0000 [ https://issues.apache.org/jira/browse/EAGLE-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15992404#comment-15992404 ] ASF GitHub Bot commented on EAGLE-1012: --------------------------------------- Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/eagle/pull/925#discussion_r114255903 --- Diff: eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/publisher/impl/AlertEagleStorePlugin.java --- @@ -62,10 +60,9 @@ public void onAlert(AlertStreamEvent event) throws Exception { if (eventList == null || eventList.isEmpty()) { return; } - List alertEvents = new ArrayList<>(); - for (AlertStreamEvent e : eventList) { - alertEvents.add(AlertPublishEvent.createAlertPublishEvent(e)); - } + List alertEvents = eventList.stream().map( --- End diff -- Maybe you are right, i will roll it back. :+1: > Some language level problems > ---------------------------- > > Key: EAGLE-1012 > URL: https://issues.apache.org/jira/browse/EAGLE-1012 > Project: Eagle > Issue Type: Bug > Components: Project Infrastructure > Affects Versions: v0.4.0 > Environment: Linux 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux > Reporter: Benedict Jin > Labels: JDK > Fix For: v0.6.0 > > Attachments: Eagle Language Level Problems.txt > > Original Estimate: 168h > Remaining Estimate: 168h > > Some language level problems > * Spell > * Duplicated > * Lambda > * Collection > * String > * instanceof > * Complex Method > * Exception > Details see attachment files. -- This message was sent by Atlassian JIRA (v6.3.15#6346)