#vulnerable code 
                             public JSONResource json(URI anUri) throws IOException, MalformedURLException {
		JSONObject json = JSONObject.class.cast(anUri.toURL().openConnection().getContent());
		return new JSONResource(json);
	} 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public JSONResource json(URI anUri) throws IOException {
		return doGET(anUri, new JSONResource());
	}