1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 10:15:39 +02:00

[cleanup] Fix compiler warnings

This commit is contained in:
Martin Oberhuber 2006-08-25 14:03:59 +00:00
parent c21cf8817f
commit 6666e89126

View file

@ -139,7 +139,7 @@ public class CommandEntryContentAssistProcessor implements IContentAssistProcess
if (_remoteCommand != null) if (_remoteCommand != null)
{ {
RemoteCmdSubSystem cmdSubsystem = (RemoteCmdSubSystem) _remoteCommand.getCommandSubSystem(); RemoteCmdSubSystem cmdSubsystem = (RemoteCmdSubSystem) _remoteCommand.getCommandSubSystem();
String type = cmdSubsystem.getHost().getSystemType(); //String type = cmdSubsystem.getHost().getSystemType();
if (cmdSubsystem.isWindows()) if (cmdSubsystem.isWindows())
{ {
_isWindows = true; _isWindows = true;
@ -432,10 +432,9 @@ public class CommandEntryContentAssistProcessor implements IContentAssistProcess
private void getEnvironmentCompletions(String currentText, CompletionResults results) private void getEnvironmentCompletions(String currentText, CompletionResults results)
{ {
IRemoteCmdSubSystem subsystem = _remoteCommand.getCommandSubSystem(); IRemoteCmdSubSystem cmdSubsystem = _remoteCommand.getCommandSubSystem();
if (subsystem instanceof IRemoteCmdSubSystem) if (cmdSubsystem != null)
{ {
IRemoteCmdSubSystem cmdSubsystem = (IRemoteCmdSubSystem) subsystem;
List vars = cmdSubsystem.getHostEnvironmentVariables(); List vars = cmdSubsystem.getHostEnvironmentVariables();
if (vars != null) if (vars != null)
{ {
@ -469,10 +468,9 @@ public class CommandEntryContentAssistProcessor implements IContentAssistProcess
private void getCommandCompletions(String currentText, CompletionResults results) private void getCommandCompletions(String currentText, CompletionResults results)
{ {
IRemoteCmdSubSystem subsystem = _remoteCommand.getCommandSubSystem(); IRemoteCmdSubSystem cmdSubsystem = _remoteCommand.getCommandSubSystem();
if (subsystem instanceof IRemoteCmdSubSystem) if (cmdSubsystem != null)
{ {
IRemoteCmdSubSystem cmdSubsystem = (IRemoteCmdSubSystem) subsystem;
ICandidateCommand[] cmds = cmdSubsystem.getCandidateCommands(_remoteCommand); ICandidateCommand[] cmds = cmdSubsystem.getCandidateCommands(_remoteCommand);
if (cmds != null) if (cmds != null)
{ {