mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Move away of deprecated Integer/Boolean
constructor. Change-Id: Iab91e05314206725d8175d30bfb2866c0d99a8d7 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
parent
ec7775edc7
commit
a7635221af
3 changed files with 4 additions and 4 deletions
|
@ -64,7 +64,7 @@ public class TerminalPlugin extends AbstractUIPlugin {
|
|||
if (strEnabled == null)
|
||||
return false;
|
||||
|
||||
return new Boolean(strEnabled).booleanValue();
|
||||
return Boolean.parseBoolean(strEnabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -38,7 +38,7 @@ class EditActionAccelerators {
|
|||
KeyStroke[] keyStrokes = ((KeySequence) bindings[i]).getKeyStrokes();
|
||||
if (keyStrokes.length != 0) {
|
||||
int accelerator = SWTKeySupport.convertKeyStrokeToAccelerator(keyStrokes[0]);
|
||||
commandIdsByAccelerator.put(new Integer(accelerator), commandId);
|
||||
commandIdsByAccelerator.put(Integer.valueOf(accelerator), commandId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -65,6 +65,6 @@ class EditActionAccelerators {
|
|||
if (commandIdsByAccelerator.isEmpty()) {
|
||||
load();
|
||||
}
|
||||
return commandId.equals(commandIdsByAccelerator.get(new Integer(accelerator)));
|
||||
return commandId.equals(commandIdsByAccelerator.get(Integer.valueOf(accelerator)));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public class TerminalConnectorExtension {
|
|||
name = id;
|
||||
}
|
||||
String hidden = config.getAttribute("hidden"); //$NON-NLS-1$
|
||||
boolean isHidden = hidden != null ? new Boolean(hidden).booleanValue() : false;
|
||||
boolean isHidden = hidden != null ? Boolean.parseBoolean(hidden) : false;
|
||||
TerminalConnector.Factory factory = () -> (TerminalConnectorImpl) config.createExecutableExtension("class");
|
||||
return new TerminalConnector(factory, id, name, isHidden);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue