#vulnerable code 
                                public Set<String> getURLTokens(String path) {
        Set<String> urlTokens = new HashSet<>();
        BufferedReader in;
        try {
            in = new BufferedReader(
                    new FileReader(new File(path))
            );

            String s;
            while ((s = in.readLine()) != null) {
                urlTokens.add(s);
            }

            in.close();
            return urlTokens;
        } catch (IOException e) {
            logger.error("IOException when readFollowees user data from file : {}", e);
            return null;
        }

    } 
                            #location 16 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public Set<String> getURLTokens(String path) {
        List<String> tokens = FileHelper.processFile(path, br -> {
            List<String> ts = new ArrayList<>();
            String s;
            while ((s = br.readLine()) != null) {
                ts.add(s);
            }

            return ts;
        }).orElse(new ArrayList<>());

        return new HashSet<>(tokens);
    }