accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwa...@apache.org
Subject [accumulo] branch master updated: #982 - Revert change to fix build
Date Sat, 23 Feb 2019 14:17:24 GMT
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 c464099  #982 - Revert change to fix build
c464099 is described below

commit c4640998bf2558e27bb296cf09cb8e809d96f545
Author: Mike Walch <mwalch@apache.org>
AuthorDate: Sat Feb 23 08:50:53 2019 -0500

    #982 - Revert change to fix build
---
 shell/src/main/java/org/apache/accumulo/shell/Shell.java | 7 +++----
 1 file changed, 3 insertions(+), 4 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 ada3424..14db16d 100644
--- a/shell/src/main/java/org/apache/accumulo/shell/Shell.java
+++ b/shell/src/main/java/org/apache/accumulo/shell/Shell.java
@@ -1130,10 +1130,9 @@ public class Shell extends ShellOptions implements KeywordExecutable
{
 
   private final void printHelp(String usage, String description, Options opts, int width)
       throws IOException {
-    try (PrintWriter pw = new PrintWriter(reader.getOutput())) {
-      new HelpFormatter().printHelp(pw, width, usage, description, opts, 2, 5, null, true);
-      reader.getOutput().flush();
-    }
+    new HelpFormatter().printHelp(new PrintWriter(reader.getOutput()), width, usage, description,
+        opts, 2, 5, null, true);
+    reader.getOutput().flush();
   }
 
   public int getExitCode() {


Mime
View raw message