Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3126F1745B for ; Mon, 10 Nov 2014 09:50:55 +0000 (UTC) Received: (qmail 23448 invoked by uid 500); 10 Nov 2014 09:50:55 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 23411 invoked by uid 500); 10 Nov 2014 09:50:55 -0000 Mailing-List: contact issues-help@flink.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.incubator.apache.org Delivered-To: mailing list issues@flink.incubator.apache.org Received: (qmail 23397 invoked by uid 99); 10 Nov 2014 09:50:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 09:50:55 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Nov 2014 09:50:54 +0000 Received: (qmail 22828 invoked by uid 99); 10 Nov 2014 09:50:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 09:50:34 +0000 Date: Mon, 10 Nov 2014 09:50:33 +0000 (UTC) From: "Robert Metzger (JIRA)" To: issues@flink.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-1218) Don't use "new Integer". Use "Integer.valueOf" instead. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FLINK-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14204570#comment-14204570 ] Robert Metzger commented on FLINK-1218: --------------------------------------- Hey [~sarutak], I gave you "Contributor" perms in JIRA so that you can assign yourself to issues. > Don't use "new Integer". Use "Integer.valueOf" instead. > ------------------------------------------------------- > > Key: FLINK-1218 > URL: https://issues.apache.org/jira/browse/FLINK-1218 > Project: Flink > Issue Type: Bug > Affects Versions: 0.8-incubating > Reporter: Kousuke Saruta > Assignee: Kousuke Saruta > > There are lots of "new Integer" or something line it in the code. > We should use valueOf to avoid wasted instance creation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)