mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] get rid of unused isPollConnection() method
This commit is contained in:
@@ -40,17 +40,7 @@ public interface DebugEnvironment {
|
||||
|
||||
RemoteConnection getRemoteConnection();
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #getPollTimeout()}
|
||||
*/
|
||||
default boolean isPollConnection() {
|
||||
return false;
|
||||
}
|
||||
|
||||
default long getPollTimeout() {
|
||||
//noinspection deprecation
|
||||
return isPollConnection() ? LOCAL_START_TIMEOUT : 0;
|
||||
}
|
||||
long getPollTimeout();
|
||||
|
||||
String getSessionName();
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -159,8 +159,8 @@ public class JavaDebuggerLauncherImpl extends JavaDebuggerLauncher {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPollConnection() {
|
||||
return true;
|
||||
public long getPollTimeout() {
|
||||
return LOCAL_START_TIMEOUT;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user