Ted Yu created KYLIN-2989:
-----------------------------

             Summary: Close of BufferedWriter should be placed in finally block 
in SCCreator
                 Key: KYLIN-2989
                 URL: https://issues.apache.org/jira/browse/KYLIN-2989
             Project: Kylin
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code in SCCreator#saveToFile:
{code}
        BufferedWriter bufferedWriter = new BufferedWriter(new 
FileWriter(fileName));
        bufferedWriter.append(contents);
        bufferedWriter.close();
{code}
The close call should be in finally block.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to