From 51cf17d252f33de5167e56f03ac052d0aa982b04 Mon Sep 17 00:00:00 2001 From: Michael Christen Date: Tue, 4 Oct 2022 22:28:15 +0200 Subject: [PATCH] removed warnings --- build.xml | 1 + source/net/yacy/server/http/HTTPDProxyHandler.java | 2 +- source/net/yacy/visualization/DemoApplet.java | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.xml b/build.xml index 52b1e3572..631abd71f 100644 --- a/build.xml +++ b/build.xml @@ -174,6 +174,7 @@ source="${javacSource}" target="${javacTarget}" encoding="UTF-8"> + diff --git a/source/net/yacy/server/http/HTTPDProxyHandler.java b/source/net/yacy/server/http/HTTPDProxyHandler.java index 493cd7a6f..744c4515c 100644 --- a/source/net/yacy/server/http/HTTPDProxyHandler.java +++ b/source/net/yacy/server/http/HTTPDProxyHandler.java @@ -178,7 +178,7 @@ public final class HTTPDProxyHandler { final String redirectorPath = sb.getConfig("externalRedirector", ""); if (redirectorPath.length() > 0 && !redirectorEnabled) { try { - redirectorProcess=Runtime.getRuntime().exec(redirectorPath); + redirectorProcess=Runtime.getRuntime().exec(redirectorPath, null, null); redirectorWriter = new PrintWriter(redirectorProcess.getOutputStream()); redirectorReader = new BufferedReader(new InputStreamReader(redirectorProcess.getInputStream())); redirectorEnabled=true; diff --git a/source/net/yacy/visualization/DemoApplet.java b/source/net/yacy/visualization/DemoApplet.java index 10db0bd63..55ceb5430 100644 --- a/source/net/yacy/visualization/DemoApplet.java +++ b/source/net/yacy/visualization/DemoApplet.java @@ -6,6 +6,7 @@ import java.awt.Graphics; +@SuppressWarnings("removal") public class DemoApplet extends Applet implements Runnable { // can be run in eclipse with // Run -> Run As -> Java Applet