accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-2176) ExecfileCommand#execute() should close scanner
Date Fri, 10 Jan 2014 22:51:51 GMT
Ted Yu created ACCUMULO-2176:
--------------------------------

             Summary: ExecfileCommand#execute() should close scanner
                 Key: ACCUMULO-2176
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2176
             Project: Accumulo
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


{code}
    Scanner scanner = new Scanner(new File(cl.getArgs()[0]));
    while (scanner.hasNextLine()) {
      shellState.execCommand(scanner.nextLine(), true, cl.hasOption(verboseOption.getOpt()));
    }
{code}
scanner should be closed upon return.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message