accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Medinets <david.medin...@gmail.com>
Subject SetIterCommand - why set input to new String(input)?
Date Tue, 11 Sep 2012 18:54:13 GMT
Is there  some value in the line marked by question marks?

  private static String setUpOptions(final ConsoleReader reader, final
String className, final Map<String,String> options) ... {
    ...
          if (input == null) {
            reader.printNewline();
            throw new IOException("Input stream closed");
          } else {
            input = new String(input);  <--- ????
          }
  }

Mime
View raw message