#vulnerable code 
                                public static String readFollowees(File inItem) {
        BufferedReader in = null;
        try {
            in = new BufferedReader(
                    new FileReader(inItem)
            );
            String s;
            in.readLine();//pass first line
            s = in.readLine();
            if (!StringUtils.isEmpty(s)) {
                s = s.substring(s.indexOf("{"));
            }
            in.close();
            return s;
        } catch (IOException e) {
            logger.error("IOException when readFollowees user data from file : {}", e);
            return null;
        }
    } 
                            #location 15 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static String readFollowees(File inItem) {
        List<String> followees = FileHelper.processFile(inItem, br -> {
            br.readLine();//pass first line
            String s = br.readLine();
            if (!StringUtils.isEmpty(s)) {
                s = s.substring(s.indexOf("{"));
            }
            return Collections.singletonList(s);
        }).orElse(new ArrayList<>());

        return followees.size() == 0 ? null : followees.get(0);
    }