From commits-return-22658-archive-asf-public=cust-asf.ponee.io@accumulo.apache.org Wed Feb 27 20:21:06 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4C3F3180608 for ; Wed, 27 Feb 2019 21:21:06 +0100 (CET) Received: (qmail 44618 invoked by uid 500); 27 Feb 2019 20:21:05 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 44609 invoked by uid 99); 27 Feb 2019 20:21:05 -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; Wed, 27 Feb 2019 20:21:05 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id D2F7E82E8A; Wed, 27 Feb 2019 20:21:04 +0000 (UTC) Date: Wed, 27 Feb 2019 20:21:03 +0000 To: "commits@accumulo.apache.org" Subject: [accumulo] branch master updated: #982 - Suppress incorrect lgtm warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155129886291.10869.7398181560494962696@gitbox.apache.org> From: mwalch@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: accumulo X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 7297e502d9b47dc14a2432ce78c33b1599f75dc1 X-Git-Newrev: edc6d924489813254c13ea7b5cf6a8e779e00861 X-Git-Rev: edc6d924489813254c13ea7b5cf6a8e779e00861 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. mwalch pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/accumulo.git The following commit(s) were added to refs/heads/master by this push: new edc6d92 #982 - Suppress incorrect lgtm warning edc6d92 is described below commit edc6d924489813254c13ea7b5cf6a8e779e00861 Author: Mike Walch AuthorDate: Wed Feb 27 14:55:58 2019 -0500 #982 - Suppress incorrect lgtm warning --- shell/src/main/java/org/apache/accumulo/shell/Shell.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/src/main/java/org/apache/accumulo/shell/Shell.java b/shell/src/main/java/org/apache/accumulo/shell/Shell.java index 14db16d..7e2fb3b 100644 --- a/shell/src/main/java/org/apache/accumulo/shell/Shell.java +++ b/shell/src/main/java/org/apache/accumulo/shell/Shell.java @@ -1130,8 +1130,8 @@ public class Shell extends ShellOptions implements KeywordExecutable { private final void printHelp(String usage, String description, Options opts, int width) throws IOException { - new HelpFormatter().printHelp(new PrintWriter(reader.getOutput()), width, usage, description, - opts, 2, 5, null, true); + PrintWriter pw = new PrintWriter(reader.getOutput()); // lgtm [java/output-resource-leak] + new HelpFormatter().printHelp(pw, width, usage, description, opts, 2, 5, null, true); reader.getOutput().flush(); }