Skip to content
Snippets Groups Projects
Commit 9aea4717 authored by Grégory Mantelet's avatar Grégory Mantelet
Browse files

[TAP] Make the last commit compatible with Java 7.

In Java 8, implementing the function remove() of the interface Iterator<E> is
no longer required if not implemented. But not in Java 7.
parent 3e65794d
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,10 @@
<condition><not><isset property="JNDI-API"/></not></condition>
</fail>
<!-- JAVA VERSION COMPATIBILITY -->
<property name="ant.build.javac.source" value="1.7"/>
<property name="ant.build.javac.target" value="1.7"/>
<!-- CLASSPATHS -->
<path id="tap.classpath">
<pathelement location="${commonsIOJar}" />
......
......@@ -1336,6 +1336,11 @@ public class LargeAsciiTable implements AutoCloseable {
// Nothing to close in this iterator!
}
@Override
public void remove() throws UnsupportedOperationException{
throw new UnsupportedOperationException("Impossible to modify a LargeAsciiTable!");
}
}
/**
......@@ -1466,5 +1471,10 @@ public class LargeAsciiTable implements AutoCloseable {
}
}
@Override
public void remove() throws UnsupportedOperationException{
throw new UnsupportedOperationException("Impossible to modify a LargeAsciiTable!");
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment