[debugger] get rid of unused isPollConnection() method

This commit is contained in:
Daniil Ovchinnikov
2016-06-05 23:54:35 +03:00
parent 35fc56af81
commit ad2ee7def6
2 changed files with 4 additions and 14 deletions
@@ -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();
}
@@ -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