#vulnerable code 
                             @Test
	public void testIllegalReadObjectInstedOfArray() throws IOException {
		String src = "[1,2]";
		JsonReader reader = new JsonReader(new StringReader(src), strictDoubleParse, readMetadata);
		try {
			reader.beginObject();
			fail();
		} catch (IllegalStateException ise) {
		}
		reader.close();
	} 
                            #location 9 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Test
	public void testIllegalReadObjectInstedOfArray() throws IOException {
		String src = "[1,2]";
		JsonReader reader = new JsonReader(new StringReader(src), strictDoubleParse, readMetadata);
		try {
			reader.beginObject();
			fail();
		} catch (JsonStreamException ise) {
		}
		reader.close();
	}