diff --git a/.classpath b/.classpath index b6616161c..805065059 100644 --- a/.classpath +++ b/.classpath @@ -106,5 +106,8 @@ + + + diff --git a/htroot/ConfigParser_p.java b/htroot/ConfigParser_p.java index 6eef69fe7..1294cfba4 100644 --- a/htroot/ConfigParser_p.java +++ b/htroot/ConfigParser_p.java @@ -37,7 +37,7 @@ import net.yacy.server.serverSwitch; public class ConfigParser_p { - public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { + public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) { // return variable that accumulates replacements final serverObjects prop = new serverObjects(); final Switchboard sb = (Switchboard) env; diff --git a/htroot/IndexImportWarc_p.java b/htroot/IndexImportWarc_p.java index ff88a5fc9..1af76d147 100644 --- a/htroot/IndexImportWarc_p.java +++ b/htroot/IndexImportWarc_p.java @@ -20,20 +20,18 @@ import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.net.MalformedURLException; + import net.yacy.cora.document.id.MultiProtocolURL; import net.yacy.cora.protocol.ClientIdentification; - import net.yacy.cora.protocol.RequestHeader; import net.yacy.document.importer.WarcImporter; -import net.yacy.search.Switchboard; import net.yacy.server.serverObjects; import net.yacy.server.serverSwitch; public class IndexImportWarc_p { - public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) { + public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) { final serverObjects prop = new serverObjects(); - final Switchboard sb = (Switchboard) env; if (WarcImporter.job != null && WarcImporter.job.isAlive()) { // one import is running, no option to insert anything diff --git a/htroot/TransNews_p.java b/htroot/TransNews_p.java index 596e99084..323a1f004 100644 --- a/htroot/TransNews_p.java +++ b/htroot/TransNews_p.java @@ -45,7 +45,7 @@ import net.yacy.utils.translation.TranslationManager; public class TransNews_p { - public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { + public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) { final Switchboard sb = (Switchboard) env; final serverObjects prop = new serverObjects(); diff --git a/libt/hamcrest-2.2.jar b/libt/hamcrest-2.2.jar new file mode 100644 index 000000000..71065788d Binary files /dev/null and b/libt/hamcrest-2.2.jar differ diff --git a/libt/hamcrest-core-1.3.jar b/libt/hamcrest-core-1.3.jar deleted file mode 100644 index 9d5fe16e3..000000000 Binary files a/libt/hamcrest-core-1.3.jar and /dev/null differ diff --git a/libt/hamcrest-core-2.2.jar b/libt/hamcrest-core-2.2.jar new file mode 100644 index 000000000..3068f1dd8 Binary files /dev/null and b/libt/hamcrest-core-2.2.jar differ diff --git a/libt/hamcrest-library-2.2.jar b/libt/hamcrest-library-2.2.jar new file mode 100644 index 000000000..08bcfa004 Binary files /dev/null and b/libt/hamcrest-library-2.2.jar differ diff --git a/libt/junit-4.11.jar b/libt/junit-4.11.jar deleted file mode 100644 index aaf744484..000000000 Binary files a/libt/junit-4.11.jar and /dev/null differ diff --git a/libt/junit-4.13.jar b/libt/junit-4.13.jar new file mode 100644 index 000000000..acc3c4320 Binary files /dev/null and b/libt/junit-4.13.jar differ diff --git a/pom.xml b/pom.xml index 2b25883b0..3173e5a41 100644 --- a/pom.xml +++ b/pom.xml @@ -351,12 +351,24 @@ - - junit - junit - 4.12 - test - + + org.hamcrest + hamcrest + 2.2 + test + + + org.hamcrest + hamcrest-library + 2.2 + test + + + junit + junit + 4.13 + test +