#vulnerable code 
                                public static String getCompileDate() {
        String ret = "";
        try {
            Date d = new Date(Main.class.getResource("Main.class").openConnection().getLastModified());
            ret = Konstanten.PROGRAMMNAME + " " + Konstanten.VERSION + "  [Buildnummer: " + getBuildNr() + "] - Compiled: " + new SimpleDateFormat("dd.MM.yyyy, HH:mm").format(d);
        } catch (Exception ex) {
            Log.fehlerMeldung(569614756, "Log.getCompileDate: ", ex);
        }
        return ret;
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static String getCompileDate() {
//        String ret = "";
//        try {
//            Date d = new Date(Main.class.getResource("Main.class").openConnection().getLastModified());
//            ret = Konstanten.PROGRAMMNAME + " " + Konstanten.VERSION + "  [Buildnummer: " + getBuildNr() + "] - Compiled: " + new SimpleDateFormat("dd.MM.yyyy, HH:mm").format(d);
//        } catch (Exception ex) {
//            Log.fehlerMeldung(569614756, "Log.getCompileDate: ", ex);
//        }
//        return ret;
        final ResourceBundle rb;
        String propToken = "BUILDDATE";
        String msg = "";
        try {
            ResourceBundle.clearCache();
            rb = ResourceBundle.getBundle("version");
            msg = rb.getString(propToken);
        } catch (Exception e) {
            System.err.println(e.getMessage());
            System.err.println("Token " + propToken + " not in Propertyfile!");
        }
        return Konstanten.PROGRAMMNAME + " " + Konstanten.VERSION + "  [Buildnummer: " + getBuildNr() + "] - Compiled: " + msg;
    }