1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 20:45:22 +02:00

Improve comments

This commit is contained in:
Martin Oberhuber 2009-01-19 10:12:50 +00:00
parent 6136f66da6
commit be1574666e

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -186,8 +186,8 @@ public class SshServiceCommandShell extends ServiceCommandShell
if (shell instanceof TerminalServiceHostShell) { if (shell instanceof TerminalServiceHostShell) {
return ((TerminalServiceHostShell)shell).getPromptCommand(); return ((TerminalServiceHostShell)shell).getPromptCommand();
} }
//Assert shell instanceof SshHostShell; //Legacy support for TM <= 3.0 without TerminalServiceHostShell
if (shell instanceof SshHostShell) { else if (shell instanceof SshHostShell) {
return ((SshHostShell)shell).getPromptCommand(); return ((SshHostShell)shell).getPromptCommand();
} }
//return something impossible such that nothing is ever matched //return something impossible such that nothing is ever matched