#vulnerable code 
                             protected void processIsInJarAndlastModified() {
		try {
			URLConnection conn = url.openConnection();
			if ("jar".equals(url.getProtocol()) || conn instanceof JarURLConnection) {
				isInJar = true;
				lastModified = -1;
			} else {
				isInJar = false;
				lastModified = conn.getLastModified();
			}
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	} 
                            #location 9 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             protected void processIsInJarAndlastModified() {
		if ("file".equalsIgnoreCase(url.getProtocol())) {
			isInJar = false;
			lastModified = new File(url.getFile()).lastModified();
		} else {	
			isInJar = true;
			lastModified = -1;
		}
	}