#vulnerable code 
                                @Override
    public void run() {
        try {
            LOGGER.info(I18n.UPDATE_LOADING);
            URLConnection con = new URL("http://jsql-injection.googlecode.com/git/.version").openConnection();
            con.setReadTimeout(60000);
            con.setConnectTimeout(60000);

            BufferedReader reader = new BufferedReader(new InputStreamReader(con.getInputStream()));
            String line, pageSource = "";
            while ((line = reader.readLine()) != null) {
                pageSource += line + "\n";
            }
            reader.close();

            Float gitVersion = Float.parseFloat(pageSource);
            MediatorGUI.model();
            if (gitVersion <= Float.parseFloat(InjectionModel.JSQLVERSION)) {
                LOGGER.debug(I18n.UPDATE_UPTODATE);
            } else {
                LOGGER.warn(I18n.UPDATE_NEW_VERSION_AVAILABLE);
            }
        } catch (NumberFormatException e) {
            LOGGER.warn(I18n.UPDATE_EXCEPTION);
            LOGGER.error(e, e);
        } catch (IOException e) {
            LOGGER.warn(I18n.UPDATE_EXCEPTION);
            LOGGER.error(e, e);
        }
    } 
                            #location 23 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Override
    public void run() {
        try {
            LOGGER.info(I18n.UPDATE_LOADING);
            URLConnection con = new URL("https://raw.githubusercontent.com/ron190/jsql-injection/master/.version").openConnection();
            con.setReadTimeout(60000);
            con.setConnectTimeout(60000);

            BufferedReader reader = new BufferedReader(new InputStreamReader(con.getInputStream()));
            String line, pageSource = "";
            while ((line = reader.readLine()) != null) {
                pageSource += line + "\n";
            }
            reader.close();

            Float gitVersion = Float.parseFloat(pageSource);
            MediatorGUI.model();
            if (gitVersion <= Float.parseFloat(InjectionModel.JSQLVERSION)) {
                LOGGER.debug(I18n.UPDATE_UPTODATE);
            } else {
                LOGGER.warn(I18n.UPDATE_NEW_VERSION_AVAILABLE);
            }
        } catch (NumberFormatException e) {
            LOGGER.warn(I18n.UPDATE_EXCEPTION);
            LOGGER.error(e, e);
        } catch (IOException e) {
            LOGGER.warn(I18n.UPDATE_EXCEPTION);
            LOGGER.error(e, e);
        }
    }