#fixed code
                                @Test
    public void test() throws UnsupportedEncodingException, IOException {
        InputStream pointsOfReference = getClass().getResourceAsStream("/CSV-198/optd_por_public.csv");
        Assert.assertNotNull(pointsOfReference);
        try (@SuppressWarnings("resource")
        CSVParser parser = CSV_FORMAT.parse(new InputStreamReader(pointsOfReference, "UTF-8"))) {
            for (CSVRecord record : parser) {
                String locationType = record.get("location_type");
                Assert.assertNotNull(locationType);
            }
        }
    }
#vulnerable code 
                                @Test
    public void test() throws UnsupportedEncodingException, IOException {
        InputStream pointsOfReference = getClass().getResourceAsStream("/CSV-198/optd_por_public.csv");
        Assert.assertNotNull(pointsOfReference);
        CSVParser parser = CSV_FORMAT.parse(new InputStreamReader(pointsOfReference, "UTF-8"));
        for (CSVRecord record : parser) {
            String locationType = record.get("location_type");
            Assert.assertNotNull(locationType);
        }
    } 
                            #location 9 
                            #vulnerability type RESOURCE_LEAK