Reinstate Java 7 compatibility

This commit is contained in:
Andy Wilkinson
2014-11-13 13:45:34 +00:00
parent e9ac3ad709
commit 5ccd7365cb
3 changed files with 12 additions and 3 deletions

View File

@@ -7,6 +7,10 @@ allprojects {
project(':spring-restdocs-core') {
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
compile 'junit:junit:4.11'
compile "org.springframework:spring-test:$springVersion"

View File

@@ -1,14 +1,14 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0

View File

@@ -41,6 +41,11 @@ public final class IterableEnumeration<T> implements Iterable<T> {
return IterableEnumeration.this.enumeration.nextElement();
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}