Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
removed warnings
Michael Peter Christen8176f7528537
diff --git a/source/net/yacy/cora/document/id/MultiProtocolURL.java b/source/net/yacy/cora/document/id/MultiProtocolURL.javaindex 653d65eba..0ff750b09 100644--- a/source/net/yacy/cora/document/id/MultiProtocolURL.java+++ b/source/net/yacy/cora/document/id/MultiProtocolURL.java@@ -2660,7 +2660,6 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolUreturn splitpattern.split(normalizedURL.toLowerCase()); // word components of the url}- @SuppressWarnings("deprecation")public static void main(final String[] args) {final String[][] test = new String[][]{new String[]{null, "file://y:/"},diff --git a/source/net/yacy/cora/util/Html2Image.java b/source/net/yacy/cora/util/Html2Image.javaindex 10b9afb52..83efe559b 100644--- a/source/net/yacy/cora/util/Html2Image.java+++ b/source/net/yacy/cora/util/Html2Image.java@@ -141,7 +141,6 @@ public class Html2Image {private static boolean wkhtmltopdfAvailableInPath() {boolean available = false;try {- @SuppressWarnings("deprecation")final Process p = Runtime.getRuntime().exec(WKHTMLTOPDF_COMMAND + " -V");available = p.waitFor(2, TimeUnit.SECONDS) && p.exitValue() == 0;} catch (final IOException e) {@@ -184,7 +183,6 @@ public class Html2Image {boolean available = false;if(!OS.isWindows) { // on MS Windows convert is a system tool to convert volumes from FAT to NTFStry {- @SuppressWarnings("deprecation")final Process p = Runtime.getRuntime().exec(CONVERT_COMMAND + " -version");available = p.waitFor(2, TimeUnit.SECONDS) && p.exitValue() == 0;} catch (final IOException e) {@@ -296,7 +294,6 @@ public class Html2Image {* @throws IOException when an unexpected error occurred*/private static boolean execWkhtmlToPdf(final String proxy, final File destination, final String commandline, final long maxSeconds) throws IOException {- @SuppressWarnings("deprecation")final Process p = Runtime.getRuntime().exec(commandline);try {diff --git a/source/net/yacy/gui/framework/Browser.java b/source/net/yacy/gui/framework/Browser.javaindex 80d566127..fc396c741 100644--- a/source/net/yacy/gui/framework/Browser.java+++ b/source/net/yacy/gui/framework/Browser.java@@ -136,7 +136,6 @@ public class Browser {* It is part of the LSB (Linux Standard Base) and therefore included in all recent Linux Distributions supporting it* (see https://www.linuxbase.org/navigator/browse/cmd_single.php?cmd=list-by-name&Section=ABI&Cname=xdg-open) */final String cmd = "xdg-open " + url;- @SuppressWarnings("deprecation")final Process p = Runtime.getRuntime().exec(cmd);p.waitFor();if (p.exitValue() != 0) {@@ -153,7 +152,6 @@ public class Browser {cmd = "rundll32 url.dll,FileProtocolHandler \"" + url + "\"";}//cmd = "cmd.exe /c start javascript:document.location='" + url + "'";- @SuppressWarnings("deprecation")final Process p = Runtime.getRuntime().exec(cmd);p.waitFor();if (p.exitValue() != 0) {diff --git a/source/net/yacy/kelondro/logging/ThreadDump.java b/source/net/yacy/kelondro/logging/ThreadDump.javaindex 00a4eb8dc..a4d842d02 100644--- a/source/net/yacy/kelondro/logging/ThreadDump.java+++ b/source/net/yacy/kelondro/logging/ThreadDump.java@@ -236,7 +236,6 @@ public class ThreadDump extends HashMap<ThreadDump.StackTrace, List<String>> impwhile (tracename.length() < 20) tracename = tracename + "_";tracename = "[" + tracename + "] ";}- @SuppressWarnings("deprecation")final String threadtitle = tracename + "Thread= " + thread.getName() + " " + (thread.isDaemon()?"daemon":"") + " id=" + thread.getId() + " " + thread.getState().toString();String className;boolean cutcore = true;diff --git a/source/net/yacy/kelondro/util/FileUtils.java b/source/net/yacy/kelondro/util/FileUtils.javaindex 408ee459d..372793e27 100644--- a/source/net/yacy/kelondro/util/FileUtils.java+++ b/source/net/yacy/kelondro/util/FileUtils.java@@ -982,7 +982,6 @@ public final class FileUtils {// deleting files on windows sometimes does not work with javatry {final String command = "cmd /C del /F /Q \"" + p + "\"";- @SuppressWarnings("deprecation")final Process r = Runtime.getRuntime().exec(command);if ( r == null ) {ConcurrentLog.severe("FileUtils", "cannot execute command: " + command);diff --git a/source/net/yacy/server/http/HTTPDProxyHandler.java b/source/net/yacy/server/http/HTTPDProxyHandler.javaindex e300ec9e2..3f01a7ead 100644--- a/source/net/yacy/server/http/HTTPDProxyHandler.java+++ b/source/net/yacy/server/http/HTTPDProxyHandler.java@@ -90,7 +90,6 @@ import net.yacy.repository.Blacklist.BlacklistType;import net.yacy.search.Switchboard;import net.yacy.server.serverObjects;-@SuppressWarnings("deprecation")public final class HTTPDProxyHandler {