#vulnerable code 
                              static public void loadNMatrixFromFile(String file, int N, int rows, int columns,
    double[][][] matrix) throws JMetalException {
    try {
      BufferedReader brSrc = new BufferedReader(new FileReader(file));
      for (int i = 0; i < N; i++) {
        loadMatrix(brSrc, rows, columns, matrix[i]);
      }
      brSrc.close();
    } catch (Exception e) {
      JMetalLogger.logger.log(Level.SEVERE, "Error in Benchmark.java", e);
      throw new JMetalException("Error in Benchmark.java");
    }
  } 
                            #location 9 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              static public void loadNMatrixFromFile(String file, int N, int rows, int columns,
    double[][][] matrix) throws JMetalException {
    try {
      BufferedReader brSrc =
              new BufferedReader(
                      new InputStreamReader(new FileInputStream(ClassLoader.getSystemResource(file).getPath()))) ;
      //BufferedReader brSrc = new BufferedReader(new FileReader(file));
      for (int i = 0; i < N; i++) {
        loadMatrix(brSrc, rows, columns, matrix[i]);
      }
      brSrc.close();
    } catch (Exception e) {
      throw new JMetalException("Error in Benchmark.java", e);
    }
  }