diff --git a/platform/lang-impl/src/com/intellij/execution/rmi/RemoteProcessSupport.java b/platform/lang-impl/src/com/intellij/execution/rmi/RemoteProcessSupport.java index aa2ec91c641b..8d2d422f947d 100644 --- a/platform/lang-impl/src/com/intellij/execution/rmi/RemoteProcessSupport.java +++ b/platform/lang-impl/src/com/intellij/execution/rmi/RemoteProcessSupport.java @@ -151,9 +151,9 @@ public abstract class RemoteProcessSupport { public void release(@NotNull Target target, @Nullable Parameters configuration) { ArrayList handlers = new ArrayList(); synchronized (myProcMap) { - for (Pair pair : myProcMap.keySet()) { - if (pair.first == target && (configuration == null || pair.second == configuration)) { - ContainerUtil.addIfNotNull(myProcMap.get(pair).handler, handlers); + for (Pair key : myProcMap.keySet()) { + if (key.first == target && (configuration == null || key.second == configuration)) { + ContainerUtil.addIfNotNull(myProcMap.get(key).handler, handlers); } } } @@ -164,7 +164,7 @@ public abstract class RemoteProcessSupport { fireModificationCountChanged(); } - private void startProcess(Target target, Parameters configuration, Pair key) { + private void startProcess(Target target, Parameters configuration, @NotNull Pair key) { ProgramRunner runner = new DefaultProgramRunner() { @Override @NotNull @@ -196,7 +196,7 @@ public abstract class RemoteProcessSupport { protected abstract RunProfileState getRunProfileState(Target target, Parameters configuration, Executor executor) throws ExecutionException; - private boolean getExistingInfo(Ref ref, Pair key) { + private boolean getExistingInfo(@NotNull Ref ref, @NotNull Pair key) { Info info; synchronized (myProcMap) { info = myProcMap.get(key); @@ -254,7 +254,7 @@ public abstract class RemoteProcessSupport { return (T)(to.isInstance(remote) ? remote : PortableRemoteObject.narrow(remote, to)); } - private ProcessListener getProcessListener(final Pair key) { + private ProcessListener getProcessListener(@NotNull final Pair key) { return new ProcessListener() { @Override public void startNotified(ProcessEvent event) {