#vulnerable code 
                              private List<Issue> parse(File report) throws java.io.FileNotFoundException {
    List<Issue> issues = new LinkedList<Issue>();

    PylintReportParser parser = new PylintReportParser();
    for(Scanner sc = new Scanner(report); sc.hasNext(); ) {
      String line = sc.nextLine();
      Issue issue = parser.parseLine(line);
      if (issue != null){
        issues.add(issue);
      }
    }

    return issues;
  } 
                            #location 13 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              private List<Issue> parse(File report) throws IOException {
    List<Issue> issues = new LinkedList<Issue>();

    PylintReportParser parser = new PylintReportParser();
    for(Scanner sc = new Scanner(report.toPath(), fileSystem.encoding().name()); sc.hasNext(); ) {
      String line = sc.nextLine();
      Issue issue = parser.parseLine(line);
      if (issue != null){
        issues.add(issue);
      }
    }

    return issues;
  }