mirror of
https://github.com/yacy/yacy_search_server.git
synced 2026-10-25 05:54:15 +00:00
removed warnings
This commit is contained in:
1 parent
9af88c8d25
commit
8176f75285
6 files changed
-9
No files matched your search
@@ -2660,7 +2660,6 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
|
||||
return 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:/"},
|
||||
|
||||
@@ -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 NTFS
|
||||
try {
|
||||
@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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -236,7 +236,6 @@ public class ThreadDump extends HashMap<ThreadDump.StackTrace, List<String>> imp
|
||||
while (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;
|
||||
|
||||
@@ -982,7 +982,6 @@ public final class FileUtils {
|
||||
// deleting files on windows sometimes does not work with java
|
||||
try {
|
||||
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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user