#vulnerable code 
                                private void initialize() {
        InputStream in = PinyinDic.class.getResourceAsStream(dicLocation);
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        try {
            String line = null;
            long startPoint = System.currentTimeMillis();
            while (null != (line = reader.readLine())) {
                if (StringUtils.isNotBlank(line)) {
                    dicSet.add(line);
                }
            }
            long endPoint = System.currentTimeMillis();
            Logger.logger.info(String.format("Load pinyin from pinyin.dic, sizeof dic=[%s], takes %s ms, size=%s",
                    MemoryUsage.humanSizeOf(dicSet), (endPoint - startPoint), dicSet.size()), this);
        } catch (Exception ex) {
            Logger.logger.error("read pinyin dic error.", ex);
            throw new RuntimeException("read pinyin dic error.", ex);
        }
    } 
                            #location 15 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                private void initialize() {
        InputStream in = PinyinDic.class.getResourceAsStream(dicLocation);
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        try {
            String line = null;
            long startPoint = System.currentTimeMillis();
            while (null != (line = reader.readLine())) {
                if (StringUtils.isNotBlank(line)) {
                    dicSet.add(line);
                }
            }
            long endPoint = System.currentTimeMillis();
            Logger.logger.info(String.format("Load pinyin from pinyin.dic, sizeof dic=[%s], takes %s ms, size=%s",
                    MemoryUsage.humanSizeOf(dicSet), (endPoint - startPoint), dicSet.size()), this);
        } catch (Exception ex) {
            Logger.logger.error("read pinyin dic error.", ex);
            throw new RuntimeException("read pinyin dic error.", ex);
        } finally {
            try {
                if (reader != null) {
                    reader.close();
                }
            } catch (Exception ex) {
                //ignore ex
            }
        }
    }