#fixed code
                             protected long getLastModified() {
		return new File(url.getFile()).lastModified();
	}
#vulnerable code 
                             protected long getLastModified() {
		try {
			URLConnection conn = url.openConnection();
			return conn.getLastModified();
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	} 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK