remove usage URLClassloader.close() from issue 318 test, because it is @since 1.7 and we are still 1.6 compartible
diff --git a/src/test/java/org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java b/src/test/java/org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java
index c6ca59b..07dcc54 100644
--- a/src/test/java/org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java
+++ b/src/test/java/org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java
@@ -93,15 +93,16 @@
@After
public void after() {
- if (yamlCL != null) {
- try {
- yamlCL.close();
- } catch (IOException e) {
- e.printStackTrace();
- } finally {
- yamlCL = null;
- }
- }
+ // URLClassLoader.close is @since 1.7
+ // if (yamlCL != null) {
+ // try {
+ // yamlCL.close();
+ // } catch (IOException e) {
+ // e.printStackTrace();
+ // } finally {
+ yamlCL = null;
+ // }
+ // }
}
@Test(expected = ClassNotFoundException.class)