diff --git a/test/integration-tests-ad/src/test/java/org/springframework/ldap/itest/ad/CompilerInterface.java b/test/integration-tests-ad/src/test/java/org/springframework/ldap/itest/ad/CompilerInterface.java index 3b00a4e4..2520603d 100755 --- a/test/integration-tests-ad/src/test/java/org/springframework/ldap/itest/ad/CompilerInterface.java +++ b/test/integration-tests-ad/src/test/java/org/springframework/ldap/itest/ad/CompilerInterface.java @@ -20,7 +20,7 @@ import java.io.File; import java.io.InputStream; import java.io.InputStreamReader; -public class CompilerInterface { +public final class CompilerInterface { // Compile the given file - when we can drop Java 5 we'll use the Java 6 compiler API public static void compile(String directory, String file) throws Exception { @@ -49,4 +49,8 @@ public class CompilerInterface { } } + private CompilerInterface() { + + } + } diff --git a/test/integration-tests-ad/src/test/java/org/springframework/ldap/itest/ad/IncrementalAttributeMapperITests.java b/test/integration-tests-ad/src/test/java/org/springframework/ldap/itest/ad/IncrementalAttributeMapperITests.java index dbf2f951..35548bea 100644 --- a/test/integration-tests-ad/src/test/java/org/springframework/ldap/itest/ad/IncrementalAttributeMapperITests.java +++ b/test/integration-tests-ad/src/test/java/org/springframework/ldap/itest/ad/IncrementalAttributeMapperITests.java @@ -138,7 +138,7 @@ public class IncrementalAttributeMapperITests extends AbstractJUnit4SpringContex try { this.ldapTemplate.lookup(OU_DN); } - catch (NameNotFoundException e) { + catch (NameNotFoundException ex) { // Nothing to cleanup return; } @@ -149,7 +149,7 @@ public class IncrementalAttributeMapperITests extends AbstractJUnit4SpringContex // Everything is deleted return; } - catch (SizeLimitExceededException e) { + catch (SizeLimitExceededException ex) { // There's more to delete } }