1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Remove unneeded casts.

Change-Id: Ie506aa209db9be9c56ed8d80c0c97634c6f0cecf
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
Alexander Kurtakov 2017-03-23 09:32:32 +02:00
parent 93623a1a04
commit 5bec70f68f
2 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2003, 2016 IBM Corporation and others.
* Copyright (c) 2003, 2017 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
@ -254,20 +254,20 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
switch (vType) {
case BOOLEAN:
if (option.value != null) {
value = (Boolean)option.value;
value = option.value;
}
if (option.defaultValue != null) {
defaultValue = (Boolean)option.defaultValue;
defaultValue = option.defaultValue;
}
break;
case STRING:
case ENUMERATED:
case TREE:
if (option.value != null) {
value = (String)option.value;
value = option.value;
}
if (option.defaultValue != null) {
defaultValue = (String)option.defaultValue;
defaultValue = option.defaultValue;
}
break;
case STRING_LIST:

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* Copyright (c) 2000, 2017 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
@ -128,7 +128,7 @@ public class OpenAction extends SelectionDispatchAction {
ICElement element= SelectionConverter.codeResolve(fEditor, getShell(), getDialogTitle(),
ActionMessages.OpenAction_select_element);
if (element == null) {
IEditorStatusLine statusLine= (IEditorStatusLine) fEditor.getAdapter(IEditorStatusLine.class);
IEditorStatusLine statusLine= fEditor.getAdapter(IEditorStatusLine.class);
if (statusLine != null)
statusLine.setMessage(true, ActionMessages.OpenAction_error_messageBadSelection, null);
getShell().getDisplay().beep();