From be1574666e578ad26d07609393ba376e6259c50f Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Mon, 19 Jan 2009 10:12:50 +0000 Subject: [PATCH] Improve comments --- .../subsystems/shells/ssh/SshServiceCommandShell.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.ssh/src/org/eclipse/rse/internal/subsystems/shells/ssh/SshServiceCommandShell.java b/rse/plugins/org.eclipse.rse.subsystems.shells.ssh/src/org/eclipse/rse/internal/subsystems/shells/ssh/SshServiceCommandShell.java index f0edfbfcef2..73ca6de073d 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.ssh/src/org/eclipse/rse/internal/subsystems/shells/ssh/SshServiceCommandShell.java +++ b/rse/plugins/org.eclipse.rse.subsystems.shells.ssh/src/org/eclipse/rse/internal/subsystems/shells/ssh/SshServiceCommandShell.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2008 IBM Corporation and others. + * Copyright (c) 2006, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -186,8 +186,8 @@ public class SshServiceCommandShell extends ServiceCommandShell if (shell instanceof TerminalServiceHostShell) { return ((TerminalServiceHostShell)shell).getPromptCommand(); } - //Assert shell instanceof SshHostShell; - if (shell instanceof SshHostShell) { + //Legacy support for TM <= 3.0 without TerminalServiceHostShell + else if (shell instanceof SshHostShell) { return ((SshHostShell)shell).getPromptCommand(); } //return something impossible such that nothing is ever matched