#vulnerable code 
                              public String loadData() {
    try {
      BufferedReader br = new BufferedReader(new FileReader(new File(this.fileName)));
      StringBuilder sb = new StringBuilder();
      String line;

      while ((line = br.readLine()) != null) {
        sb.append(line).append('\n');
      }

      this.loaded = true;
      br.close();

      return sb.toString();
    } catch (Exception e) {
      e.printStackTrace();
    }

    return null;
  } 
                            #location 15 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              public String loadData() {
    try (BufferedReader br = new BufferedReader(new FileReader(new File(this.fileName)))) {
      StringBuilder sb = new StringBuilder();
      String line;

      while ((line = br.readLine()) != null) {
        sb.append(line).append('\n');
      }

      this.loaded = true;

      return sb.toString();
    } catch (Exception e) {
      e.printStackTrace();
    }

    return null;
  }