#vulnerable code 
                              @Override
  public String readFile(final String path) throws FileNotFoundException {
    return new java.util.Scanner(new java.io.File(this.fileBase, path), "UTF-8").useDelimiter("\\Z").next().toString();
  } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              @Override
  public String readFile(final String path) throws FileNotFoundException {
    try (Scanner scanner = new java.util.Scanner(new java.io.File(this.fileBase, path), "UTF-8")) {
      return scanner.useDelimiter("\\Z").next().toString();
    }
  }