mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Bug 491825 - Remove primitive wrapper creation
Using `new Integer` and other wrapper types such as `new Character` results in potential extra heap utilisation as the values are not cached. The built-in `Integer.valueOf` will perform caching on numbers in the range -128..127 (at least) using a flyweight pattern. In addition, parsing `int` values can be done with `Integer.parseInt` which avoids object construction. Adjust tests such as `"true".equals(expr)` to `Boolean.parseBoolean(expr)`. Change-Id: I0408a5c69afc4ca6ede71acaf6cc4abd67538006 Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
This commit is contained in:
parent
0b7b2a87d3
commit
fc07efa909
150 changed files with 760 additions and 761 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2015 Red Hat Inc.and others.
|
||||
* Copyright (c) 2009, 2016 Red Hat Inc.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
|
||||
|
@ -351,7 +351,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator {
|
|||
// status = new MultiStatus (
|
||||
// ManagedBuilderCorePlugin.getUniqueIdentifier(),
|
||||
// IStatus.WARNING,
|
||||
// new String(),
|
||||
// "",
|
||||
// null);
|
||||
// // Add a new status for each of the bad folders
|
||||
// iter = getInvalidDirList().iterator();
|
||||
|
@ -367,7 +367,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator {
|
|||
// status = new MultiStatus(
|
||||
// ManagedBuilderCorePlugin.getUniqueIdentifier(),
|
||||
// IStatus.OK,
|
||||
// new String(),
|
||||
// "",
|
||||
// null);
|
||||
// }
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2015 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -42,7 +42,7 @@ public class Util {
|
|||
}
|
||||
|
||||
public static int indexOf(String line, char c) {
|
||||
return indexOf(line, Character.valueOf(c).toString());
|
||||
return indexOf(line, String.valueOf(c));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2012 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2010 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2006 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -46,7 +46,7 @@ public class Util {
|
|||
}
|
||||
|
||||
public static int indexOf(String line, char c) {
|
||||
return indexOf(line, new Character(c).toString());
|
||||
return indexOf(line, String.valueOf(c));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2011 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -76,7 +76,7 @@ public class GCCPerFileSIPConsoleParser implements IScannerInfoConsoleParser {
|
|||
scannerInfo.put(ScannerInfoTypes.INCLUDE_PATHS, includes);
|
||||
scannerInfo.put(ScannerInfoTypes.QUOTE_INCLUDE_PATHS, quoteIncludes);
|
||||
scannerInfo.put(ScannerInfoTypes.SYMBOL_DEFINITIONS, symbols);
|
||||
fCollector.contributeToScannerConfig(new Integer(commandId), scannerInfo);
|
||||
fCollector.contributeToScannerConfig(Integer.valueOf(commandId), scannerInfo);
|
||||
commandId = -1;
|
||||
rc = true;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2011 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -91,7 +91,7 @@ public class CCommandDSC {
|
|||
}
|
||||
|
||||
public Integer getCommandIdAsInteger() {
|
||||
return new Integer(getCommandId());
|
||||
return Integer.valueOf(getCommandId());
|
||||
}
|
||||
/**
|
||||
* @return Returns the commandId.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2008, 2011 Andrew Gvozdev.
|
||||
* Copyright (c) 2008, 2016 Andrew Gvozdev.
|
||||
* 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
|
||||
|
@ -162,7 +162,7 @@ public class TextTransferDropTargetListener extends AbstractContainerAreaDropAda
|
|||
if (makeTargets.length > 1) {
|
||||
String title = MakeUIPlugin.getResourceString("MakeTargetDnD.title.createFromTextConfirm"); //$NON-NLS-1$
|
||||
String question = MessageFormat.format(MakeUIPlugin.getResourceString("MakeTargetDnD.message.createFromTextConfirm"), //$NON-NLS-1$
|
||||
new Object[] { new Integer(makeTargets.length) });
|
||||
new Object[] { Integer.valueOf(makeTargets.length) });
|
||||
|
||||
String topTargets = ""; //$NON-NLS-1$
|
||||
for (int i=0;i<makeTargets.length;i++) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2011 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -90,7 +90,7 @@ public abstract class SharedPartWithButtons extends SharedPart {
|
|||
button.setText(label);
|
||||
GridData gd = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING);
|
||||
button.setLayoutData(gd);
|
||||
button.setData(new Integer(index));
|
||||
button.setData(Integer.valueOf(index));
|
||||
return button;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2011 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -66,7 +66,7 @@ public class DeleteTargetAction extends SelectionListenerAction {
|
|||
} else {
|
||||
title = MakeUIPlugin.getResourceString("DeleteTargetAction.title.confirmMultipleDeletion"); //$NON-NLS-1$
|
||||
msg = MessageFormat.format(MakeUIPlugin.getResourceString("DeleteTargetAction.message.confirmMultipleDeletion"), //$NON-NLS-1$
|
||||
new Object[] { new Integer(targets.size())});
|
||||
new Object[] { Integer.valueOf(targets.size())});
|
||||
}
|
||||
return MessageDialog.openQuestion(shell, title, msg);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2003, 2014 IBM Corporation and others.
|
||||
* Copyright (c) 2003, 2016 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
|
||||
|
@ -3659,7 +3659,7 @@ public class ManagedBuildManager extends AbstractCExtension {
|
|||
*/
|
||||
static public String calculateChildId(String superId, String suffix){
|
||||
if(suffix == null)
|
||||
suffix = new Integer(getRandomNumber()).toString();
|
||||
suffix = Integer.toString(getRandomNumber());
|
||||
|
||||
String version = getVersionFromIdAndVersion(superId);
|
||||
if(version != null)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
@ -24,9 +24,9 @@ import org.eclipse.core.resources.IProject;
|
|||
import org.eclipse.core.runtime.IPath;
|
||||
|
||||
public class ConfigurationBuildState implements IConfigurationBuildState {
|
||||
private final static Integer REBUILD_STATE = new Integer(NEED_REBUILD);
|
||||
private final static Integer REMOVED_STATE = new Integer(REMOVED);
|
||||
private final static Integer NONE_STATE = new Integer(0);
|
||||
private final static Integer REBUILD_STATE = NEED_REBUILD;
|
||||
private final static Integer REMOVED_STATE = REMOVED;
|
||||
private final static Integer NONE_STATE = 0;
|
||||
|
||||
private HashMap<Integer, Set<String>> fStateToPathListMap;
|
||||
private Properties fPathToStateProps;
|
||||
|
@ -49,7 +49,7 @@ public class ConfigurationBuildState implements IConfigurationBuildState {
|
|||
if(fStateToPathListMap == null)
|
||||
return new IPath[0];
|
||||
|
||||
Set<String> set = fStateToPathListMap.get(new Integer(state));
|
||||
Set<String> set = fStateToPathListMap.get(Integer.valueOf(state));
|
||||
if(set == null)
|
||||
return new IPath[0];
|
||||
|
||||
|
@ -91,13 +91,13 @@ public class ConfigurationBuildState implements IConfigurationBuildState {
|
|||
fPathToStateProps = new Properties();
|
||||
fStateToPathListMap = new HashMap<Integer, Set<String>>();
|
||||
}
|
||||
String strState = stateToString(new Integer(state));
|
||||
String strState = stateToString(Integer.valueOf(state));
|
||||
Integer iState = stateToInt(strState);
|
||||
if(iState == null)
|
||||
throw new IllegalArgumentException();
|
||||
|
||||
if(cur != 0){
|
||||
Set<String> set = fStateToPathListMap.get(new Integer(cur));
|
||||
Set<String> set = fStateToPathListMap.get(Integer.valueOf(cur));
|
||||
set.remove(str);
|
||||
if(set.size() == 0)
|
||||
fStateToPathListMap.remove(iState);
|
||||
|
@ -170,7 +170,7 @@ public class ConfigurationBuildState implements IConfigurationBuildState {
|
|||
|
||||
private Integer stateToInt(String state){
|
||||
try {
|
||||
Integer i = new Integer(state);
|
||||
Integer i = Integer.valueOf(state);
|
||||
if(i.equals(REBUILD_STATE))
|
||||
return REBUILD_STATE;
|
||||
if(i.equals(REMOVED_STATE))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
@ -118,7 +118,7 @@ public class ProjectBuildState implements IProjectBuildState {
|
|||
String name = props.getProperty(id);
|
||||
if(name == null){
|
||||
if(op == OP_CREATE){
|
||||
name = new Integer(CDataUtil.genRandomNumber()).toString();
|
||||
name = Integer.toString(CDataUtil.genRandomNumber());
|
||||
props.setProperty(id, name);
|
||||
fIsMapInfoDirty = true;
|
||||
// saveMapFile();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2014 Intel Corporation and others.
|
||||
* Copyright (c) 2005, 2016 Intel 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
|
||||
|
@ -135,11 +135,11 @@ public class AdditionalInput implements IAdditionalInput {
|
|||
|
||||
// Copy the remaining attributes
|
||||
if (additionalInput.fPaths != null) {
|
||||
fPaths = new String(additionalInput.fPaths);
|
||||
fPaths = additionalInput.fPaths;
|
||||
}
|
||||
|
||||
if (additionalInput.fKind != null) {
|
||||
fKind = new Integer(additionalInput.fKind.intValue());
|
||||
fKind = additionalInput.fKind;
|
||||
}
|
||||
|
||||
setDirty(true);
|
||||
|
@ -164,11 +164,11 @@ public class AdditionalInput implements IAdditionalInput {
|
|||
// kind
|
||||
String kindStr = element.getAttribute(IAdditionalInput.KIND);
|
||||
if (kindStr == null || kindStr.equals(ADDITIONAL_INPUT_DEPENDENCY)) {
|
||||
fKind = new Integer(KIND_ADDITIONAL_INPUT_DEPENDENCY);
|
||||
fKind = Integer.valueOf(KIND_ADDITIONAL_INPUT_DEPENDENCY);
|
||||
} else if (kindStr.equals(ADDITIONAL_INPUT)) {
|
||||
fKind = new Integer(KIND_ADDITIONAL_INPUT);
|
||||
fKind = Integer.valueOf(KIND_ADDITIONAL_INPUT);
|
||||
} else if (kindStr.equals(ADDITIONAL_DEPENDENCY)) {
|
||||
fKind = new Integer(KIND_ADDITIONAL_DEPENDENCY);
|
||||
fKind = Integer.valueOf(KIND_ADDITIONAL_DEPENDENCY);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -189,11 +189,11 @@ public class AdditionalInput implements IAdditionalInput {
|
|||
if (element.getAttribute(IAdditionalInput.KIND) != null) {
|
||||
String kindStr = element.getAttribute(IAdditionalInput.KIND);
|
||||
if (kindStr == null || kindStr.equals(ADDITIONAL_INPUT_DEPENDENCY)) {
|
||||
fKind = new Integer(KIND_ADDITIONAL_INPUT_DEPENDENCY);
|
||||
fKind = Integer.valueOf(KIND_ADDITIONAL_INPUT_DEPENDENCY);
|
||||
} else if (kindStr.equals(ADDITIONAL_INPUT)) {
|
||||
fKind = new Integer(KIND_ADDITIONAL_INPUT);
|
||||
fKind = Integer.valueOf(KIND_ADDITIONAL_INPUT);
|
||||
} else if (kindStr.equals(ADDITIONAL_DEPENDENCY)) {
|
||||
fKind = new Integer(KIND_ADDITIONAL_DEPENDENCY);
|
||||
fKind = Integer.valueOf(KIND_ADDITIONAL_DEPENDENCY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ public class AdditionalInput implements IAdditionalInput {
|
|||
@Override
|
||||
public void setKind(int newKind) {
|
||||
if (fKind == null || !(fKind.intValue() == newKind)) {
|
||||
fKind = new Integer(newKind);
|
||||
fKind = Integer.valueOf(newKind);
|
||||
fIsDirty = true;
|
||||
setRebuildState(true);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2013 Intel Corporation and others.
|
||||
* Copyright (c) 2004, 2016 Intel 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
|
||||
|
@ -278,7 +278,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
errorParserIds = builder.errorParserIds;
|
||||
}
|
||||
if (builder.isAbstract != null) {
|
||||
isAbstract = builder.isAbstract.booleanValue();
|
||||
isAbstract = builder.isAbstract;
|
||||
}
|
||||
if (builder.command != null) {
|
||||
command = builder.command;
|
||||
|
@ -314,7 +314,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
builderVariablePattern = builder.builderVariablePattern;
|
||||
|
||||
if (builder.isVariableCaseSensitive != null)
|
||||
isVariableCaseSensitive = Boolean.valueOf(builder.isVariableCaseSensitive.booleanValue());
|
||||
isVariableCaseSensitive = builder.isVariableCaseSensitive;
|
||||
|
||||
if (builder.reservedMacroNames != null)
|
||||
reservedMacroNames = builder.reservedMacroNames.clone();
|
||||
|
@ -476,7 +476,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
// get the 'isVariableCaseSensitive' attribute
|
||||
String isCS = element.getAttribute(IS_VARIABLE_CASE_SENSITIVE);
|
||||
if(isCS != null)
|
||||
isVariableCaseSensitive = Boolean.valueOf("true".equals(isCS)); //$NON-NLS-1$
|
||||
isVariableCaseSensitive = Boolean.parseBoolean(isCS);
|
||||
|
||||
// get the reserved macro names
|
||||
String reservedNames = element.getAttribute(RESERVED_MACRO_NAMES);
|
||||
|
@ -495,7 +495,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
// isAbstract
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
|
||||
// command
|
||||
|
@ -581,7 +581,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
|
||||
tmp = element.getAttribute(IS_SYSTEM);
|
||||
if(tmp != null)
|
||||
isTest = Boolean.valueOf(tmp).booleanValue();
|
||||
isTest = Boolean.parseBoolean(tmp);
|
||||
|
||||
IManagedConfigElement[] children = element.getChildren();
|
||||
for(int i = 0; i < children.length; i++){
|
||||
|
@ -704,7 +704,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1224,12 +1224,12 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
int numEnd = numStart + PARALLEL_PATTERN_NUM.length();
|
||||
numPrefix = numStr.substring(0, numStart);
|
||||
numSuffix = numStr.substring(numEnd);
|
||||
resolvedNum = numPrefix + new Integer(num).toString() + numSuffix;
|
||||
resolvedNum = numPrefix + Integer.toString(num) + numSuffix;
|
||||
} else {
|
||||
resolvedNum = EMPTY_STRING;
|
||||
}
|
||||
} else {
|
||||
resolvedNum = new Integer(num).toString();
|
||||
resolvedNum = Integer.toString(num);
|
||||
}
|
||||
result = prefix + resolvedNum + suffix;
|
||||
}
|
||||
|
@ -1328,7 +1328,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
|
||||
@Override
|
||||
public void setIsAbstract(boolean b) {
|
||||
isAbstract = Boolean.valueOf(b);
|
||||
isAbstract = b;
|
||||
setDirty(true);
|
||||
}
|
||||
|
||||
|
@ -1931,7 +1931,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
String updatedArgs = removeCmd(args, curCmd);
|
||||
if(!updatedArgs.equals(args))
|
||||
setArgumentsAttribute(updatedArgs);
|
||||
stopOnErr = Boolean.valueOf(on);
|
||||
stopOnErr = on;
|
||||
}
|
||||
setDirty(true);
|
||||
}
|
||||
|
@ -2079,7 +2079,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
|
||||
@Override
|
||||
public void setAutoBuildEnable(boolean enabled) throws CoreException {
|
||||
autoBuildEnabled = Boolean.valueOf(enabled);
|
||||
autoBuildEnabled = enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2089,7 +2089,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
|
||||
@Override
|
||||
public void setCleanBuildEnable(boolean enabled) throws CoreException {
|
||||
cleanBuildEnabled = Boolean.valueOf(enabled);
|
||||
cleanBuildEnabled = enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2109,7 +2109,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
|
||||
@Override
|
||||
public void setIncrementalBuildEnable(boolean enabled) throws CoreException {
|
||||
incrementalBuildEnabled = Boolean.valueOf(enabled);
|
||||
incrementalBuildEnabled = enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2295,7 +2295,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
|
||||
@Override
|
||||
public void setAppendEnvironment(boolean append) throws CoreException {
|
||||
appendEnvironment = Boolean.valueOf(append);
|
||||
appendEnvironment = append;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2320,7 +2320,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
} else if(BuilderFactory.STOP_ON_ERROR.equals(name)){
|
||||
stopOnErr = Boolean.valueOf(value);
|
||||
} else if(BuilderFactory.USE_DEFAULT_BUILD_CMD.equals(name)){
|
||||
if(value == null || Boolean.valueOf(value).booleanValue()){
|
||||
if(value == null || Boolean.parseBoolean(value)){
|
||||
if(superClass != null)
|
||||
command = null;
|
||||
}
|
||||
|
@ -2412,7 +2412,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
|
||||
@Override
|
||||
public void setManagedBuildOn(boolean on) throws CoreException {
|
||||
managedBuildOn = Boolean.valueOf(on);
|
||||
managedBuildOn = on;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2432,7 +2432,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
|
||||
@Override
|
||||
public void setKeepEnvironmentVariablesInBuildfile(boolean keep) {
|
||||
keepEnvVarInBuildfile = Boolean.valueOf(keep);
|
||||
keepEnvVarInBuildfile = keep;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2440,9 +2440,9 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
|||
if(fSupportsCustomizedBuild == null){
|
||||
IManagedBuilderMakefileGenerator makeGen = getBuildFileGenerator();
|
||||
if(makeGen instanceof IManagedBuilderMakefileGenerator2)
|
||||
fSupportsCustomizedBuild = Boolean.valueOf(true);
|
||||
fSupportsCustomizedBuild = true;
|
||||
else
|
||||
fSupportsCustomizedBuild = Boolean.valueOf(false);
|
||||
fSupportsCustomizedBuild = false;
|
||||
}
|
||||
return fSupportsCustomizedBuild.booleanValue();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2013 Symbian Ltd and others.
|
||||
* Copyright (c) 2005, 2016 Symbian Ltd 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
|
||||
|
@ -582,9 +582,9 @@ public abstract class HoldsOptions extends BuildObject implements IHoldsOptions,
|
|||
String version = ManagedBuildManager.getVersionFromIdAndVersion(newSuperClass.getId());
|
||||
String baseId = ManagedBuildManager.getIdFromIdAndVersion(newSuperClass.getId());
|
||||
if ( version != null) {
|
||||
subId = baseId + ".adjusted." + new Integer(ManagedBuildManager.getRandomNumber()) + "_" + version; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
subId = baseId + ".adjusted." + Integer.toString(ManagedBuildManager.getRandomNumber()) + "_" + version; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
} else {
|
||||
subId = baseId + ".adjusted." + new Integer(ManagedBuildManager.getRandomNumber()); //$NON-NLS-1$
|
||||
subId = baseId + ".adjusted." + Integer.toString(ManagedBuildManager.getRandomNumber()); //$NON-NLS-1$
|
||||
}
|
||||
setOption = createOption(newSuperClass, subId, null, true);
|
||||
((Option)setOption).setAdjusted(true);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2005, 2016 Intel 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
|
||||
|
@ -103,7 +103,7 @@ public class InputOrder implements IInputOrder {
|
|||
}
|
||||
|
||||
if (inputOrder.fExcluded != null) {
|
||||
fExcluded = inputOrder.fExcluded.booleanValue();
|
||||
fExcluded = inputOrder.fExcluded;
|
||||
}
|
||||
|
||||
setDirty(true);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2015 Intel Corporation and others.
|
||||
* Copyright (c) 2005, 2016 Intel 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
|
||||
|
@ -52,7 +52,7 @@ import org.osgi.framework.Version;
|
|||
public class InputType extends BuildObject implements IInputType {
|
||||
|
||||
private static final String DEFAULT_SEPARATOR = ","; //$NON-NLS-1$
|
||||
private static final String EMPTY_STRING = new String();
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
|
||||
// Superclass
|
||||
private IInputType superClass;
|
||||
|
@ -262,10 +262,10 @@ public class InputType extends BuildObject implements IInputType {
|
|||
buildVariable = inputType.buildVariable;
|
||||
}
|
||||
if (inputType.multipleOfType != null) {
|
||||
multipleOfType = inputType.multipleOfType.booleanValue();
|
||||
multipleOfType = inputType.multipleOfType;
|
||||
}
|
||||
if (inputType.primaryInput != null) {
|
||||
primaryInput = inputType.primaryInput.booleanValue();
|
||||
primaryInput = inputType.primaryInput;
|
||||
}
|
||||
dependencyGeneratorElement = inputType.dependencyGeneratorElement;
|
||||
dependencyGenerator = inputType.dependencyGenerator;
|
||||
|
@ -397,13 +397,13 @@ public class InputType extends BuildObject implements IInputType {
|
|||
// multipleOfType
|
||||
String isMOT = element.getAttribute(IInputType.MULTIPLE_OF_TYPE);
|
||||
if (isMOT != null){
|
||||
multipleOfType = Boolean.valueOf("true".equals(isMOT)); //$NON-NLS-1$
|
||||
multipleOfType = Boolean.parseBoolean(isMOT);
|
||||
}
|
||||
|
||||
// primaryInput
|
||||
String isPI = element.getAttribute(IInputType.PRIMARY_INPUT);
|
||||
if (isPI != null){
|
||||
primaryInput = Boolean.valueOf("true".equals(isPI)); //$NON-NLS-1$
|
||||
primaryInput = Boolean.parseBoolean(isPI);
|
||||
}
|
||||
|
||||
// buildVariable
|
||||
|
@ -577,7 +577,7 @@ public class InputType extends BuildObject implements IInputType {
|
|||
if (element.getAttribute(IInputType.MULTIPLE_OF_TYPE) != null) {
|
||||
String isMOT = element.getAttribute(IInputType.MULTIPLE_OF_TYPE);
|
||||
if (isMOT != null){
|
||||
multipleOfType = Boolean.valueOf("true".equals(isMOT)); //$NON-NLS-1$
|
||||
multipleOfType = Boolean.parseBoolean(isMOT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -585,7 +585,7 @@ public class InputType extends BuildObject implements IInputType {
|
|||
if (element.getAttribute(IInputType.PRIMARY_INPUT) != null) {
|
||||
String isPI = element.getAttribute(IInputType.PRIMARY_INPUT);
|
||||
if (isPI != null){
|
||||
primaryInput = Boolean.valueOf("true".equals(isPI)); //$NON-NLS-1$
|
||||
primaryInput = Boolean.parseBoolean(isPI);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1158,7 +1158,7 @@ public class InputType extends BuildObject implements IInputType {
|
|||
@Override
|
||||
public void setMultipleOfType(boolean b) {
|
||||
if (multipleOfType == null || !(b == multipleOfType.booleanValue())) {
|
||||
multipleOfType = Boolean.valueOf(b);
|
||||
multipleOfType = b;
|
||||
setDirty(true);
|
||||
setRebuildState(true);
|
||||
}
|
||||
|
@ -1185,7 +1185,7 @@ public class InputType extends BuildObject implements IInputType {
|
|||
@Override
|
||||
public void setPrimaryInput(boolean b) {
|
||||
if (primaryInput == null || !(b == primaryInput.booleanValue())) {
|
||||
primaryInput = Boolean.valueOf(b);
|
||||
primaryInput = b;
|
||||
setDirty(true);
|
||||
setRebuildState(true);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2003, 2013 IBM Corporation and others.
|
||||
* Copyright (c) 2003, 2016 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
|
||||
|
@ -50,7 +50,7 @@ import org.osgi.framework.Version;
|
|||
|
||||
public class Option extends BuildObject implements IOption, IBuildPropertiesRestriction {
|
||||
// Static default return values
|
||||
public static final String EMPTY_STRING = new String().intern();
|
||||
public static final String EMPTY_STRING = "";
|
||||
public static final String[] EMPTY_STRING_ARRAY = new String[0];
|
||||
public static final OptionStringValue[] EMPTY_LV_ARRAY = new OptionStringValue[0];
|
||||
|
||||
|
@ -199,34 +199,34 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
|
||||
// Copy the remaining attributes
|
||||
if (option.unusedChildren != null) {
|
||||
unusedChildren = new String(option.unusedChildren);
|
||||
unusedChildren = option.unusedChildren;
|
||||
}
|
||||
if (option.isAbstract != null) {
|
||||
isAbstract = Boolean.valueOf(option.isAbstract.booleanValue());
|
||||
isAbstract = option.isAbstract;
|
||||
}
|
||||
if (option.command != null) {
|
||||
command = new String(option.command);
|
||||
command = option.command;
|
||||
}
|
||||
if (option.commandFalse != null) {
|
||||
commandFalse = new String(option.commandFalse);
|
||||
commandFalse = option.commandFalse;
|
||||
}
|
||||
if (option.isForScannerDiscovery != null) {
|
||||
isForScannerDiscovery = Boolean.valueOf(option.isForScannerDiscovery.booleanValue());
|
||||
isForScannerDiscovery = option.isForScannerDiscovery;
|
||||
}
|
||||
if (option.tip != null) {
|
||||
tip = new String(option.tip);
|
||||
tip = option.tip;
|
||||
}
|
||||
if (option.contextId != null) {
|
||||
contextId = new String(option.contextId);
|
||||
contextId = option.contextId;
|
||||
}
|
||||
if (option.categoryId != null) {
|
||||
categoryId = new String(option.categoryId);
|
||||
categoryId = option.categoryId;
|
||||
}
|
||||
if (option.builtIns != null) {
|
||||
builtIns = new ArrayList<OptionStringValue>(option.builtIns);
|
||||
}
|
||||
if (option.browseType != null) {
|
||||
browseType = new Integer(option.browseType.intValue());
|
||||
browseType = option.browseType;
|
||||
}
|
||||
if (option.browseFilterPath != null) {
|
||||
browseFilterPath = option.browseFilterPath;
|
||||
|
@ -235,7 +235,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
browseFilterExtensions = option.browseFilterExtensions.clone();
|
||||
}
|
||||
if (option.resourceFilter != null) {
|
||||
resourceFilter = new Integer(option.resourceFilter.intValue());
|
||||
resourceFilter = option.resourceFilter;
|
||||
}
|
||||
if (option.applicableValuesList != null) {
|
||||
applicableValuesList = new ArrayList<String>(option.applicableValuesList);
|
||||
|
@ -247,28 +247,27 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
}
|
||||
|
||||
if (option.valueType != null) {
|
||||
valueType = new Integer(option.valueType.intValue());
|
||||
valueType = option.valueType;
|
||||
}
|
||||
Integer vType = null;
|
||||
try {
|
||||
vType = new Integer(option.getValueType());
|
||||
switch (vType.intValue()) {
|
||||
int vType = option.getValueType();
|
||||
switch (vType) {
|
||||
case BOOLEAN:
|
||||
if (option.value != null) {
|
||||
value = Boolean.valueOf(((Boolean)option.value).booleanValue());
|
||||
value = (Boolean)option.value;
|
||||
}
|
||||
if (option.defaultValue != null) {
|
||||
defaultValue = Boolean.valueOf(((Boolean)option.defaultValue).booleanValue());
|
||||
defaultValue = (Boolean)option.defaultValue;
|
||||
}
|
||||
break;
|
||||
case STRING:
|
||||
case ENUMERATED:
|
||||
case TREE:
|
||||
if (option.value != null) {
|
||||
value = new String((String)option.value);
|
||||
value = (String)option.value;
|
||||
}
|
||||
if (option.defaultValue != null) {
|
||||
defaultValue = new String((String)option.defaultValue);
|
||||
defaultValue = (String)option.defaultValue;
|
||||
}
|
||||
break;
|
||||
case STRING_LIST:
|
||||
|
@ -317,14 +316,14 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
valueHandler = option.valueHandler;
|
||||
}
|
||||
if (option.valueHandlerExtraArgument != null) {
|
||||
valueHandlerExtraArgument = new String(option.valueHandlerExtraArgument);
|
||||
valueHandlerExtraArgument = option.valueHandlerExtraArgument;
|
||||
}
|
||||
|
||||
if (option.fieldEditorId != null) {
|
||||
fieldEditorId = option.fieldEditorId;
|
||||
}
|
||||
if (option.fieldEditorExtraArgument != null) {
|
||||
fieldEditorExtraArgument = new String(option.fieldEditorExtraArgument);
|
||||
fieldEditorExtraArgument = option.fieldEditorExtraArgument;
|
||||
}
|
||||
|
||||
if(copyIds){
|
||||
|
@ -364,7 +363,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
// isAbstract
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
|
||||
// Get the command defined for the option
|
||||
|
@ -382,7 +381,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
// isForScannerDiscovery
|
||||
String isForSD = element.getAttribute(USE_BY_SCANNER_DISCOVERY);
|
||||
if (isForSD != null){
|
||||
isForScannerDiscovery = Boolean.valueOf("true".equals(isForSD)); //$NON-NLS-1$
|
||||
isForScannerDiscovery = Boolean.parseBoolean(isForSD);
|
||||
}
|
||||
|
||||
// Get the tooltip for the option
|
||||
|
@ -394,7 +393,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
// Options hold different types of values
|
||||
String valueTypeStr = element.getAttribute(VALUE_TYPE);
|
||||
if (valueTypeStr != null) {
|
||||
valueType = new Integer(ValueTypeStrToInt(valueTypeStr));
|
||||
valueType = Integer.valueOf(ValueTypeStrToInt(valueTypeStr));
|
||||
}
|
||||
|
||||
// Note: The value and defaultValue attributes are loaded in the resolveReferences routine.
|
||||
|
@ -410,11 +409,11 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
// which they should be
|
||||
browseType = null;
|
||||
} else if (browseTypeStr.equals(NONE)) {
|
||||
browseType = new Integer(BROWSE_NONE);
|
||||
browseType = BROWSE_NONE;
|
||||
} else if (browseTypeStr.equals(FILE)) {
|
||||
browseType = new Integer(BROWSE_FILE);
|
||||
browseType = BROWSE_FILE;
|
||||
} else if (browseTypeStr.equals(DIR)) {
|
||||
browseType = new Integer(BROWSE_DIR);
|
||||
browseType = BROWSE_DIR;
|
||||
}
|
||||
|
||||
// Get the browseFilterPath attribute
|
||||
|
@ -437,11 +436,11 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
// which they should be
|
||||
resourceFilter = null;
|
||||
} else if (resFilterStr.equals(ALL)) {
|
||||
resourceFilter = new Integer(FILTER_ALL);
|
||||
resourceFilter = FILTER_ALL;
|
||||
} else if (resFilterStr.equals(FILE)) {
|
||||
resourceFilter = new Integer(FILTER_FILE);
|
||||
resourceFilter = FILTER_FILE;
|
||||
} else if (resFilterStr.equals(PROJECT)) {
|
||||
resourceFilter = new Integer(FILTER_PROJECT);
|
||||
resourceFilter = FILTER_PROJECT;
|
||||
}
|
||||
|
||||
//get enablements
|
||||
|
@ -506,7 +505,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -524,7 +523,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
if (element.getAttribute(USE_BY_SCANNER_DISCOVERY) != null) {
|
||||
String isForSD = element.getAttribute(USE_BY_SCANNER_DISCOVERY);
|
||||
if (isForSD != null){
|
||||
isForScannerDiscovery = Boolean.valueOf("true".equals(isForSD)); //$NON-NLS-1$
|
||||
isForScannerDiscovery = Boolean.parseBoolean(isForSD);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -541,7 +540,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
// Options hold different types of values
|
||||
if (element.getAttribute(VALUE_TYPE) != null) {
|
||||
String valueTypeStr = element.getAttribute(VALUE_TYPE);
|
||||
valueType = new Integer(ValueTypeStrToInt(valueTypeStr));
|
||||
valueType = Integer.valueOf(ValueTypeStrToInt(valueTypeStr));
|
||||
}
|
||||
|
||||
// Now get the actual value based upon value-type
|
||||
|
@ -680,11 +679,11 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
// which they should be
|
||||
browseType = null;
|
||||
} else if (browseTypeStr.equals(NONE)) {
|
||||
browseType = new Integer(BROWSE_NONE);
|
||||
browseType = BROWSE_NONE;
|
||||
} else if (browseTypeStr.equals(FILE)) {
|
||||
browseType = new Integer(BROWSE_FILE);
|
||||
browseType = BROWSE_FILE;
|
||||
} else if (browseTypeStr.equals(DIR)) {
|
||||
browseType = new Integer(BROWSE_DIR);
|
||||
browseType = BROWSE_DIR;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -718,11 +717,11 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
// which they should be
|
||||
resourceFilter = null;
|
||||
} else if (resFilterStr.equals(ALL)) {
|
||||
resourceFilter = new Integer(FILTER_ALL);
|
||||
resourceFilter = FILTER_ALL;
|
||||
} else if (resFilterStr.equals(FILE)) {
|
||||
resourceFilter = new Integer(FILTER_FILE);
|
||||
resourceFilter = FILTER_FILE;
|
||||
} else if (resFilterStr.equals(PROJECT)) {
|
||||
resourceFilter = new Integer(FILTER_PROJECT);
|
||||
resourceFilter = FILTER_PROJECT;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1277,7 +1276,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
@Override
|
||||
public boolean isForScannerDiscovery() {
|
||||
if (isForScannerDiscovery == null) {
|
||||
isForScannerDiscovery = Boolean.valueOf(superClass != null && superClass.isForScannerDiscovery());
|
||||
isForScannerDiscovery = superClass != null && superClass.isForScannerDiscovery();
|
||||
}
|
||||
return isForScannerDiscovery;
|
||||
}
|
||||
|
@ -1601,7 +1600,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
}
|
||||
switch (valType) {
|
||||
case BOOLEAN:
|
||||
val = Boolean.valueOf(false);
|
||||
val = Boolean.FALSE;
|
||||
break;
|
||||
case STRING:
|
||||
case TREE:
|
||||
|
@ -1662,7 +1661,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
}
|
||||
switch (valType) {
|
||||
case BOOLEAN:
|
||||
val = Boolean.valueOf(false);
|
||||
val = Boolean.FALSE;
|
||||
break;
|
||||
case STRING:
|
||||
case TREE:
|
||||
|
@ -1862,7 +1861,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
@Override
|
||||
public void setResourceFilter(int filter) {
|
||||
if (resourceFilter == null || !(filter == resourceFilter.intValue())) {
|
||||
resourceFilter = new Integer(filter);
|
||||
resourceFilter = Integer.valueOf(filter);
|
||||
if(!isExtensionElement()){
|
||||
isDirty = true;
|
||||
rebuildState = true;
|
||||
|
@ -1873,7 +1872,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
@Override
|
||||
public void setBrowseType(int type) {
|
||||
if (browseType == null || !(type == browseType.intValue())) {
|
||||
browseType = new Integer(type);
|
||||
browseType = Integer.valueOf(type);
|
||||
if(!isExtensionElement()){
|
||||
isDirty = true;
|
||||
rebuildState = true;
|
||||
|
@ -1906,7 +1905,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
@Override
|
||||
public void setValue(boolean value) throws BuildException {
|
||||
if (/*!isExtensionElement() && */getValueType() == BOOLEAN){
|
||||
this.value = Boolean.valueOf(value);
|
||||
this.value = value;
|
||||
} else {
|
||||
throw new BuildException(ManagedMakeMessages.getResourceString("Option.error.bad_value_type")); //$NON-NLS-1$
|
||||
}
|
||||
|
@ -2020,7 +2019,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
public void setValueType(int type) {
|
||||
// TODO: Verify that this is a valid type
|
||||
if (valueType == null || valueType.intValue() != type) {
|
||||
valueType = new Integer(type);
|
||||
valueType = Integer.valueOf(type);
|
||||
if(!isExtensionElement()){
|
||||
setDirty(true);
|
||||
rebuildState = true;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2003, 2013 IBM Corporation and others.
|
||||
* Copyright (c) 2003, 2016 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
|
||||
|
@ -354,7 +354,7 @@ public class OptionReference implements IOption {
|
|||
return command;
|
||||
} catch (BuildException e) {}
|
||||
}
|
||||
return new String();
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -368,7 +368,7 @@ public class OptionReference implements IOption {
|
|||
return command;
|
||||
} catch (BuildException e) {}
|
||||
}
|
||||
return new String();
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -679,7 +679,7 @@ public class OptionReference implements IOption {
|
|||
@Override
|
||||
public void setValue(boolean value) throws BuildException {
|
||||
if (getValueType() == BOOLEAN) {
|
||||
this.value = Boolean.valueOf(value);
|
||||
this.value = value;
|
||||
}
|
||||
else {
|
||||
throw new BuildException(ManagedMakeMessages.getResourceString("Option.error.bad_value_type")); //$NON-NLS-1$
|
||||
|
@ -729,7 +729,7 @@ public class OptionReference implements IOption {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
String answer = new String();
|
||||
String answer = ""; //$NON-NLS-1$
|
||||
if (option != null) {
|
||||
answer += "Reference to " + option.getName(); //$NON-NLS-1$
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2005, 2016 Intel 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
|
||||
|
@ -33,7 +33,7 @@ import org.osgi.framework.Version;
|
|||
public class OutputType extends BuildObject implements IOutputType {
|
||||
|
||||
private static final String DEFAULT_SEPARATOR = ","; //$NON-NLS-1$
|
||||
private static final String EMPTY_STRING = new String();
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
|
||||
// Superclass
|
||||
private IOutputType superClass;
|
||||
|
@ -149,7 +149,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
|||
superClass = outputType.superClass;
|
||||
if (superClass != null) {
|
||||
if (outputType.superClassId != null) {
|
||||
superClassId = new String(outputType.superClassId);
|
||||
superClassId = outputType.superClassId;
|
||||
}
|
||||
}
|
||||
setId(Id);
|
||||
|
@ -159,36 +159,36 @@ public class OutputType extends BuildObject implements IOutputType {
|
|||
|
||||
// Copy the remaining attributes
|
||||
if (outputType.outputContentTypeId != null) {
|
||||
outputContentTypeId = new String(outputType.outputContentTypeId);
|
||||
outputContentTypeId = outputType.outputContentTypeId;
|
||||
}
|
||||
outputContentType = outputType.outputContentType;
|
||||
if (outputType.outputs != null) {
|
||||
outputs = new String(outputType.outputs);
|
||||
outputs = outputType.outputs;
|
||||
}
|
||||
if (outputType.optionId != null) {
|
||||
optionId = new String(outputType.optionId);
|
||||
optionId = outputType.optionId;
|
||||
}
|
||||
if (outputType.buildVariable != null) {
|
||||
buildVariable = new String(outputType.buildVariable);
|
||||
buildVariable = outputType.buildVariable;
|
||||
}
|
||||
if (outputType.multipleOfType != null) {
|
||||
multipleOfType = Boolean.valueOf(outputType.multipleOfType.booleanValue());
|
||||
multipleOfType = outputType.multipleOfType;
|
||||
}
|
||||
if (outputType.primaryInputTypeId != null) {
|
||||
primaryInputTypeId = new String(outputType.primaryInputTypeId);
|
||||
primaryInputTypeId = outputType.primaryInputTypeId;
|
||||
}
|
||||
primaryInputType = outputType.primaryInputType;
|
||||
if (outputType.primaryOutput != null) {
|
||||
primaryOutput = Boolean.valueOf(outputType.primaryOutput.booleanValue());
|
||||
primaryOutput = outputType.primaryOutput;
|
||||
}
|
||||
if (outputType.outputPrefix != null) {
|
||||
outputPrefix = new String(outputType.outputPrefix);
|
||||
outputPrefix = outputType.outputPrefix;
|
||||
}
|
||||
if (outputType.outputNames != null) {
|
||||
outputNames = new String(outputType.outputNames);
|
||||
outputNames = outputType.outputNames;
|
||||
}
|
||||
if (outputType.namePattern != null) {
|
||||
namePattern = new String(outputType.namePattern);
|
||||
namePattern = outputType.namePattern;
|
||||
}
|
||||
|
||||
nameProviderElement = outputType.nameProviderElement;
|
||||
|
@ -237,7 +237,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
|||
// multipleOfType
|
||||
String isMOT = element.getAttribute(IOutputType.MULTIPLE_OF_TYPE);
|
||||
if (isMOT != null){
|
||||
multipleOfType = Boolean.valueOf("true".equals(isMOT)); //$NON-NLS-1$
|
||||
multipleOfType = Boolean.parseBoolean(isMOT);
|
||||
}
|
||||
|
||||
// primaryInputType
|
||||
|
@ -246,7 +246,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
|||
// primaryOutput
|
||||
String isPO = element.getAttribute(IOutputType.PRIMARY_OUTPUT);
|
||||
if (isPO != null){
|
||||
primaryOutput = Boolean.valueOf("true".equals(isPO)); //$NON-NLS-1$
|
||||
primaryOutput = Boolean.parseBoolean(isPO);
|
||||
}
|
||||
|
||||
// outputPrefix
|
||||
|
@ -312,7 +312,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
|||
if (element.getAttribute(IOutputType.MULTIPLE_OF_TYPE) != null) {
|
||||
String isMOT = element.getAttribute(IOutputType.MULTIPLE_OF_TYPE);
|
||||
if (isMOT != null){
|
||||
multipleOfType = Boolean.valueOf("true".equals(isMOT)); //$NON-NLS-1$
|
||||
multipleOfType = Boolean.parseBoolean(isMOT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
|||
if (element.getAttribute(IOutputType.PRIMARY_OUTPUT) != null) {
|
||||
String isPO = element.getAttribute(IOutputType.PRIMARY_OUTPUT);
|
||||
if (isPO != null){
|
||||
primaryOutput = Boolean.valueOf("true".equals(isPO)); //$NON-NLS-1$
|
||||
primaryOutput = Boolean.parseBoolean(isPO);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -510,7 +510,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
|||
@Override
|
||||
public void setMultipleOfType(boolean b) {
|
||||
if (multipleOfType == null || !(b == multipleOfType.booleanValue())) {
|
||||
multipleOfType = Boolean.valueOf(b);
|
||||
multipleOfType = b;
|
||||
setDirty(true);
|
||||
setRebuildState(true);
|
||||
}
|
||||
|
@ -820,7 +820,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
|||
@Override
|
||||
public void setPrimaryOutput(boolean b) {
|
||||
if (primaryOutput == null || !(b == primaryOutput.booleanValue())) {
|
||||
primaryOutput = Boolean.valueOf(b);
|
||||
primaryOutput = b;
|
||||
setDirty(true);
|
||||
setRebuildState(true);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2004, 2016 Intel 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
|
||||
|
@ -42,7 +42,7 @@ import org.osgi.framework.Version;
|
|||
|
||||
public class ProjectType extends BuildObject implements IProjectType, IBuildPropertiesRestriction, IBuildPropertyChangeListener {
|
||||
|
||||
private static final String EMPTY_STRING = new String();
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
//private static final IConfiguration[] emptyConfigs = new IConfiguration[0];
|
||||
|
||||
// Superclass
|
||||
|
@ -187,13 +187,13 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
|
|||
// isAbstract
|
||||
String isAbs = element.getAttribute(IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
|
||||
// Is this a test project type
|
||||
String isTestStr = element.getAttribute(IS_TEST);
|
||||
if (isTestStr != null){
|
||||
isTest = Boolean.valueOf("true".equals(isTestStr)); //$NON-NLS-1$
|
||||
isTest = Boolean.parseBoolean(isTestStr);
|
||||
}
|
||||
|
||||
// Store the configuration element IFF there is a configuration name provider defined
|
||||
|
@ -323,7 +323,7 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
|
|||
if (superClass != null) {
|
||||
return (superClass).getNameAttribute();
|
||||
} else {
|
||||
return new String(""); //$NON-NLS-1$
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
} else {
|
||||
return name;
|
||||
|
@ -382,14 +382,14 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
|
|||
*/
|
||||
@Override
|
||||
public void setIsAbstract(boolean b) {
|
||||
isAbstract = Boolean.valueOf(b);
|
||||
isAbstract = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the isTest attribute
|
||||
*/
|
||||
public void setIsTest(boolean b) {
|
||||
isTest = Boolean.valueOf(b);
|
||||
isTest = b;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2005, 2016 Intel 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
|
||||
|
@ -140,7 +140,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
|||
|
||||
setDirty(false);
|
||||
toolsToInvoke = EMPTY_STRING;
|
||||
rcbsApplicability = new Integer(KIND_DISABLE_RCBS_TOOL);
|
||||
rcbsApplicability = KIND_DISABLE_RCBS_TOOL;
|
||||
|
||||
|
||||
// Get file extension.
|
||||
|
@ -190,7 +190,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
|||
toolsToInvoke = new String(cloneConfig.toolsToInvoke);
|
||||
}
|
||||
if (cloneConfig.rcbsApplicability != null) {
|
||||
rcbsApplicability = new Integer(cloneConfig.rcbsApplicability.intValue());
|
||||
rcbsApplicability = cloneConfig.rcbsApplicability;
|
||||
}
|
||||
|
||||
boolean copyIds = cloneChildren && id.equals(cloneConfig.id);
|
||||
|
@ -316,7 +316,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
|||
// Copy the remaining attributes
|
||||
toolsToInvoke = baseInfo.toolsToInvoke;
|
||||
|
||||
rcbsApplicability = new Integer(KIND_DISABLE_RCBS_TOOL);
|
||||
rcbsApplicability = KIND_DISABLE_RCBS_TOOL;
|
||||
|
||||
// Clone the resource configuration's tool children
|
||||
if (baseInfo.toolList != null) {
|
||||
|
@ -354,13 +354,13 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
|||
// rcbsApplicability
|
||||
String rcbsApplicabilityStr = element.getAttribute(IResourceConfiguration.RCBS_APPLICABILITY);
|
||||
if (rcbsApplicabilityStr == null || rcbsApplicabilityStr.equals(DISABLE_RCBS_TOOL)) {
|
||||
rcbsApplicability = new Integer(KIND_DISABLE_RCBS_TOOL);
|
||||
rcbsApplicability = KIND_DISABLE_RCBS_TOOL;
|
||||
} else if (rcbsApplicabilityStr.equals(APPLY_RCBS_TOOL_BEFORE)) {
|
||||
rcbsApplicability = new Integer(KIND_APPLY_RCBS_TOOL_BEFORE);
|
||||
rcbsApplicability = KIND_APPLY_RCBS_TOOL_BEFORE;
|
||||
} else if (rcbsApplicabilityStr.equals(APPLY_RCBS_TOOL_AFTER)) {
|
||||
rcbsApplicability = new Integer(KIND_APPLY_RCBS_TOOL_AFTER);
|
||||
rcbsApplicability = KIND_APPLY_RCBS_TOOL_AFTER;
|
||||
} else if (rcbsApplicabilityStr.equals(APPLY_RCBS_TOOL_AS_OVERRIDE)) {
|
||||
rcbsApplicability = new Integer(KIND_APPLY_RCBS_TOOL_AS_OVERRIDE);
|
||||
rcbsApplicability = KIND_APPLY_RCBS_TOOL_AS_OVERRIDE;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -380,13 +380,13 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
|||
if (element.getAttribute(IResourceConfiguration.RCBS_APPLICABILITY) != null) {
|
||||
String rcbsApplicabilityStr = element.getAttribute(IResourceConfiguration.RCBS_APPLICABILITY);
|
||||
if (rcbsApplicabilityStr == null || rcbsApplicabilityStr.equals(DISABLE_RCBS_TOOL)) {
|
||||
rcbsApplicability = new Integer(KIND_DISABLE_RCBS_TOOL);
|
||||
rcbsApplicability = KIND_DISABLE_RCBS_TOOL;
|
||||
} else if (rcbsApplicabilityStr.equals(APPLY_RCBS_TOOL_BEFORE)) {
|
||||
rcbsApplicability = new Integer(KIND_APPLY_RCBS_TOOL_BEFORE);
|
||||
rcbsApplicability = KIND_APPLY_RCBS_TOOL_BEFORE;
|
||||
} else if (rcbsApplicabilityStr.equals(APPLY_RCBS_TOOL_AFTER)) {
|
||||
rcbsApplicability = new Integer(KIND_APPLY_RCBS_TOOL_AFTER);
|
||||
rcbsApplicability = KIND_APPLY_RCBS_TOOL_AFTER;
|
||||
} else if (rcbsApplicabilityStr.equals(APPLY_RCBS_TOOL_AS_OVERRIDE)) {
|
||||
rcbsApplicability = new Integer(KIND_APPLY_RCBS_TOOL_AS_OVERRIDE);
|
||||
rcbsApplicability = KIND_APPLY_RCBS_TOOL_AS_OVERRIDE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -694,7 +694,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
|||
* Choices are before, after, or override other tools, or disable rcbs tool.
|
||||
*/
|
||||
if (rcbsApplicability == null || !(rcbsApplicability.intValue() == newValue)) {
|
||||
rcbsApplicability = new Integer(newValue);
|
||||
rcbsApplicability = newValue;
|
||||
setDirty(true);
|
||||
setRebuildState(true);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
@ -135,7 +135,7 @@ public abstract class ResourceInfo extends BuildObject implements IResourceInfo
|
|||
// exclude
|
||||
String excludeStr = element.getAttribute(EXCLUDE);
|
||||
if (excludeStr != null){
|
||||
config.setExcluded(getPath(), isFolderInfo(), ("true".equals(excludeStr))); //$NON-NLS-1$
|
||||
config.setExcluded(getPath(), isFolderInfo(), (Boolean.parseBoolean(excludeStr)));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -168,7 +168,7 @@ public abstract class ResourceInfo extends BuildObject implements IResourceInfo
|
|||
if (element.getAttribute(EXCLUDE) != null) {
|
||||
String excludeStr = element.getAttribute(EXCLUDE);
|
||||
if (excludeStr != null){
|
||||
config.setExcluded(getPath(), isFolderInfo(), ("true".equals(excludeStr))); //$NON-NLS-1$
|
||||
config.setExcluded(getPath(), isFolderInfo(), (Boolean.parseBoolean(excludeStr)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2003, 2012 IBM Corporation and others.
|
||||
* Copyright (c) 2003, 2016 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
|
||||
|
@ -103,10 +103,10 @@ public class Target extends BuildObject implements ITarget {
|
|||
defaultExtension = SafeStringInterner.safeIntern(element.getAttribute(DEFAULT_EXTENSION));
|
||||
|
||||
// isAbstract
|
||||
isAbstract = ("true".equals(element.getAttribute(IS_ABSTRACT))); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(element.getAttribute(IS_ABSTRACT));
|
||||
|
||||
// Is this a test target
|
||||
isTest = ("true".equals(element.getAttribute(IS_TEST))); //$NON-NLS-1$
|
||||
isTest = Boolean.parseBoolean(element.getAttribute(IS_TEST));
|
||||
|
||||
// Get the clean command
|
||||
cleanCommand = SafeStringInterner.safeIntern(element.getAttribute(CLEAN_COMMAND));
|
||||
|
@ -225,11 +225,11 @@ public class Target extends BuildObject implements ITarget {
|
|||
parent = ManagedBuildManager.getTarget(null, parentId);
|
||||
|
||||
// isAbstract
|
||||
if ("true".equals(element.getAttribute(IS_ABSTRACT))) //$NON-NLS-1$
|
||||
if (Boolean.parseBoolean(element.getAttribute(IS_ABSTRACT)))
|
||||
isAbstract = true;
|
||||
|
||||
// Is this a test target
|
||||
isTest = ("true".equals(element.getAttribute(IS_TEST))); //$NON-NLS-1$
|
||||
isTest = Boolean.parseBoolean(element.getAttribute(IS_TEST));
|
||||
|
||||
// Get the clean command
|
||||
if (element.hasAttribute(CLEAN_COMMAND)) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2004, 2016 Intel 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
|
||||
|
@ -30,7 +30,7 @@ import org.osgi.framework.Version;
|
|||
|
||||
public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
||||
|
||||
private static final String EMPTY_STRING = new String();
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
|
||||
// Superclass
|
||||
private ITargetPlatform superClass;
|
||||
|
@ -156,7 +156,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
|||
errorParserIds = new String(targetPlatform.errorParserIds);
|
||||
}
|
||||
if (targetPlatform.isAbstract != null) {
|
||||
isAbstract = Boolean.valueOf(targetPlatform.isAbstract.booleanValue());
|
||||
isAbstract = targetPlatform.isAbstract;
|
||||
}
|
||||
if (targetPlatform.osList != null) {
|
||||
osList = new ArrayList<String>(targetPlatform.osList);
|
||||
|
@ -199,7 +199,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
|||
// isAbstract
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
|
||||
// Get the comma-separated list of valid OS
|
||||
|
@ -267,7 +267,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
|||
if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -527,7 +527,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
|||
*/
|
||||
@Override
|
||||
public void setIsAbstract(boolean b) {
|
||||
isAbstract = Boolean.valueOf(b);
|
||||
isAbstract = b;
|
||||
setDirty(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2003, 2013 IBM Corporation and others.
|
||||
* Copyright (c) 2003, 2016 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
|
||||
|
@ -107,7 +107,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
private static final String DEFAULT_SEPARATOR = ","; //$NON-NLS-1$
|
||||
//private static final IOptionCategory[] EMPTY_CATEGORIES = new IOptionCategory[0];
|
||||
//private static final IOption[] EMPTY_OPTIONS = new IOption[0];
|
||||
private static final String EMPTY_STRING = new String();
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
private static final String EMPTY_QUOTED_STRING = "\"\""; //$NON-NLS-1$
|
||||
private static final String[] EMPTY_STRING_ARRAY = new String[0];
|
||||
private static final String DEFAULT_ANNOUNCEMENT_PREFIX = "Tool.default.announcement"; //$NON-NLS-1$
|
||||
|
@ -396,25 +396,25 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
|
||||
// Copy the remaining attributes
|
||||
if(tool.versionsSupported != null) {
|
||||
versionsSupported = new String(tool.versionsSupported);
|
||||
versionsSupported = tool.versionsSupported;
|
||||
}
|
||||
if(tool.convertToId != null) {
|
||||
convertToId = new String(tool.convertToId);
|
||||
convertToId = tool.convertToId;
|
||||
}
|
||||
if (tool.unusedChildren != null) {
|
||||
unusedChildren = new String(tool.unusedChildren);
|
||||
unusedChildren = tool.unusedChildren;
|
||||
}
|
||||
if (tool.errorParserIds != null) {
|
||||
errorParserIds = new String(tool.errorParserIds);
|
||||
errorParserIds = tool.errorParserIds;
|
||||
}
|
||||
if (tool.isAbstract != null) {
|
||||
isAbstract = Boolean.valueOf(tool.isAbstract.booleanValue());
|
||||
isAbstract = tool.isAbstract;
|
||||
}
|
||||
if (tool.command != null) {
|
||||
command = new String(tool.command);
|
||||
command = tool.command;
|
||||
}
|
||||
if (tool.commandLinePattern != null) {
|
||||
commandLinePattern = new String(tool.commandLinePattern);
|
||||
commandLinePattern = tool.commandLinePattern;
|
||||
}
|
||||
if (tool.inputExtensions != null) {
|
||||
inputExtensions = new ArrayList<String>(tool.inputExtensions);
|
||||
|
@ -423,25 +423,25 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
interfaceExtensions = new ArrayList<String>(tool.interfaceExtensions);
|
||||
}
|
||||
if (tool.natureFilter != null) {
|
||||
natureFilter = new Integer(tool.natureFilter.intValue());
|
||||
natureFilter = tool.natureFilter;
|
||||
}
|
||||
if (tool.outputExtensions != null) {
|
||||
outputExtensions = new String(tool.outputExtensions);
|
||||
outputExtensions = tool.outputExtensions;
|
||||
}
|
||||
if (tool.outputFlag != null) {
|
||||
outputFlag = new String(tool.outputFlag);
|
||||
outputFlag = tool.outputFlag;
|
||||
}
|
||||
if (tool.outputPrefix != null) {
|
||||
outputPrefix = new String(tool.outputPrefix);
|
||||
outputPrefix = tool.outputPrefix;
|
||||
}
|
||||
if (tool.advancedInputCategory != null) {
|
||||
advancedInputCategory = Boolean.valueOf(tool.advancedInputCategory.booleanValue());
|
||||
advancedInputCategory = tool.advancedInputCategory;
|
||||
}
|
||||
if (tool.customBuildStep != null) {
|
||||
customBuildStep = Boolean.valueOf(tool.customBuildStep.booleanValue());
|
||||
customBuildStep = tool.customBuildStep;
|
||||
}
|
||||
if (tool.announcement != null) {
|
||||
announcement = new String(tool.announcement);
|
||||
announcement = tool.announcement;
|
||||
}
|
||||
if (tool.isHidden != null) {
|
||||
isHidden = tool.isHidden;
|
||||
|
@ -701,7 +701,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
// isAbstract
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
|
||||
// Get the semicolon separated list of IDs of the error parsers
|
||||
|
@ -711,13 +711,13 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
String nature = element.getAttribute(NATURE);
|
||||
if (nature != null) {
|
||||
if ("both".equals(nature)) { //$NON-NLS-1$
|
||||
natureFilter = new Integer(FILTER_BOTH);
|
||||
natureFilter = FILTER_BOTH;
|
||||
} else if ("cnature".equals(nature)) { //$NON-NLS-1$
|
||||
natureFilter = new Integer(FILTER_C);
|
||||
natureFilter = FILTER_C;
|
||||
} else if ("ccnature".equals(nature)) { //$NON-NLS-1$
|
||||
natureFilter = new Integer(FILTER_CC);
|
||||
natureFilter = FILTER_CC;
|
||||
} else {
|
||||
natureFilter = new Integer(FILTER_BOTH);
|
||||
natureFilter = FILTER_BOTH;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -757,13 +757,13 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
// Get advancedInputCategory
|
||||
String advInput = element.getAttribute(ITool.ADVANCED_INPUT_CATEGORY);
|
||||
if (advInput != null){
|
||||
advancedInputCategory = Boolean.valueOf("true".equals(advInput)); //$NON-NLS-1$
|
||||
advancedInputCategory = Boolean.parseBoolean(advInput);
|
||||
}
|
||||
|
||||
// Get customBuildStep
|
||||
String cbs = element.getAttribute(ITool.CUSTOM_BUILD_STEP);
|
||||
if (cbs != null){
|
||||
customBuildStep = Boolean.valueOf("true".equals(cbs)); //$NON-NLS-1$
|
||||
customBuildStep = Boolean.parseBoolean(cbs);
|
||||
}
|
||||
|
||||
// Get the announcement text
|
||||
|
@ -842,7 +842,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -866,13 +866,13 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
String nature = element.getAttribute(NATURE);
|
||||
if (nature != null) {
|
||||
if ("both".equals(nature)) { //$NON-NLS-1$
|
||||
natureFilter = new Integer(FILTER_BOTH);
|
||||
natureFilter = FILTER_BOTH;
|
||||
} else if ("cnature".equals(nature)) { //$NON-NLS-1$
|
||||
natureFilter = new Integer(FILTER_C);
|
||||
natureFilter = FILTER_C;
|
||||
} else if ("ccnature".equals(nature)) { //$NON-NLS-1$
|
||||
natureFilter = new Integer(FILTER_CC);
|
||||
natureFilter = FILTER_CC;
|
||||
} else {
|
||||
natureFilter = new Integer(FILTER_BOTH);
|
||||
natureFilter = FILTER_BOTH;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -928,7 +928,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
if (element.getAttribute(ITool.ADVANCED_INPUT_CATEGORY) != null) {
|
||||
String advInput = element.getAttribute(ITool.ADVANCED_INPUT_CATEGORY);
|
||||
if (advInput != null){
|
||||
advancedInputCategory = Boolean.valueOf("true".equals(advInput)); //$NON-NLS-1$
|
||||
advancedInputCategory = Boolean.parseBoolean(advInput);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -936,7 +936,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
if (element.getAttribute(ITool.CUSTOM_BUILD_STEP) != null) {
|
||||
String cbs = element.getAttribute(ITool.CUSTOM_BUILD_STEP);
|
||||
if (cbs != null){
|
||||
customBuildStep = Boolean.valueOf("true".equals(cbs)); //$NON-NLS-1$
|
||||
customBuildStep = Boolean.parseBoolean(cbs);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1673,7 +1673,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
*/
|
||||
@Override
|
||||
public void setIsAbstract(boolean b) {
|
||||
isAbstract = Boolean.valueOf(b);
|
||||
isAbstract = b;
|
||||
setDirty(true);
|
||||
}
|
||||
|
||||
|
@ -2081,9 +2081,9 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
return getSuperClass().getCommandLinePattern();
|
||||
} else {
|
||||
if (getCustomBuildStep()) {
|
||||
return new String(DEFAULT_CBS_PATTERN); // Default pattern
|
||||
return DEFAULT_CBS_PATTERN; // Default pattern
|
||||
} else {
|
||||
return new String(DEFAULT_PATTERN); // Default pattern
|
||||
return DEFAULT_PATTERN; // Default pattern
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2530,7 +2530,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
@Override
|
||||
public void setAdvancedInputCategory(boolean b) {
|
||||
if (advancedInputCategory == null || !(b == advancedInputCategory.booleanValue())) {
|
||||
advancedInputCategory = Boolean.valueOf(b);
|
||||
advancedInputCategory = b;
|
||||
setDirty(true);
|
||||
}
|
||||
}
|
||||
|
@ -2541,7 +2541,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
@Override
|
||||
public void setCustomBuildStep(boolean b) {
|
||||
if (customBuildStep == null || !(b == customBuildStep.booleanValue())) {
|
||||
customBuildStep = Boolean.valueOf(b);
|
||||
customBuildStep = b;
|
||||
setDirty(true);
|
||||
}
|
||||
}
|
||||
|
@ -3087,7 +3087,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
}
|
||||
if (found)
|
||||
return ret.trim();
|
||||
return (new String(command + values)).trim();
|
||||
return (command + values).trim();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2013 Intel Corporation and others.
|
||||
* Copyright (c) 2004, 2016 Intel 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
|
||||
|
@ -66,7 +66,7 @@ import org.osgi.framework.Version;
|
|||
|
||||
public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProvider<ToolChain>, IRealBuildObjectAssociation {
|
||||
|
||||
private static final String EMPTY_STRING = new String();
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
|
||||
private static final String REBUILD_STATE = "rebuildState"; //$NON-NLS-1$
|
||||
|
||||
|
@ -302,7 +302,7 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
|
|||
setSuperClassInternal(toolChain.getSuperClass());
|
||||
if (getSuperClass() != null) {
|
||||
if (toolChain.superClassId != null) {
|
||||
superClassId = new String(toolChain.superClassId);
|
||||
superClassId = toolChain.superClassId;
|
||||
}
|
||||
}
|
||||
setId(Id);
|
||||
|
@ -316,17 +316,17 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
|
|||
|
||||
// Copy the remaining attributes
|
||||
if(toolChain.versionsSupported != null) {
|
||||
versionsSupported = new String(toolChain.versionsSupported);
|
||||
versionsSupported = toolChain.versionsSupported;
|
||||
}
|
||||
if(toolChain.convertToId != null) {
|
||||
convertToId = new String(toolChain.convertToId);
|
||||
convertToId = toolChain.convertToId;
|
||||
}
|
||||
|
||||
if (toolChain.unusedChildren != null) {
|
||||
unusedChildren = new String(toolChain.unusedChildren);
|
||||
unusedChildren = toolChain.unusedChildren;
|
||||
}
|
||||
if (toolChain.errorParserIds != null) {
|
||||
errorParserIds = new String(toolChain.errorParserIds);
|
||||
errorParserIds = toolChain.errorParserIds;
|
||||
}
|
||||
if (toolChain.osList != null) {
|
||||
osList = new ArrayList<String>(toolChain.osList);
|
||||
|
@ -335,16 +335,16 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
|
|||
archList = new ArrayList<String>(toolChain.archList);
|
||||
}
|
||||
if (toolChain.targetToolIds != null) {
|
||||
targetToolIds = new String(toolChain.targetToolIds);
|
||||
targetToolIds = toolChain.targetToolIds;
|
||||
}
|
||||
if (toolChain.secondaryOutputIds != null) {
|
||||
secondaryOutputIds = new String(toolChain.secondaryOutputIds);
|
||||
secondaryOutputIds = toolChain.secondaryOutputIds;
|
||||
}
|
||||
if (toolChain.isAbstract != null) {
|
||||
isAbstract = Boolean.valueOf(toolChain.isAbstract.booleanValue());
|
||||
isAbstract = toolChain.isAbstract;
|
||||
}
|
||||
if (toolChain.scannerConfigDiscoveryProfileId != null) {
|
||||
scannerConfigDiscoveryProfileId = new String(toolChain.scannerConfigDiscoveryProfileId);
|
||||
scannerConfigDiscoveryProfileId = toolChain.scannerConfigDiscoveryProfileId;
|
||||
}
|
||||
|
||||
isRcTypeBasedDiscovery = toolChain.isRcTypeBasedDiscovery;
|
||||
|
@ -545,7 +545,7 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
|
|||
// isAbstract
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
|
||||
// Get the semicolon separated list of IDs of the error parsers
|
||||
|
@ -665,7 +665,7 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
|
|||
if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
|
||||
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
|
||||
if (isAbs != null){
|
||||
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$
|
||||
isAbstract = Boolean.parseBoolean(isAbs);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1390,7 +1390,7 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
|
|||
|
||||
@Override
|
||||
public void setIsAbstract(boolean b) {
|
||||
isAbstract = Boolean.valueOf(b);
|
||||
isAbstract = b;
|
||||
setDirty(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2010 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
@ -306,7 +306,7 @@ public class BuildLanguageData extends CLanguageData {
|
|||
|
||||
/* private IOption[] getOptionsForType(int type){
|
||||
Map map = getTypeToOptionArrayMap();
|
||||
return (IOption[])map.get(new Integer(type));
|
||||
return (IOption[])map.get(Integer.valueOf(type));
|
||||
|
||||
}
|
||||
*/
|
||||
|
|
|
@ -205,7 +205,7 @@ public abstract class AbstractBuildCommandParser extends AbstractLanguageSetting
|
|||
String pattern = template
|
||||
.replace("${COMPILER_PATTERN}", getCompilerPatternExtended())
|
||||
.replace("${EXTENSIONS_PATTERN}", getPatternFileExtensions())
|
||||
.replace("${COMPILER_GROUPS+1}", new Integer(countGroups(getCompilerPatternExtended()) + 1).toString());
|
||||
.replace("${COMPILER_GROUPS+1}", Integer.toString(countGroups(getCompilerPatternExtended()) + 1));
|
||||
return pattern;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2014 Andrew Gvozdev and others.
|
||||
* Copyright (c) 2009, 2016 Andrew Gvozdev 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
|
||||
|
@ -950,7 +950,7 @@ public abstract class AbstractBuiltinSpecsDetector extends AbstractLanguageSetti
|
|||
int result = super.hashCode();
|
||||
result = prime * result + (isConsoleEnabled ? 1231 : 1237);
|
||||
result = prime * result + (isExecuted ? 1231 : 1237);
|
||||
result = prime * result + new Long(envPathHash).hashCode();
|
||||
result = prime * result + Long.valueOf(envPathHash).hashCode();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2015 Intel Corporation and others.
|
||||
* Copyright (c) 2006, 2016 Intel 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
|
||||
|
@ -117,7 +117,7 @@ public class DefaultGCCDependencyCalculator2Commands implements
|
|||
new FileContextData(sourceLocation, outputLocation,
|
||||
null, tool)).length > 0;
|
||||
|
||||
if (needExplicitRuleForFile) genericCommands = Boolean.valueOf(false);
|
||||
if (needExplicitRuleForFile) genericCommands = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -156,7 +156,7 @@ public class DefaultGCCDependencyCalculator2Commands implements
|
|||
*/
|
||||
@Override
|
||||
public boolean areCommandsGeneric() {
|
||||
if (genericCommands == null) genericCommands = Boolean.valueOf(true);
|
||||
if (genericCommands == null) genericCommands = true;
|
||||
return genericCommands.booleanValue();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2006, 2016 Intel 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
|
||||
|
@ -48,7 +48,7 @@ import org.eclipse.core.runtime.IPath;
|
|||
*/
|
||||
public class DefaultGCCDependencyCalculatorPreBuildCommands implements IManagedDependencyPreBuild {
|
||||
|
||||
private static final String EMPTY_STRING = new String();
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
|
||||
// Member variables set by the constructor
|
||||
IPath source;
|
||||
|
@ -121,7 +121,7 @@ public class DefaultGCCDependencyCalculatorPreBuildCommands implements IManagedD
|
|||
new FileContextData(sourceLocation, outputLocation,
|
||||
null, tool)).length > 0;
|
||||
|
||||
if (needExplicitRuleForFile) genericCommands = Boolean.valueOf(false);
|
||||
if (needExplicitRuleForFile) genericCommands = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -158,20 +158,20 @@ public class DefaultGCCDependencyCalculatorPreBuildCommands implements IManagedD
|
|||
if (genericCommands != null) return genericCommands.booleanValue();
|
||||
// If the context is a Configuration, yes
|
||||
if (buildContext instanceof IConfiguration || buildContext instanceof IFolderInfo) {
|
||||
genericCommands = Boolean.valueOf(true);
|
||||
genericCommands = true;
|
||||
return true;
|
||||
}
|
||||
// If the context is a Resource Configuration, determine if it overrides any
|
||||
// of its parent configuration's options that would affect dependency file
|
||||
// generation.
|
||||
// TODO
|
||||
genericCommands = Boolean.valueOf(false);
|
||||
genericCommands = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBuildStepName() {
|
||||
return new String("GCC_DEPENDS"); //$NON-NLS-1$
|
||||
return "GCC_DEPENDS"; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2013 Intel Corporation and others.
|
||||
* Copyright (c) 2004, 2016 Intel 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
|
||||
|
@ -201,7 +201,7 @@ class UpdateManagedProject12 {
|
|||
name = "default"; //$NON-NLS-1$
|
||||
}
|
||||
// Reconstruct the extension
|
||||
String extension = new String();
|
||||
String extension = ""; //$NON-NLS-1$
|
||||
for (int index = 1; index < nameElements.length; ++index) {
|
||||
extension += nameElements[index];
|
||||
if (index < nameElements.length - 1) {
|
||||
|
@ -322,7 +322,7 @@ class UpdateManagedProject12 {
|
|||
}
|
||||
|
||||
// Construct the new ID
|
||||
optId = new String();
|
||||
optId = ""; //$NON-NLS-1$
|
||||
for (int rebuildIndex = 0; rebuildIndex < newIdVector.size(); ++ rebuildIndex) {
|
||||
String token = newIdVector.get(rebuildIndex);
|
||||
optId += token;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2012 Intel Corporation and others.
|
||||
* Copyright (c) 2005, 2016 Intel 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
|
||||
|
@ -40,7 +40,7 @@ import org.eclipse.jface.util.PropertyChangeEvent;
|
|||
*/
|
||||
public class ToolSettingsPrefStore implements IPreferenceStore {
|
||||
public static final String DEFAULT_SEPERATOR = ";"; //$NON-NLS-1$
|
||||
private final static String EMPTY_STRING = new String();
|
||||
private final static String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
|
||||
static ToolSettingsPrefStore store = null;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2015 Alena Laskavaia
|
||||
* Copyright (c) 2009, 2016 Alena Laskavaia
|
||||
* 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
|
||||
|
@ -111,7 +111,7 @@ public class CheckerTestCase extends CodanTestCase {
|
|||
line = (Integer) m.getAttribute(IMarker.LINE_NUMBER);
|
||||
if (line == null || line.equals(-1)) {
|
||||
Object pos = m.getAttribute(IMarker.CHAR_START);
|
||||
line = new Integer(pos2line(((Integer) pos).intValue()));
|
||||
line = pos2line(((Integer) pos).intValue());
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
fail(e.getMessage());
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2012 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -142,7 +142,7 @@ public class ObjectMapTest extends TestCase {
|
|||
public void testMapAdd() {
|
||||
CharArrayObjectMap map = new CharArrayObjectMap(4);
|
||||
char[] key1 = "key1".toCharArray();
|
||||
Object value1 = new Integer(43);
|
||||
Integer value1 = 43;
|
||||
map.put(key1, value1);
|
||||
|
||||
char[] key2 = "key1".toCharArray();
|
||||
|
@ -150,7 +150,7 @@ public class ObjectMapTest extends TestCase {
|
|||
assertEquals(value1, value2);
|
||||
|
||||
for (int i = 0; i < 25; ++i) {
|
||||
map.put(("ikey" + i).toCharArray(), new Integer(i));
|
||||
map.put(("ikey" + i).toCharArray(), Integer.valueOf(i));
|
||||
}
|
||||
|
||||
for (int i = 0; i < 25; ++i) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2006 IBM Corporation and others.
|
||||
* Copyright (c) 2005, 2016 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
|
||||
|
@ -81,8 +81,8 @@ public class XMLDumper {
|
|||
clsName = clsName.replace('$', '.');
|
||||
|
||||
Element element = document.createElement(clsName);
|
||||
map.put(obj, new Integer(id));
|
||||
element.setAttribute("id",String.valueOf(id++)); //$NON-NLS-1$
|
||||
map.put(obj, Integer.valueOf(id));
|
||||
element.setAttribute("id",Integer.toString(id++)); //$NON-NLS-1$
|
||||
|
||||
Field [] fields = cls.getDeclaredFields();
|
||||
for (int i = 0; i < fields.length; ++i) {
|
||||
|
|
|
@ -6865,8 +6865,8 @@ public class AST2TemplateTests extends AST2TestBase {
|
|||
ICPPSpecialization buffRef = assertionHelper.assertNonProblem("myA.buff[0] = 1;", "buff", ICPPSpecialization.class);
|
||||
|
||||
assertEquals(buff, buffRef.getSpecializedBinding());
|
||||
assertEquals(buffRef.getTemplateParameterMap().getArgument(0).getNonTypeValue().numericalValue(), new Long(4));
|
||||
assertEquals(buffRef.getTemplateParameterMap().getArgument(1).getNonTypeValue().numericalValue(), new Long(5));
|
||||
assertEquals(Long.valueOf(4),buffRef.getTemplateParameterMap().getArgument(0).getNonTypeValue().numericalValue());
|
||||
assertEquals(Long.valueOf(5),buffRef.getTemplateParameterMap().getArgument(1).getNonTypeValue().numericalValue());
|
||||
}
|
||||
|
||||
// template<typename T, int Size>
|
||||
|
@ -6890,7 +6890,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
|||
|
||||
assertEquals(buff, buffRef.getSpecializedBinding());
|
||||
assertSameType(buffRef.getTemplateParameterMap().getArgument(0).getTypeValue(), new CPPBasicType(IBasicType.Kind.eInt, 0));
|
||||
assertEquals(buffRef.getTemplateParameterMap().getArgument(1).getNonTypeValue().numericalValue(), new Long(5));
|
||||
assertEquals(Long.valueOf(5),buffRef.getTemplateParameterMap().getArgument(1).getNonTypeValue().numericalValue());
|
||||
}
|
||||
|
||||
// template<typename T>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2012 IBM Corporation and others.
|
||||
* Copyright (c) 2007, 2016 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
|
||||
|
@ -69,7 +69,7 @@ public class CharArrayMapTest extends TestCase {
|
|||
}
|
||||
assertEquals(keys.length, map.size());
|
||||
for(int i = 0; i < keys.length; i++) {
|
||||
assertEquals(new Integer(i), map.get(keys[i]));
|
||||
assertEquals(Integer.valueOf(i), map.get(keys[i]));
|
||||
}
|
||||
return System.currentTimeMillis() - start;
|
||||
}
|
||||
|
@ -78,11 +78,11 @@ public class CharArrayMapTest extends TestCase {
|
|||
long start = System.currentTimeMillis();
|
||||
CharArrayObjectMap oldMap = new CharArrayObjectMap(keys.length);
|
||||
for(int i = 0; i < keys.length; i++) {
|
||||
oldMap.put(keys[i], new Integer(i));
|
||||
oldMap.put(keys[i], Integer.valueOf(i));
|
||||
}
|
||||
assertEquals(keys.length, oldMap.size());
|
||||
for(int i = 0; i < keys.length; i++) {
|
||||
assertEquals(new Integer(i), oldMap.get(keys[i]));
|
||||
assertEquals(Integer.valueOf(i), oldMap.get(keys[i]));
|
||||
}
|
||||
return System.currentTimeMillis() - start;
|
||||
}
|
||||
|
@ -105,10 +105,10 @@ public class CharArrayMapTest extends TestCase {
|
|||
assertFalse(map.isEmpty());
|
||||
assertEquals(4, map.size());
|
||||
|
||||
assertEquals(new Integer(1), map.get(key1));
|
||||
assertEquals(new Integer(2), map.get(key2));
|
||||
assertEquals(new Integer(3), map.get(key3));
|
||||
assertEquals(new Integer(4), map.get(key4));
|
||||
assertEquals(Integer.valueOf(1), map.get(key1));
|
||||
assertEquals(Integer.valueOf(2), map.get(key2));
|
||||
assertEquals(Integer.valueOf(3), map.get(key3));
|
||||
assertEquals(Integer.valueOf(4), map.get(key4));
|
||||
|
||||
assertTrue(map.containsKey(key1));
|
||||
assertTrue(map.containsKey(key2));
|
||||
|
@ -131,7 +131,7 @@ public class CharArrayMapTest extends TestCase {
|
|||
}
|
||||
|
||||
// remove a mapping
|
||||
assertEquals(new Integer(1), map.remove(key1));
|
||||
assertEquals(Integer.valueOf(1), map.remove(key1));
|
||||
assertEquals(3, map.size());
|
||||
assertNull(map.get(key1));
|
||||
assertFalse(map.containsKey(key1));
|
||||
|
@ -152,13 +152,13 @@ public class CharArrayMapTest extends TestCase {
|
|||
// overrideing values should
|
||||
map.put(key1, 100);
|
||||
assertEquals(1, map.size());
|
||||
assertEquals(new Integer(100), map.get(key1));
|
||||
assertEquals(Integer.valueOf(100), map.get(key1));
|
||||
assertTrue(map.containsValue(100));
|
||||
assertFalse(map.containsValue(null));
|
||||
// override the value
|
||||
map.put(key1, 200);
|
||||
assertEquals(1, map.size());
|
||||
assertEquals(new Integer(200), map.get(key1));
|
||||
assertEquals(Integer.valueOf(200), map.get(key1));
|
||||
assertTrue(map.containsValue(200));
|
||||
assertFalse(map.containsValue(100));
|
||||
}
|
||||
|
@ -201,8 +201,8 @@ public class CharArrayMapTest extends TestCase {
|
|||
// should still work with equivalent keys
|
||||
for(int i = 0; i < keys.length; i++) {
|
||||
Slice slice = slices[i];
|
||||
assertEquals(new Integer(i), map.get(slice.chars, slice.start, slice.length));
|
||||
assertEquals(new Integer(i), map.get(keys[i]));
|
||||
assertEquals(Integer.valueOf(i), map.get(slice.chars, slice.start, slice.length));
|
||||
assertEquals(Integer.valueOf(i), map.get(keys[i]));
|
||||
assertTrue(map.containsKey(slice.chars, slice.start, slice.length));
|
||||
assertTrue(map.containsKey(keys[i]));
|
||||
assertTrue(map.containsValue(i));
|
||||
|
@ -226,8 +226,8 @@ public class CharArrayMapTest extends TestCase {
|
|||
// remaining keys should still be there
|
||||
for(int i = 0; i < 5; i++) {
|
||||
Slice slice = slices[i];
|
||||
assertEquals(new Integer(i), map.get(slice.chars, slice.start, slice.length));
|
||||
assertEquals(new Integer(i), map.get(keys[i]));
|
||||
assertEquals(Integer.valueOf(i), map.get(slice.chars, slice.start, slice.length));
|
||||
assertEquals(Integer.valueOf(i), map.get(keys[i]));
|
||||
assertTrue(map.containsKey(slice.chars, slice.start, slice.length));
|
||||
assertTrue(map.containsKey(keys[i]));
|
||||
assertTrue(map.containsValue(i));
|
||||
|
@ -283,7 +283,7 @@ public class CharArrayMapTest extends TestCase {
|
|||
public void testProperFail() {
|
||||
char[] hello = "hello".toCharArray();
|
||||
CharArrayMap<Integer> map = new CharArrayMap<Integer>();
|
||||
Integer value = new Integer(9);
|
||||
Integer value = 9;
|
||||
|
||||
try {
|
||||
map.put(null, value);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2015 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -142,7 +142,7 @@ public class PortedScannerTests extends PreprocessorTestsBase {
|
|||
}
|
||||
|
||||
public int symbolValue(int index) {
|
||||
return new Long(Math.round(Math.pow(index, index))).intValue();
|
||||
return Long.valueOf(Math.round(Math.pow(index, index))).intValue();
|
||||
}
|
||||
|
||||
public String generateCode() {
|
||||
|
@ -190,7 +190,7 @@ public class PortedScannerTests extends PreprocessorTestsBase {
|
|||
|
||||
public TruthTable(int n) {
|
||||
numberOfVariables = n;
|
||||
numberOfRows = new Long(Math.round(Math.pow(2, n))).intValue();
|
||||
numberOfRows = Long.valueOf(Math.round(Math.pow(2, n))).intValue();
|
||||
|
||||
rows = new TableRow[numberOfRows];
|
||||
for (int i = 0; i < numberOfRows; ++i) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2015 Symbian Software Systems and others.
|
||||
* Copyright (c) 2006, 2016 Symbian Software Systems 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
|
||||
|
@ -146,7 +146,7 @@ public class BTreeTests extends BaseTestCase {
|
|||
System.out.print("\t " + seed + " " + (nIterations/1000) + "K: ");
|
||||
for (int i = 0; i < nIterations; i++) {
|
||||
if (random.nextDouble() < pInsert) {
|
||||
Integer value = new Integer(random.nextInt(Integer.MAX_VALUE));
|
||||
Integer value = random.nextInt(Integer.MAX_VALUE);
|
||||
boolean newEntry = expected.add(value);
|
||||
if (newEntry) {
|
||||
BTMockRecord btValue = new BTMockRecord(db, value.intValue());
|
||||
|
@ -160,7 +160,7 @@ public class BTreeTests extends BaseTestCase {
|
|||
int index = random.nextInt(history.size());
|
||||
BTMockRecord btValue = (BTMockRecord) history.get(index);
|
||||
history.remove(index);
|
||||
expected.remove(new Integer(btValue.intValue()));
|
||||
expected.remove(Integer.valueOf(btValue.intValue()));
|
||||
if (DEBUG > 1)
|
||||
System.out.println("Remove: " + btValue.intValue() + " @ " + btValue.record);
|
||||
btree.delete(btValue.getRecord());
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2014 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
@ -99,7 +99,7 @@ public class CDataUtil {
|
|||
}
|
||||
|
||||
public static String genId(String baseId) {
|
||||
String suffix = new Integer(genRandomNumber()).toString();
|
||||
String suffix = Integer.toString(genRandomNumber());
|
||||
return baseId != null ?
|
||||
new StringBuilder(baseId).append(".").append(suffix).toString() : //$NON-NLS-1$
|
||||
suffix;
|
||||
|
@ -1131,7 +1131,7 @@ public class CDataUtil {
|
|||
}
|
||||
|
||||
public static void setInteger(ICStorageElement el, String attr, int value) {
|
||||
el.setAttribute(attr, new Integer(value).toString());
|
||||
el.setAttribute(attr, Integer.toString(value));
|
||||
}
|
||||
|
||||
public static ICExclusionPatternPathEntry addRemoveExclusionsToEntry(ICExclusionPatternPathEntry entry, IPath[] paths, boolean add) throws IllegalArgumentException{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2013 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
@ -376,7 +376,7 @@ public class SettingsSet {
|
|||
for (EntryInfo info : level.getInfos()) {
|
||||
EntryNameKey key = info.getContentsKey();
|
||||
if (!map.containsKey(key))
|
||||
map.put(key, new Object[]{new Integer(l), info.getEntry()});
|
||||
map.put(key, new Object[]{Integer.valueOf(l), info.getEntry()});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2013 Wind River Systems, Inc. and others. All rights reserved.
|
||||
* Copyright (c) 2007, 2016 Wind River Systems, Inc. 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 http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -36,7 +36,7 @@ public class ASTCache {
|
|||
/**
|
||||
* Tells whether this class is in debug mode.
|
||||
*/
|
||||
private static final boolean DEBUG= "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.cdt.core/debug/ASTCache")); //$NON-NLS-1$//$NON-NLS-2$
|
||||
private static final boolean DEBUG= Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.cdt.core/debug/ASTCache")); //$NON-NLS-1$
|
||||
private static final String DEBUG_PREFIX= "[ASTCache] "; //$NON-NLS-1$
|
||||
|
||||
/** Fast parse mode (use PDOM) */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2015 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2015 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -570,7 +570,7 @@ public class PathEntryUtil {
|
|||
try {
|
||||
IMarker marker = project.createMarker(ICModelMarker.PATHENTRY_PROBLEM_MARKER);
|
||||
marker.setAttributes(new String[]{IMarker.MESSAGE, IMarker.SEVERITY, IMarker.LOCATION,
|
||||
ICModelMarker.PATHENTRY_FILE_FORMAT,}, new Object[]{status.getMessage(), new Integer(severity), "pathentry",//$NON-NLS-1$
|
||||
ICModelMarker.PATHENTRY_FILE_FORMAT,}, new Object[]{status.getMessage(), Integer.valueOf(severity), "pathentry",//$NON-NLS-1$
|
||||
"false",//$NON-NLS-1$
|
||||
});
|
||||
} catch (CoreException e) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2002, 2013 IBM Corporation and others.
|
||||
* Copyright (c) 2002, 2016 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
|
||||
|
@ -205,7 +205,7 @@ public class Util implements ICLogConstants {
|
|||
// Time stamp
|
||||
if (addTimeStamp)
|
||||
message = MessageFormat.format("[{0}] {1}", new Object[]{ //$NON-NLS-1$
|
||||
new Long(System.currentTimeMillis()), message});
|
||||
Long.valueOf(System.currentTimeMillis()), message});
|
||||
while (message.length() > 100) {
|
||||
String partial = message.substring(0, 100);
|
||||
message = message.substring(100);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
@ -236,7 +236,7 @@ public class CLanguageSetting extends CDataProxy implements
|
|||
for(int i = 0; i < entries.length; i++){
|
||||
ICLanguageSettingEntry entry = entries[i];
|
||||
if(entry != null){
|
||||
Integer iKind = new Integer(entry.getKind());
|
||||
Integer iKind = Integer.valueOf(entry.getKind());
|
||||
List[] addedRemovedListArr = (List[])map.get(iKind);
|
||||
if(addedRemovedListArr == null){
|
||||
addedRemovedListArr = new List[2];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2011 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2016 Intel 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
|
||||
|
@ -38,7 +38,7 @@ public class CProjectDescriptionPreferences implements ICProjectDescriptionPrefe
|
|||
fIsReadOnly = isReadOnly;
|
||||
if(el != null){
|
||||
if(el.getAttribute(ATTR_CONFIG_RELATIONS) != null)
|
||||
fConfigRelations = new Integer(CDataUtil.getInteger(el, ATTR_CONFIG_RELATIONS, DEFAULT_RELATIONS));
|
||||
fConfigRelations = Integer.valueOf(CDataUtil.getInteger(el, ATTR_CONFIG_RELATIONS, DEFAULT_RELATIONS));
|
||||
}
|
||||
|
||||
this.fSuperPreference = superPreference;
|
||||
|
@ -77,7 +77,7 @@ public class CProjectDescriptionPreferences implements ICProjectDescriptionPrefe
|
|||
if(fConfigRelations != null && fConfigRelations.intValue() == status)
|
||||
return;
|
||||
|
||||
fConfigRelations = new Integer(status);
|
||||
fConfigRelations = Integer.valueOf(status);
|
||||
fIsModified = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2012 IBM Corporation and others.
|
||||
* Copyright (c) 2007, 2016 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
|
||||
|
@ -35,7 +35,7 @@ import java.util.TreeMap;
|
|||
*
|
||||
* ex:
|
||||
* char[] key = "one two three".toCharArray();
|
||||
* map.put(key, 4, 3, new Integer(99));
|
||||
* map.put(key, 4, 3, Integer.valueOf(99));
|
||||
* map.get(key, 4, 3); // returns 99
|
||||
* map.get("two".toCharArray()); // returns 99
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2015 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -30,73 +30,73 @@ public class ASTProblem extends ASTNode implements IASTProblem {
|
|||
protected static final Map<Integer, String> errorMessages;
|
||||
static {
|
||||
errorMessages = new HashMap<Integer, String>();
|
||||
errorMessages.put(new Integer(PREPROCESSOR_POUND_ERROR),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_POUND_ERROR),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.error")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_POUND_WARNING),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_POUND_WARNING),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.warning")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_INCLUSION_NOT_FOUND),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_INCLUSION_NOT_FOUND),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.inclusionNotFound")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_DEFINITION_NOT_FOUND),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_DEFINITION_NOT_FOUND),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.definitionNotFound")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_INVALID_MACRO_DEFN),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_INVALID_MACRO_DEFN),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.invalidMacroDefn")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_INVALID_MACRO_REDEFN),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_INVALID_MACRO_REDEFN),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.invalidMacroRedefn")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_UNBALANCE_CONDITION),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_UNBALANCE_CONDITION),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.unbalancedConditional")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_CONDITIONAL_EVAL_ERROR),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_CONDITIONAL_EVAL_ERROR),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.conditionalEval")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_MACRO_USAGE_ERROR),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_MACRO_USAGE_ERROR),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.macroUsage")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_CIRCULAR_INCLUSION),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_CIRCULAR_INCLUSION),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.circularInclusion")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_INVALID_DIRECTIVE),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_INVALID_DIRECTIVE),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.invalidDirective")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_MACRO_PASTING_ERROR),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_MACRO_PASTING_ERROR),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.macroPasting")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_MISSING_RPAREN_PARMLIST),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_MISSING_RPAREN_PARMLIST),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.missingRParen")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_INVALID_VA_ARGS),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_INVALID_VA_ARGS),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.invalidVaArgs")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_INVALID_ESCAPECHAR),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_INVALID_ESCAPECHAR),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.invalidEscapeChar")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_UNBOUNDED_STRING),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_UNBOUNDED_STRING),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.unboundedString")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_BAD_FLOATING_POINT),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_BAD_FLOATING_POINT),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.badFloatingPoint")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_BAD_BINARY_FORMAT),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_BAD_BINARY_FORMAT),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.badBinaryFormat")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_BAD_HEX_FORMAT),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_BAD_HEX_FORMAT),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.badHexFormat")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_BAD_OCTAL_FORMAT),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_BAD_OCTAL_FORMAT),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.badOctalFormat")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_BAD_DECIMAL_FORMAT),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_BAD_DECIMAL_FORMAT),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.badDecimalFormat")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_ASSIGNMENT_NOT_ALLOWED),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_ASSIGNMENT_NOT_ALLOWED),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.assignmentNotAllowed")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_DIVIDE_BY_ZERO),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_DIVIDE_BY_ZERO),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.divideByZero")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_MISSING_R_PAREN),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_MISSING_R_PAREN),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.missingRParen")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_EXPRESSION_SYNTAX_ERROR),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_EXPRESSION_SYNTAX_ERROR),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.expressionSyntaxError")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_ILLEGAL_IDENTIFIER),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_ILLEGAL_IDENTIFIER),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.illegalIdentifier")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_BAD_CONDITIONAL_EXPRESSION),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_BAD_CONDITIONAL_EXPRESSION),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.badConditionalExpression")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_UNEXPECTED_EOF),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_UNEXPECTED_EOF),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.unexpectedEOF")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_BAD_CHARACTER),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_BAD_CHARACTER),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.badCharacter")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_CONSTANT_WITH_BAD_SUFFIX),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_CONSTANT_WITH_BAD_SUFFIX),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.constantWithBadSuffix")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SCANNER_FLOAT_WITH_BAD_PREFIX),
|
||||
errorMessages.put(Integer.valueOf(SCANNER_FLOAT_WITH_BAD_PREFIX),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.scanner.floatWithBadPrefix")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(PREPROCESSOR_MULTIPLE_USER_DEFINED_SUFFIXES_IN_CONCATENATION),
|
||||
errorMessages.put(Integer.valueOf(PREPROCESSOR_MULTIPLE_USER_DEFINED_SUFFIXES_IN_CONCATENATION),
|
||||
ParserMessages.getString("ScannerProblemFactory.error.preproc.multipleUserDefinedLiteralSuffixesOnStringLiteral")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(SYNTAX_ERROR),
|
||||
errorMessages.put(Integer.valueOf(SYNTAX_ERROR),
|
||||
ParserMessages.getString("ParserProblemFactory.error.syntax.syntaxError")); //$NON-NLS-1$
|
||||
errorMessages.put(new Integer(MISSING_SEMICOLON),
|
||||
errorMessages.put(Integer.valueOf(MISSING_SEMICOLON),
|
||||
ParserMessages.getString("ParserProblemFactory.error.syntax.missingSemicolon")); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
@ -154,12 +154,12 @@ public class ASTProblem extends ASTNode implements IASTProblem {
|
|||
|
||||
char[] file= getOriginatingFileName();
|
||||
int line= getSourceLineNumber();
|
||||
Object[] args = new Object[] { msg, new String(file), new Integer(line) };
|
||||
Object[] args = new Object[] { msg, new String(file), Integer.valueOf(line) };
|
||||
return ParserMessages.getFormattedString("BaseProblemFactory.problemPattern", args); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public static String getMessage(int id, String arg) {
|
||||
String msg = errorMessages.get(new Integer(id));
|
||||
String msg = errorMessages.get(Integer.valueOf(id));
|
||||
if (msg == null)
|
||||
msg = ""; //$NON-NLS-1$
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2015 QNX Software Systems and others.
|
||||
* Copyright (c) 2007, 2016 QNX Software Systems 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
|
||||
|
@ -157,7 +157,7 @@ public class IndexCPPSignatureUtil {
|
|||
*/
|
||||
public static Integer getSignatureHash(IBinding binding) throws CoreException, DOMException {
|
||||
String sig = getSignature(binding);
|
||||
return sig.length() == 0 ? null : new Integer(sig.hashCode());
|
||||
return sig.length() == 0 ? null : Integer.valueOf(sig.hashCode());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2014 Symbian Software Systems and others.
|
||||
* Copyright (c) 2007, 2016 Symbian Software Systems 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
|
||||
|
@ -178,7 +178,7 @@ public final class IndexProviderManager implements IElementChangedListener {
|
|||
}
|
||||
|
||||
public int getOption(IConfigurationElement elem, String attributeName, int option) {
|
||||
if ("true".equals(elem.getAttribute(attributeName))) //$NON-NLS-1$
|
||||
if (Boolean.parseBoolean(elem.getAttribute(attributeName)))
|
||||
return option;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -153,4 +153,4 @@ public final class IncludeSearchPathElement {
|
|||
public String toString() {
|
||||
return fPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2015 QNX Software Systems and others.
|
||||
* Copyright (c) 2005, 2016 QNX Software Systems 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
|
||||
|
@ -197,7 +197,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
boolean fTraceIndexerSetup;
|
||||
|
||||
public PDOMManager() {
|
||||
PDOM.sDEBUG_LOCKS= "true".equals(Platform.getDebugOption(CCorePlugin.PLUGIN_ID + "/debug/index/locks")); //$NON-NLS-1$//$NON-NLS-2$
|
||||
PDOM.sDEBUG_LOCKS= Boolean.parseBoolean(Platform.getDebugOption(CCorePlugin.PLUGIN_ID + "/debug/index/locks")); //$NON-NLS-1$
|
||||
addIndexerSetupParticipant(new WaitForRefreshJobs());
|
||||
fProjectDescriptionListener= new CProjectDescriptionListener(this);
|
||||
fJobChangeListener= new JobChangeListener(this);
|
||||
|
@ -596,7 +596,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
boolean resume= false;
|
||||
pdom.acquireReadLock();
|
||||
try {
|
||||
resume= "true".equals(pdom.getProperty(IIndexFragment.PROPERTY_RESUME_INDEXER)); //$NON-NLS-1$
|
||||
resume= Boolean.parseBoolean(pdom.getProperty(IIndexFragment.PROPERTY_RESUME_INDEXER));
|
||||
} finally {
|
||||
pdom.releaseReadLock();
|
||||
}
|
||||
|
@ -1185,8 +1185,8 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
}
|
||||
|
||||
String msg= MessageFormat.format(Messages.PDOMManager_indexMonitorDetail, new Object[] {
|
||||
new Integer(sourceCount), new Integer(sourceEstimate),
|
||||
new Integer(headerCount)});
|
||||
Integer.valueOf(sourceCount), Integer.valueOf(sourceEstimate),
|
||||
Integer.valueOf(headerCount)});
|
||||
if (detail != null) {
|
||||
msg += ": " + detail; //$NON-NLS-1$
|
||||
}
|
||||
|
@ -1557,7 +1557,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
* @throws CoreException in case of a file access or other internal error
|
||||
*/
|
||||
public IStatus getProjectContentSyncState(ICProject cproject) throws CoreException {
|
||||
if (!"true".equals(IndexerPreferences.get(cproject.getProject(), IndexerPreferences.KEY_INDEX_ALL_FILES, null))) //$NON-NLS-1$
|
||||
if (!Boolean.parseBoolean(IndexerPreferences.get(cproject.getProject(), IndexerPreferences.KEY_INDEX_ALL_FILES, null)))
|
||||
return null; // No check is performed in this case
|
||||
|
||||
Set<ITranslationUnit> sources= new HashSet<>();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2013 QNX Software Systems and others.
|
||||
* Copyright (c) 2005, 2016 QNX Software Systems 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
|
||||
|
@ -314,7 +314,7 @@ public class BTree {
|
|||
}
|
||||
throw new BTreeKeyNotFoundException(
|
||||
MessageFormat.format(Messages.getString("BTree.DeletionOnAbsentKey"), //$NON-NLS-1$
|
||||
new Object[] { new Long(key), new Integer(mode) }));
|
||||
new Object[] { Long.valueOf(key), Integer.valueOf(mode) }));
|
||||
}
|
||||
} else {
|
||||
if (keyIndexInNode != -1) {
|
||||
|
@ -407,7 +407,7 @@ public class BTree {
|
|||
|
||||
throw new BTreeKeyNotFoundException(
|
||||
MessageFormat.format(Messages.getString("BTree.DeletionOnAbsentKey"), //$NON-NLS-1$
|
||||
new Object[]{new Long(key), new Integer(mode)}));
|
||||
new Object[]{Long.valueOf(key), Integer.valueOf(mode)}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -664,14 +664,14 @@ public class BTree {
|
|||
if (!full && !empty) {
|
||||
valid = false;
|
||||
msg += MessageFormat.format(Messages.getString("BTree.IntegrityErrorA"), //$NON-NLS-1$
|
||||
new Object[] { new Long(node), new Integer(indexFirstBlankKey), new Integer(indexLastNonBlankKey) });
|
||||
new Object[] { Long.valueOf(node), Integer.valueOf(indexFirstBlankKey), Integer.valueOf(indexLastNonBlankKey) });
|
||||
}
|
||||
}
|
||||
|
||||
// Check: Key number constrains child numbers
|
||||
if (childCount != 0 && childCount != keyCount + 1) {
|
||||
valid = false;
|
||||
msg += MessageFormat.format(Messages.getString("BTree.IntegrityErrorB"), new Object[] { new Long(node) }); //$NON-NLS-1$
|
||||
msg += MessageFormat.format(Messages.getString("BTree.IntegrityErrorB"), new Object[] { Long.valueOf(node) }); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// The root node is excused from the remaining node constraints.
|
||||
|
@ -682,13 +682,13 @@ public class BTree {
|
|||
// Check: Non-root nodes must have a keyCount within a certain range
|
||||
if (keyCount < MIN_RECORDS || keyCount > MAX_RECORDS) {
|
||||
valid = false;
|
||||
msg += MessageFormat.format(Messages.getString("BTree.IntegrityErrorC"), new Object[] { new Long(node) }); //$NON-NLS-1$
|
||||
msg += MessageFormat.format(Messages.getString("BTree.IntegrityErrorC"), new Object[] { Long.valueOf(node) }); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// Check: All leaf nodes are at the same depth
|
||||
if (childCount == 0) {
|
||||
if (leafDepth == null) {
|
||||
leafDepth = new Integer(depth);
|
||||
leafDepth = Integer.valueOf(depth);
|
||||
}
|
||||
if (depth != leafDepth.intValue()) {
|
||||
valid = false;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2014 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2007, 2016 Wind River Systems, Inc. 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
|
||||
|
@ -182,7 +182,7 @@ public class IndexerPreferences {
|
|||
private static void migrateProperties(Properties props) {
|
||||
if (props.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG) == null) {
|
||||
// backward compatibility
|
||||
if ("true".equals(props.get(KEY_INDEX_ALL_FILES))) { //$NON-NLS-1$
|
||||
if (Boolean.parseBoolean((String) props.get(KEY_INDEX_ALL_FILES))) {
|
||||
props.put(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG, "true"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
@ -427,18 +427,18 @@ public class IndexerPreferences {
|
|||
public static boolean preferDefaultLanguage(IProject project) {
|
||||
IPreferencesService prefService = Platform.getPreferencesService();
|
||||
Preferences[] prefs= IndexerPreferences.getPreferences(project);
|
||||
if ("true".equals(prefService.get(KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG, null, prefs)) && //$NON-NLS-1$
|
||||
"true".equals(prefService.get(KEY_INDEX_ALL_FILES, null, prefs)) && //$NON-NLS-1$
|
||||
!"true".equals(prefService.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG, null, prefs))) { //$NON-NLS-1$
|
||||
if (Boolean.parseBoolean(prefService.get(KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG, null, prefs)) &&
|
||||
Boolean.parseBoolean(prefService.get(KEY_INDEX_ALL_FILES, null, prefs)) &&
|
||||
!Boolean.parseBoolean(prefService.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG, null, prefs))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean preferDefaultLanguage(Properties props) {
|
||||
if ("true".equals(props.get(KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG)) && //$NON-NLS-1$
|
||||
"true".equals(props.get(KEY_INDEX_ALL_FILES)) && //$NON-NLS-1$
|
||||
!"true".equals(props.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG))) { //$NON-NLS-1$
|
||||
if (Boolean.parseBoolean((String) props.get(KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG)) &&
|
||||
Boolean.parseBoolean((String) props.get(KEY_INDEX_ALL_FILES)) &&
|
||||
!Boolean.parseBoolean((String) props.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2014 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2006, 2016 Wind River Systems, Inc. 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
|
||||
|
@ -320,7 +320,7 @@ public abstract class PDOMIndexerTask extends AbstractIndexerTask implements IPD
|
|||
+ hits + " hits, " //$NON-NLS-1$
|
||||
+ misses + "(" + nfPercent.format(missPct) + ") misses."); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
if ("true".equals(System.getProperty("SHOW_COMPRESSED_INDEXER_INFO"))) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||
if (Boolean.parseBoolean(System.getProperty("SHOW_COMPRESSED_INDEXER_INFO"))) { //$NON-NLS-1$
|
||||
Calendar cal = Calendar.getInstance();
|
||||
NumberFormat twoDigits= NumberFormat.getNumberInstance();
|
||||
twoDigits.setMinimumIntegerDigits(2);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2014 Google, Inc and others.
|
||||
* Copyright (c) 2007, 2016 Google, Inc 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
|
||||
|
@ -180,10 +180,10 @@ public class TodoTaskUpdater implements ITodoTaskUpdater {
|
|||
TASK_MARKER_ATTRIBUTE_NAMES,
|
||||
new Object[] {
|
||||
description,
|
||||
new Integer(task.getPriority()),
|
||||
new Integer(task.getStart()),
|
||||
new Integer(task.getEnd()),
|
||||
new Integer(task.getLineNumber()),
|
||||
Integer.valueOf(task.getPriority()),
|
||||
Integer.valueOf(task.getStart()),
|
||||
Integer.valueOf(task.getEnd()),
|
||||
Integer.valueOf(task.getLineNumber()),
|
||||
Boolean.FALSE,
|
||||
SOURCE_ID
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2012, 2013 Andrew Gvozdev and others.
|
||||
* Copyright (c) 2012, 2016 Andrew Gvozdev 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
|
||||
|
@ -285,7 +285,7 @@ public class BuildRunnerHelper implements Closeable {
|
|||
|
||||
isCancelled = monitor.isCanceled();
|
||||
if (!isCancelled && project != null) {
|
||||
project.setSessionProperty(progressPropertyName, new Integer(streamProgressMonitor.getWorkDone()));
|
||||
project.setSessionProperty(progressPropertyName, Integer.valueOf(streamProgressMonitor.getWorkDone()));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
CCorePlugin.log(e);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2014 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2006, 2016 Wind River Systems, Inc. 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
|
||||
|
@ -189,7 +189,7 @@ public class PositionTrackerManager implements IPositionTrackerManager, IFileBuf
|
|||
private synchronized void addChain(SortedMap<Long, List<PositionTrackerChain>> map, PositionTrackerChain chain) {
|
||||
long or= chain.getOldestRetirement();
|
||||
if (or != Long.MAX_VALUE) {
|
||||
Long lor= new Long(or);
|
||||
Long lor= Long.valueOf(or);
|
||||
List<PositionTrackerChain> list= map.get(lor);
|
||||
if (list == null) {
|
||||
list= new LinkedList<PositionTrackerChain>();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2002, 2011 IBM Corporation and others.
|
||||
* Copyright (c) 2002, 2016 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
|
||||
|
@ -56,7 +56,7 @@ public class ParserLogService extends AbstractParserLogService implements ICance
|
|||
|
||||
@Override
|
||||
public boolean isTracing(String option) {
|
||||
return "true".equals(Platform.getDebugOption(option)); //$NON-NLS-1$
|
||||
return Boolean.parseBoolean(Platform.getDebugOption(option));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2008, 2012 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2008, 2016 Wind River Systems, Inc. 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
|
||||
|
@ -135,7 +135,7 @@ class ResourceLookupTree implements IResourceChangeListener, IResourceDeltaVisit
|
|||
}
|
||||
};
|
||||
fUnrefJob.setSystem(true);
|
||||
fTrace= "true".equals(Platform.getDebugOption(CCorePlugin.PLUGIN_ID + "/debug/resourceLookup")); //$NON-NLS-1$//$NON-NLS-2$
|
||||
fTrace= Boolean.parseBoolean(Platform.getDebugOption(CCorePlugin.PLUGIN_ID + "/debug/resourceLookup")); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public void startup() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2015 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2006, 2016 Wind River Systems, Inc. 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
|
||||
|
@ -171,7 +171,7 @@ import org.eclipse.text.edits.TextEdit;
|
|||
* @since 4.0
|
||||
*/
|
||||
public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor, ICASTVisitor {
|
||||
private static boolean DEBUG = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.cdt.core/debug/formatter")); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
private static boolean DEBUG = Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.cdt.core/debug/formatter")); //$NON-NLS-1$
|
||||
|
||||
private static class ASTProblemException extends RuntimeException {
|
||||
ASTProblemException(IASTProblem problem) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2011 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -79,6 +79,6 @@ public class ScannerContext {
|
|||
* @param undo The undo to set
|
||||
*/
|
||||
public void pushUndo(int undo) {
|
||||
this.fUndo.push(new Integer(undo));
|
||||
this.fUndo.push(Integer.valueOf(undo));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2014 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -873,98 +873,98 @@ public class SimpleScanner {
|
|||
}
|
||||
|
||||
static {
|
||||
fgKeywords.put("and", new Integer(Token.t_and)); //$NON-NLS-1$
|
||||
fgKeywords.put("and_eq", new Integer(Token.t_and_eq)); //$NON-NLS-1$
|
||||
fgKeywords.put("asm", new Integer(Token.t_asm)); //$NON-NLS-1$
|
||||
fgKeywords.put("auto", new Integer(Token.t_auto)); //$NON-NLS-1$
|
||||
fgKeywords.put("bitand", new Integer(Token.t_bitand)); //$NON-NLS-1$
|
||||
fgKeywords.put("bitor", new Integer(Token.t_bitor)); //$NON-NLS-1$
|
||||
fgKeywords.put("bool", new Integer(Token.t_bool)); //$NON-NLS-1$
|
||||
fgKeywords.put("break", new Integer(Token.t_break)); //$NON-NLS-1$
|
||||
fgKeywords.put("case", new Integer(Token.t_case)); //$NON-NLS-1$
|
||||
fgKeywords.put("catch", new Integer(Token.t_catch)); //$NON-NLS-1$
|
||||
fgKeywords.put("char", new Integer(Token.t_char)); //$NON-NLS-1$
|
||||
fgKeywords.put("class", new Integer(Token.t_class)); //$NON-NLS-1$
|
||||
fgKeywords.put("compl", new Integer(Token.t_compl)); //$NON-NLS-1$
|
||||
fgKeywords.put("const", new Integer(Token.t_const)); //$NON-NLS-1$
|
||||
fgKeywords.put("const_cast", new Integer(Token.t_const_cast)); //$NON-NLS-1$
|
||||
fgKeywords.put("continue", new Integer(Token.t_continue)); //$NON-NLS-1$
|
||||
fgKeywords.put("default", new Integer(Token.t_default)); //$NON-NLS-1$
|
||||
fgKeywords.put("delete", new Integer(Token.t_delete)); //$NON-NLS-1$
|
||||
fgKeywords.put("do", new Integer(Token.t_do)); //$NON-NLS-1$
|
||||
fgKeywords.put("double", new Integer(Token.t_double)); //$NON-NLS-1$
|
||||
fgKeywords.put("dynamic_cast", new Integer(Token.t_dynamic_cast)); //$NON-NLS-1$
|
||||
fgKeywords.put("else", new Integer(Token.t_else)); //$NON-NLS-1$
|
||||
fgKeywords.put("enum", new Integer(Token.t_enum)); //$NON-NLS-1$
|
||||
fgKeywords.put("explicit", new Integer(Token.t_explicit)); //$NON-NLS-1$
|
||||
fgKeywords.put("export", new Integer(Token.t_export)); //$NON-NLS-1$
|
||||
fgKeywords.put("extern", new Integer(Token.t_extern)); //$NON-NLS-1$
|
||||
fgKeywords.put("false", new Integer(Token.t_false)); //$NON-NLS-1$
|
||||
fgKeywords.put("float", new Integer(Token.t_float)); //$NON-NLS-1$
|
||||
fgKeywords.put("for", new Integer(Token.t_for)); //$NON-NLS-1$
|
||||
fgKeywords.put("friend", new Integer(Token.t_friend)); //$NON-NLS-1$
|
||||
fgKeywords.put("goto", new Integer(Token.t_goto)); //$NON-NLS-1$
|
||||
fgKeywords.put("if", new Integer(Token.t_if)); //$NON-NLS-1$
|
||||
fgKeywords.put("inline", new Integer(Token.t_inline)); //$NON-NLS-1$
|
||||
fgKeywords.put("int", new Integer(Token.t_int)); //$NON-NLS-1$
|
||||
fgKeywords.put("long", new Integer(Token.t_long)); //$NON-NLS-1$
|
||||
fgKeywords.put("mutable", new Integer(Token.t_mutable)); //$NON-NLS-1$
|
||||
fgKeywords.put("namespace", new Integer(Token.t_namespace)); //$NON-NLS-1$
|
||||
fgKeywords.put("new", new Integer(Token.t_new)); //$NON-NLS-1$
|
||||
fgKeywords.put("not", new Integer(Token.t_not)); //$NON-NLS-1$
|
||||
fgKeywords.put("not_eq", new Integer(Token.t_not_eq)); //$NON-NLS-1$
|
||||
fgKeywords.put("operator", new Integer(Token.t_operator)); //$NON-NLS-1$
|
||||
fgKeywords.put("or", new Integer(Token.t_or)); //$NON-NLS-1$
|
||||
fgKeywords.put("or_eq", new Integer(Token.t_or_eq)); //$NON-NLS-1$
|
||||
fgKeywords.put("private", new Integer(Token.t_private)); //$NON-NLS-1$
|
||||
fgKeywords.put("protected", new Integer(Token.t_protected)); //$NON-NLS-1$
|
||||
fgKeywords.put("public", new Integer(Token.t_public)); //$NON-NLS-1$
|
||||
fgKeywords.put("register", new Integer(Token.t_register)); //$NON-NLS-1$
|
||||
fgKeywords.put("reinterpret_cast", new Integer(Token.t_reinterpret_cast)); //$NON-NLS-1$
|
||||
fgKeywords.put("return", new Integer(Token.t_return)); //$NON-NLS-1$
|
||||
fgKeywords.put("short", new Integer(Token.t_short)); //$NON-NLS-1$
|
||||
fgKeywords.put("signed", new Integer(Token.t_signed)); //$NON-NLS-1$
|
||||
fgKeywords.put("sizeof", new Integer(Token.t_sizeof)); //$NON-NLS-1$
|
||||
fgKeywords.put("static", new Integer(Token.t_static)); //$NON-NLS-1$
|
||||
fgKeywords.put("static_cast", new Integer(Token.t_static_cast)); //$NON-NLS-1$
|
||||
fgKeywords.put("struct", new Integer(Token.t_struct)); //$NON-NLS-1$
|
||||
fgKeywords.put("switch", new Integer(Token.t_switch)); //$NON-NLS-1$
|
||||
fgKeywords.put("template", new Integer(Token.t_template)); //$NON-NLS-1$
|
||||
fgKeywords.put("this", new Integer(Token.t_this)); //$NON-NLS-1$
|
||||
fgKeywords.put("throw", new Integer(Token.t_throw)); //$NON-NLS-1$
|
||||
fgKeywords.put("true", new Integer(Token.t_true)); //$NON-NLS-1$
|
||||
fgKeywords.put("try", new Integer(Token.t_try)); //$NON-NLS-1$
|
||||
fgKeywords.put("typedef", new Integer(Token.t_typedef)); //$NON-NLS-1$
|
||||
fgKeywords.put("typeid", new Integer(Token.t_typeid)); //$NON-NLS-1$
|
||||
fgKeywords.put("typename", new Integer(Token.t_typename)); //$NON-NLS-1$
|
||||
fgKeywords.put("union", new Integer(Token.t_union)); //$NON-NLS-1$
|
||||
fgKeywords.put("unsigned", new Integer(Token.t_unsigned)); //$NON-NLS-1$
|
||||
fgKeywords.put("using", new Integer(Token.t_using)); //$NON-NLS-1$
|
||||
fgKeywords.put("virtual", new Integer(Token.t_virtual)); //$NON-NLS-1$
|
||||
fgKeywords.put("void", new Integer(Token.t_void)); //$NON-NLS-1$
|
||||
fgKeywords.put("volatile", new Integer(Token.t_volatile)); //$NON-NLS-1$
|
||||
fgKeywords.put("wchar_t", new Integer(Token.t_wchar_t)); //$NON-NLS-1$
|
||||
fgKeywords.put("while", new Integer(Token.t_while)); //$NON-NLS-1$
|
||||
fgKeywords.put("xor", new Integer(Token.t_xor)); //$NON-NLS-1$
|
||||
fgKeywords.put("xor_eq", new Integer(Token.t_xor_eq)); //$NON-NLS-1$
|
||||
fgKeywords.put("and", Integer.valueOf(Token.t_and)); //$NON-NLS-1$
|
||||
fgKeywords.put("and_eq", Integer.valueOf(Token.t_and_eq)); //$NON-NLS-1$
|
||||
fgKeywords.put("asm", Integer.valueOf(Token.t_asm)); //$NON-NLS-1$
|
||||
fgKeywords.put("auto", Integer.valueOf(Token.t_auto)); //$NON-NLS-1$
|
||||
fgKeywords.put("bitand", Integer.valueOf(Token.t_bitand)); //$NON-NLS-1$
|
||||
fgKeywords.put("bitor", Integer.valueOf(Token.t_bitor)); //$NON-NLS-1$
|
||||
fgKeywords.put("bool", Integer.valueOf(Token.t_bool)); //$NON-NLS-1$
|
||||
fgKeywords.put("break", Integer.valueOf(Token.t_break)); //$NON-NLS-1$
|
||||
fgKeywords.put("case", Integer.valueOf(Token.t_case)); //$NON-NLS-1$
|
||||
fgKeywords.put("catch", Integer.valueOf(Token.t_catch)); //$NON-NLS-1$
|
||||
fgKeywords.put("char", Integer.valueOf(Token.t_char)); //$NON-NLS-1$
|
||||
fgKeywords.put("class", Integer.valueOf(Token.t_class)); //$NON-NLS-1$
|
||||
fgKeywords.put("compl", Integer.valueOf(Token.t_compl)); //$NON-NLS-1$
|
||||
fgKeywords.put("const", Integer.valueOf(Token.t_const)); //$NON-NLS-1$
|
||||
fgKeywords.put("const_cast", Integer.valueOf(Token.t_const_cast)); //$NON-NLS-1$
|
||||
fgKeywords.put("continue", Integer.valueOf(Token.t_continue)); //$NON-NLS-1$
|
||||
fgKeywords.put("default", Integer.valueOf(Token.t_default)); //$NON-NLS-1$
|
||||
fgKeywords.put("delete", Integer.valueOf(Token.t_delete)); //$NON-NLS-1$
|
||||
fgKeywords.put("do", Integer.valueOf(Token.t_do)); //$NON-NLS-1$
|
||||
fgKeywords.put("double", Integer.valueOf(Token.t_double)); //$NON-NLS-1$
|
||||
fgKeywords.put("dynamic_cast", Integer.valueOf(Token.t_dynamic_cast)); //$NON-NLS-1$
|
||||
fgKeywords.put("else", Integer.valueOf(Token.t_else)); //$NON-NLS-1$
|
||||
fgKeywords.put("enum", Integer.valueOf(Token.t_enum)); //$NON-NLS-1$
|
||||
fgKeywords.put("explicit", Integer.valueOf(Token.t_explicit)); //$NON-NLS-1$
|
||||
fgKeywords.put("export", Integer.valueOf(Token.t_export)); //$NON-NLS-1$
|
||||
fgKeywords.put("extern", Integer.valueOf(Token.t_extern)); //$NON-NLS-1$
|
||||
fgKeywords.put("false", Integer.valueOf(Token.t_false)); //$NON-NLS-1$
|
||||
fgKeywords.put("float", Integer.valueOf(Token.t_float)); //$NON-NLS-1$
|
||||
fgKeywords.put("for", Integer.valueOf(Token.t_for)); //$NON-NLS-1$
|
||||
fgKeywords.put("friend", Integer.valueOf(Token.t_friend)); //$NON-NLS-1$
|
||||
fgKeywords.put("goto", Integer.valueOf(Token.t_goto)); //$NON-NLS-1$
|
||||
fgKeywords.put("if", Integer.valueOf(Token.t_if)); //$NON-NLS-1$
|
||||
fgKeywords.put("inline", Integer.valueOf(Token.t_inline)); //$NON-NLS-1$
|
||||
fgKeywords.put("int", Integer.valueOf(Token.t_int)); //$NON-NLS-1$
|
||||
fgKeywords.put("long", Integer.valueOf(Token.t_long)); //$NON-NLS-1$
|
||||
fgKeywords.put("mutable", Integer.valueOf(Token.t_mutable)); //$NON-NLS-1$
|
||||
fgKeywords.put("namespace", Integer.valueOf(Token.t_namespace)); //$NON-NLS-1$
|
||||
fgKeywords.put("new", Integer.valueOf(Token.t_new)); //$NON-NLS-1$
|
||||
fgKeywords.put("not", Integer.valueOf(Token.t_not)); //$NON-NLS-1$
|
||||
fgKeywords.put("not_eq", Integer.valueOf(Token.t_not_eq)); //$NON-NLS-1$
|
||||
fgKeywords.put("operator", Integer.valueOf(Token.t_operator)); //$NON-NLS-1$
|
||||
fgKeywords.put("or", Integer.valueOf(Token.t_or)); //$NON-NLS-1$
|
||||
fgKeywords.put("or_eq", Integer.valueOf(Token.t_or_eq)); //$NON-NLS-1$
|
||||
fgKeywords.put("private", Integer.valueOf(Token.t_private)); //$NON-NLS-1$
|
||||
fgKeywords.put("protected", Integer.valueOf(Token.t_protected)); //$NON-NLS-1$
|
||||
fgKeywords.put("public", Integer.valueOf(Token.t_public)); //$NON-NLS-1$
|
||||
fgKeywords.put("register", Integer.valueOf(Token.t_register)); //$NON-NLS-1$
|
||||
fgKeywords.put("reinterpret_cast", Integer.valueOf(Token.t_reinterpret_cast)); //$NON-NLS-1$
|
||||
fgKeywords.put("return", Integer.valueOf(Token.t_return)); //$NON-NLS-1$
|
||||
fgKeywords.put("short", Integer.valueOf(Token.t_short)); //$NON-NLS-1$
|
||||
fgKeywords.put("signed", Integer.valueOf(Token.t_signed)); //$NON-NLS-1$
|
||||
fgKeywords.put("sizeof", Integer.valueOf(Token.t_sizeof)); //$NON-NLS-1$
|
||||
fgKeywords.put("static", Integer.valueOf(Token.t_static)); //$NON-NLS-1$
|
||||
fgKeywords.put("static_cast", Integer.valueOf(Token.t_static_cast)); //$NON-NLS-1$
|
||||
fgKeywords.put("struct", Integer.valueOf(Token.t_struct)); //$NON-NLS-1$
|
||||
fgKeywords.put("switch", Integer.valueOf(Token.t_switch)); //$NON-NLS-1$
|
||||
fgKeywords.put("template", Integer.valueOf(Token.t_template)); //$NON-NLS-1$
|
||||
fgKeywords.put("this", Integer.valueOf(Token.t_this)); //$NON-NLS-1$
|
||||
fgKeywords.put("throw", Integer.valueOf(Token.t_throw)); //$NON-NLS-1$
|
||||
fgKeywords.put("true", Integer.valueOf(Token.t_true)); //$NON-NLS-1$
|
||||
fgKeywords.put("try", Integer.valueOf(Token.t_try)); //$NON-NLS-1$
|
||||
fgKeywords.put("typedef", Integer.valueOf(Token.t_typedef)); //$NON-NLS-1$
|
||||
fgKeywords.put("typeid", Integer.valueOf(Token.t_typeid)); //$NON-NLS-1$
|
||||
fgKeywords.put("typename", Integer.valueOf(Token.t_typename)); //$NON-NLS-1$
|
||||
fgKeywords.put("union", Integer.valueOf(Token.t_union)); //$NON-NLS-1$
|
||||
fgKeywords.put("unsigned", Integer.valueOf(Token.t_unsigned)); //$NON-NLS-1$
|
||||
fgKeywords.put("using", Integer.valueOf(Token.t_using)); //$NON-NLS-1$
|
||||
fgKeywords.put("virtual", Integer.valueOf(Token.t_virtual)); //$NON-NLS-1$
|
||||
fgKeywords.put("void", Integer.valueOf(Token.t_void)); //$NON-NLS-1$
|
||||
fgKeywords.put("volatile", Integer.valueOf(Token.t_volatile)); //$NON-NLS-1$
|
||||
fgKeywords.put("wchar_t", Integer.valueOf(Token.t_wchar_t)); //$NON-NLS-1$
|
||||
fgKeywords.put("while", Integer.valueOf(Token.t_while)); //$NON-NLS-1$
|
||||
fgKeywords.put("xor", Integer.valueOf(Token.t_xor)); //$NON-NLS-1$
|
||||
fgKeywords.put("xor_eq", Integer.valueOf(Token.t_xor_eq)); //$NON-NLS-1$
|
||||
|
||||
// additional java keywords
|
||||
fgKeywords.put("abstract", new Integer(Token.t_abstract)); //$NON-NLS-1$
|
||||
fgKeywords.put("boolean", new Integer(Token.t_boolean)); //$NON-NLS-1$
|
||||
fgKeywords.put("byte", new Integer(Token.t_byte)); //$NON-NLS-1$
|
||||
fgKeywords.put("extends", new Integer(Token.t_extends)); //$NON-NLS-1$
|
||||
fgKeywords.put("final", new Integer(Token.t_final)); //$NON-NLS-1$
|
||||
fgKeywords.put("finally", new Integer(Token.t_finally)); //$NON-NLS-1$
|
||||
fgKeywords.put("implements", new Integer(Token.t_implements)); //$NON-NLS-1$
|
||||
fgKeywords.put("import", new Integer(Token.t_import)); //$NON-NLS-1$
|
||||
fgKeywords.put("interface", new Integer(Token.t_interface)); //$NON-NLS-1$
|
||||
fgKeywords.put("instanceof", new Integer(Token.t_instanceof)); //$NON-NLS-1$
|
||||
fgKeywords.put("native", new Integer(Token.t_native)); //$NON-NLS-1$
|
||||
fgKeywords.put("null", new Integer(Token.t_null)); //$NON-NLS-1$
|
||||
fgKeywords.put("package", new Integer(Token.t_package)); //$NON-NLS-1$
|
||||
fgKeywords.put("super", new Integer(Token.t_super)); //$NON-NLS-1$
|
||||
fgKeywords.put("synchronized", new Integer(Token.t_synchronized)); //$NON-NLS-1$
|
||||
fgKeywords.put("throws", new Integer(Token.t_throws)); //$NON-NLS-1$
|
||||
fgKeywords.put("transient", new Integer(Token.t_transient)); //$NON-NLS-1$
|
||||
fgKeywords.put("abstract", Integer.valueOf(Token.t_abstract)); //$NON-NLS-1$
|
||||
fgKeywords.put("boolean", Integer.valueOf(Token.t_boolean)); //$NON-NLS-1$
|
||||
fgKeywords.put("byte", Integer.valueOf(Token.t_byte)); //$NON-NLS-1$
|
||||
fgKeywords.put("extends", Integer.valueOf(Token.t_extends)); //$NON-NLS-1$
|
||||
fgKeywords.put("final", Integer.valueOf(Token.t_final)); //$NON-NLS-1$
|
||||
fgKeywords.put("finally", Integer.valueOf(Token.t_finally)); //$NON-NLS-1$
|
||||
fgKeywords.put("implements", Integer.valueOf(Token.t_implements)); //$NON-NLS-1$
|
||||
fgKeywords.put("import", Integer.valueOf(Token.t_import)); //$NON-NLS-1$
|
||||
fgKeywords.put("interface", Integer.valueOf(Token.t_interface)); //$NON-NLS-1$
|
||||
fgKeywords.put("instanceof", Integer.valueOf(Token.t_instanceof)); //$NON-NLS-1$
|
||||
fgKeywords.put("native", Integer.valueOf(Token.t_native)); //$NON-NLS-1$
|
||||
fgKeywords.put("null", Integer.valueOf(Token.t_null)); //$NON-NLS-1$
|
||||
fgKeywords.put("package", Integer.valueOf(Token.t_package)); //$NON-NLS-1$
|
||||
fgKeywords.put("super", Integer.valueOf(Token.t_super)); //$NON-NLS-1$
|
||||
fgKeywords.put("synchronized", Integer.valueOf(Token.t_synchronized)); //$NON-NLS-1$
|
||||
fgKeywords.put("throws", Integer.valueOf(Token.t_throws)); //$NON-NLS-1$
|
||||
fgKeywords.put("transient", Integer.valueOf(Token.t_transient)); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2008 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -97,54 +97,54 @@ public class Exe {
|
|||
buffer.append(NL);
|
||||
|
||||
buffer.append("lastsize: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_lastsize).longValue()));
|
||||
buffer.append(Long.toHexString(e_lastsize));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("nblocks: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_nblocks).longValue()));
|
||||
buffer.append(Long.toHexString(e_nblocks));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("nreloc: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_nreloc).longValue()));
|
||||
buffer.append(Long.toHexString(e_nreloc));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("hdrsize: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_hdrsize).longValue()));
|
||||
buffer.append(Long.toHexString(e_hdrsize));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("minalloc: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_minalloc).longValue()));
|
||||
buffer.append(Long.toHexString(e_minalloc));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("maxalloc: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_maxalloc).longValue()));
|
||||
buffer.append(Long.toHexString(e_maxalloc));
|
||||
buffer.append(NL);
|
||||
buffer.append("ss: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_ss).longValue()));
|
||||
buffer.append(Long.toHexString(e_ss));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("sp: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_sp).longValue()));
|
||||
buffer.append(Long.toHexString(e_sp));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("checksum: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_checksum).longValue()));
|
||||
buffer.append(Long.toHexString(e_checksum));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("ip: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_ip).longValue()));
|
||||
buffer.append(Long.toHexString(e_ip));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("cs: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_cs).longValue()));
|
||||
buffer.append(Long.toHexString(e_cs));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("relocoffs: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_relocoffs).longValue()));
|
||||
buffer.append(Long.toHexString(e_relocoffs));
|
||||
buffer.append(NL);
|
||||
|
||||
buffer.append("overlay: 0x"); //$NON-NLS-1$
|
||||
buffer.append(Long.toHexString(new Short(e_noverlay).longValue()));
|
||||
buffer.append(Long.toHexString(e_noverlay));
|
||||
buffer.append(NL);
|
||||
return buffer.toString();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2014 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -566,7 +566,7 @@ public class Dwarf {
|
|||
if (printEnabled)
|
||||
System.out.println("\t\t " + Long.toHexString(name) + " " + Long.toHexString(form)); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
} while (name != 0 && form != 0);
|
||||
abbrevs.put(new Long(code), entry);
|
||||
abbrevs.put(Long.valueOf(code), entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -577,7 +577,7 @@ public class Dwarf {
|
|||
throws IOException {
|
||||
while (in.remaining() > 0) {
|
||||
long code = read_unsigned_leb128(in);
|
||||
AbbreviationEntry entry = abbrevs.get(new Long(code));
|
||||
AbbreviationEntry entry = abbrevs.get(Long.valueOf(code));
|
||||
if (entry != null) {
|
||||
int len = entry.attributes.size();
|
||||
List<AttributeValue> list = new ArrayList<AttributeValue>(len);
|
||||
|
@ -768,15 +768,15 @@ public class Dwarf {
|
|||
}
|
||||
case DwarfConstants.DW_FORM_GNU_ref_alt :
|
||||
if (header.offsetSize == 8)
|
||||
obj = new Long(read_8_bytes(in));
|
||||
obj = Long.valueOf(read_8_bytes(in));
|
||||
else
|
||||
obj = new Long(read_4_bytes(in) & 0xffffffffL);
|
||||
obj = Long.valueOf(read_4_bytes(in) & 0xffffffffL);
|
||||
break;
|
||||
case DwarfConstants.DW_FORM_sec_offset :
|
||||
if (header.offsetSize == 8)
|
||||
obj = new Long(read_8_bytes(in));
|
||||
obj = Long.valueOf(read_8_bytes(in));
|
||||
else
|
||||
obj = new Long(read_4_bytes(in) & 0xffffffffL);
|
||||
obj = Long.valueOf(read_4_bytes(in) & 0xffffffffL);
|
||||
break;
|
||||
case DwarfConstants.DW_FORM_exprloc :
|
||||
long size = read_unsigned_leb128(in);
|
||||
|
@ -789,7 +789,7 @@ public class Dwarf {
|
|||
obj = Byte.valueOf((byte)1);
|
||||
break;
|
||||
case DwarfConstants.DW_FORM_ref_sig8 :
|
||||
obj = new Long(read_8_bytes(in));
|
||||
obj = Long.valueOf(read_8_bytes(in));
|
||||
break;
|
||||
|
||||
default :
|
||||
|
@ -903,7 +903,7 @@ public class Dwarf {
|
|||
default :
|
||||
// ????
|
||||
}
|
||||
return new Long(value);
|
||||
return Long.valueOf(value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2014 Nokia and others.
|
||||
* Copyright (c) 2007, 2016 Nokia 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
|
||||
|
@ -309,7 +309,7 @@ public class DwarfReader extends Dwarf implements ISymbolReader, ICompileOptions
|
|||
*/
|
||||
|
||||
// Remember the CU line tables we've parsed.
|
||||
Integer cuOffset = new Integer(cuStmtList);
|
||||
Integer cuOffset = Integer.valueOf(cuStmtList);
|
||||
|
||||
boolean dwarf64Bit = false;
|
||||
if (! m_parsedLineTableOffsets.contains(cuOffset)) {
|
||||
|
@ -429,7 +429,7 @@ public class DwarfReader extends Dwarf implements ISymbolReader, ICompileOptions
|
|||
while (lineTableStart < sectionSize - minHeaderSize) {
|
||||
data.position(lineTableStart);
|
||||
|
||||
Integer currLineTableStart = new Integer(lineTableStart);
|
||||
Integer currLineTableStart = Integer.valueOf(lineTableStart);
|
||||
|
||||
// Read length of the line table for one compile unit
|
||||
// Note the length does not including the "length" field(s) itself.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2012 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -53,7 +53,7 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
|||
|
||||
public DebugSym getEntry(long addr) {
|
||||
DebugSym[] entries = getSortedEntries();
|
||||
int insertion = Arrays.binarySearch(entries, new Long(addr));
|
||||
int insertion = Arrays.binarySearch(entries, Long.valueOf(addr));
|
||||
if (insertion >= 0) {
|
||||
return entries[insertion];
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2012 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -865,7 +865,7 @@ public class MachO {
|
|||
return null;
|
||||
}
|
||||
|
||||
int ndx = Arrays.binarySearch(lines, new Long(value));
|
||||
int ndx = Arrays.binarySearch(lines, Long.valueOf(value));
|
||||
if ( ndx >= 0 )
|
||||
return lines[ndx];
|
||||
if ( ndx == -1 ) {
|
||||
|
@ -1614,7 +1614,7 @@ public class MachO {
|
|||
return null;
|
||||
}
|
||||
|
||||
int ndx = Arrays.binarySearch(symbols, new Long(vma), symbol_comparator);
|
||||
int ndx = Arrays.binarySearch(symbols, Long.valueOf(vma), symbol_comparator);
|
||||
if ( ndx > 0 )
|
||||
return symbols[ndx];
|
||||
if ( ndx == -1 ) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2012 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -921,7 +921,7 @@ public class MachO64 {
|
|||
return null;
|
||||
}
|
||||
|
||||
int ndx = Arrays.binarySearch(lines, new Long(value));
|
||||
int ndx = Arrays.binarySearch(lines, Long.valueOf(value));
|
||||
if (ndx >= 0 )
|
||||
return lines[ndx];
|
||||
if (ndx == -1 ) {
|
||||
|
@ -1727,7 +1727,7 @@ public class MachO64 {
|
|||
return null;
|
||||
}
|
||||
|
||||
int ndx = Arrays.binarySearch(symbols, new Long(vma), symbol_comparator);
|
||||
int ndx = Arrays.binarySearch(symbols, Long.valueOf(vma), symbol_comparator);
|
||||
if (ndx > 0 )
|
||||
return symbols[ndx];
|
||||
if (ndx == -1 ) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2010 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -192,7 +192,7 @@ public class ResourceTestHelper {
|
|||
continue;
|
||||
if (i < buffer.length() - 1 && Character.isJavaIdentifierPart(buffer.charAt(i + identifier.length())))
|
||||
continue;
|
||||
positions.add(new Integer(i));
|
||||
positions.add(Integer.valueOf(i));
|
||||
}
|
||||
return positions;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2015 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -125,7 +125,7 @@ public class TypeSelectionDialog extends TwoPaneElementSelector {
|
|||
ITypeInfo info = (ITypeInfo) element;
|
||||
IQualifiedTypeName qualifiedName = info.getQualifiedTypeName();
|
||||
|
||||
if (fVisibleTypes != null && !fVisibleTypes.contains(new Integer(info.getCElementType())))
|
||||
if (fVisibleTypes != null && !fVisibleTypes.contains(Integer.valueOf(info.getCElementType())))
|
||||
return false;
|
||||
|
||||
if (!fShowLowLevelTypes && qualifiedName.isLowLevel())
|
||||
|
@ -417,7 +417,7 @@ public class TypeSelectionDialog extends TwoPaneElementSelector {
|
|||
|
||||
// The 'for' loop is here to guarantee that we always create the checkboxes in the same order.
|
||||
for (int i = 0; i < ALL_TYPES.length; ++i) {
|
||||
Integer typeObject = new Integer(ALL_TYPES[i]);
|
||||
Integer typeObject = Integer.valueOf(ALL_TYPES[i]);
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
createTypeCheckbox(upperRow, typeObject);
|
||||
}
|
||||
|
@ -492,16 +492,16 @@ public class TypeSelectionDialog extends TwoPaneElementSelector {
|
|||
section.put(SETTINGS_WIDTH, size.x);
|
||||
section.put(SETTINGS_HEIGHT, size.y);
|
||||
}
|
||||
section.put(SETTINGS_SHOW_NAMESPACES, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_NAMESPACE)));
|
||||
section.put(SETTINGS_SHOW_CLASSES, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_CLASS)));
|
||||
section.put(SETTINGS_SHOW_STRUCTS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_STRUCT)));
|
||||
section.put(SETTINGS_SHOW_TYPEDEFS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_TYPEDEF)));
|
||||
section.put(SETTINGS_SHOW_ENUMS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_ENUMERATION)));
|
||||
section.put(SETTINGS_SHOW_UNIONS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_UNION)));
|
||||
section.put(SETTINGS_SHOW_FUNCTIONS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_FUNCTION)));
|
||||
section.put(SETTINGS_SHOW_VARIABLES, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_VARIABLE)));
|
||||
section.put(SETTINGS_SHOW_ENUMERATORS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_ENUMERATOR)));
|
||||
section.put(SETTINGS_SHOW_MACROS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_MACRO)));
|
||||
section.put(SETTINGS_SHOW_NAMESPACES, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_NAMESPACE)));
|
||||
section.put(SETTINGS_SHOW_CLASSES, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_CLASS)));
|
||||
section.put(SETTINGS_SHOW_STRUCTS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_STRUCT)));
|
||||
section.put(SETTINGS_SHOW_TYPEDEFS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_TYPEDEF)));
|
||||
section.put(SETTINGS_SHOW_ENUMS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_ENUMERATION)));
|
||||
section.put(SETTINGS_SHOW_UNIONS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_UNION)));
|
||||
section.put(SETTINGS_SHOW_FUNCTIONS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_FUNCTION)));
|
||||
section.put(SETTINGS_SHOW_VARIABLES, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_VARIABLE)));
|
||||
section.put(SETTINGS_SHOW_ENUMERATORS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_ENUMERATOR)));
|
||||
section.put(SETTINGS_SHOW_MACROS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_MACRO)));
|
||||
section.put(SETTINGS_SHOW_LOWLEVEL, fFilterMatcher.getShowLowLevelTypes());
|
||||
}
|
||||
|
||||
|
@ -540,52 +540,52 @@ public class TypeSelectionDialog extends TwoPaneElementSelector {
|
|||
}
|
||||
|
||||
if (section.getBoolean(SETTINGS_SHOW_NAMESPACES)) {
|
||||
Integer typeObject = new Integer(ICElement.C_NAMESPACE);
|
||||
Integer typeObject = ICElement.C_NAMESPACE;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_CLASSES)) {
|
||||
Integer typeObject = new Integer(ICElement.C_CLASS);
|
||||
Integer typeObject = ICElement.C_CLASS;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_STRUCTS)) {
|
||||
Integer typeObject = new Integer(ICElement.C_STRUCT);
|
||||
Integer typeObject = ICElement.C_STRUCT;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_TYPEDEFS)) {
|
||||
Integer typeObject = new Integer(ICElement.C_TYPEDEF);
|
||||
Integer typeObject = ICElement.C_TYPEDEF;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_ENUMS)) {
|
||||
Integer typeObject = new Integer(ICElement.C_ENUMERATION);
|
||||
Integer typeObject = ICElement.C_ENUMERATION;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_UNIONS)) {
|
||||
Integer typeObject = new Integer(ICElement.C_UNION);
|
||||
Integer typeObject = ICElement.C_UNION;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_FUNCTIONS)) {
|
||||
Integer typeObject = new Integer(ICElement.C_FUNCTION);
|
||||
Integer typeObject = ICElement.C_FUNCTION;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_VARIABLES)) {
|
||||
Integer typeObject = new Integer(ICElement.C_VARIABLE);
|
||||
Integer typeObject = ICElement.C_VARIABLE;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_ENUMERATORS)) {
|
||||
Integer typeObject = new Integer(ICElement.C_ENUMERATOR);
|
||||
Integer typeObject = ICElement.C_ENUMERATOR;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
if (section.getBoolean(SETTINGS_SHOW_MACROS)) {
|
||||
Integer typeObject = new Integer(ICElement.C_MACRO);
|
||||
Integer typeObject = ICElement.C_MACRO;
|
||||
if (fKnownTypes.contains(typeObject))
|
||||
fFilterMatcher.getVisibleTypes().add(typeObject);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2001, 2015 IBM Corporation and others.
|
||||
* Copyright (c) 2001, 2016 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
|
||||
|
@ -471,7 +471,7 @@ public class StubUtility {
|
|||
IRegion lineInfo= doc.getLineInformation(line);
|
||||
int offset= lineInfo.getOffset();
|
||||
String str= doc.get(offset, lineInfo.getLength());
|
||||
if (Strings.containsOnlyWhitespaces(str) && nLines > line + 1 && removedLines.add(new Integer(line))) {
|
||||
if (Strings.containsOnlyWhitespaces(str) && nLines > line + 1 && removedLines.add(Integer.valueOf(line))) {
|
||||
int nextStart= doc.getLineOffset(line + 1);
|
||||
int length= nextStart - offset;
|
||||
edit.addChild(new DeleteEdit(offset, length));
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2008 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -133,7 +133,7 @@ public class Resources {
|
|||
Map<IFile, Long> map= new HashMap<IFile, Long>();
|
||||
for (Iterator<IResource> iter= files.iterator(); iter.hasNext(); ) {
|
||||
IFile file= (IFile)iter.next();
|
||||
map.put(file, new Long(file.getModificationStamp()));
|
||||
map.put(file, Long.valueOf(file.getModificationStamp()));
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2013 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2006, 2016 Wind River Systems, Inc. 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
|
||||
|
@ -89,7 +89,7 @@ public class CHLabelProvider extends AppearanceAwareLabelProvider {
|
|||
}
|
||||
int refCount= node.getReferenceCount();
|
||||
if (refCount > 1) {
|
||||
label += NLS.bind(" ({0} {1})", new Integer(refCount), CHMessages.CHLabelProvider_matches); //$NON-NLS-1$
|
||||
label += NLS.bind(" ({0} {1})", Integer.valueOf(refCount), CHMessages.CHLabelProvider_matches); //$NON-NLS-1$
|
||||
}
|
||||
return decorateText(label, element);
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ public class CHLabelProvider extends AppearanceAwareLabelProvider {
|
|||
int refCount= node.getReferenceCount();
|
||||
if (refCount > 1) {
|
||||
final int offset= label.length();
|
||||
label.append(NLS.bind(" ({0} {1})", new Integer(refCount), CHMessages.CHLabelProvider_matches)); //$NON-NLS-1$
|
||||
label.append(NLS.bind(" ({0} {1})", Integer.valueOf(refCount), CHMessages.CHLabelProvider_matches)); //$NON-NLS-1$
|
||||
label.setStyle(offset, label.length() - offset, StyledString.COUNTER_STYLER);
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2015 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -988,9 +988,7 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
|||
try {
|
||||
String posStr = memento.getString(TAG_VERTICAL_POSITION);
|
||||
int position;
|
||||
position = new Integer(posStr).intValue();
|
||||
bar.setSelection(position);
|
||||
position = new Integer(posStr).intValue();
|
||||
position = Integer.parseInt(posStr);
|
||||
bar.setSelection(position);
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
|
@ -1000,7 +998,7 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
|||
try {
|
||||
String posStr = memento.getString(TAG_HORIZONTAL_POSITION);
|
||||
int position;
|
||||
position = new Integer(posStr).intValue();
|
||||
position = Integer.parseInt(posStr);
|
||||
bar.setSelection(position);
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2010 QNX Software Systems and others.
|
||||
* Copyright (c) 2004, 2016 QNX Software Systems 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
|
||||
|
@ -126,7 +126,7 @@ public class CPElementGroup {
|
|||
public void setChildren(CPElement[] elements) {
|
||||
if (elements.length > 0) {
|
||||
if (childrenListMap != null) {
|
||||
childrenListMap.put(new Integer(elements[0].getEntryKind()), new ArrayList<CPElement>(Arrays.asList(elements)));
|
||||
childrenListMap.put(Integer.valueOf(elements[0].getEntryKind()), new ArrayList<CPElement>(Arrays.asList(elements)));
|
||||
} else {
|
||||
childrenList = new ArrayList<CPElement>(Arrays.asList(elements));
|
||||
}
|
||||
|
@ -194,10 +194,10 @@ public class CPElementGroup {
|
|||
if (childrenList != null) {
|
||||
children = childrenList;
|
||||
} else {
|
||||
children = childrenListMap.get(new Integer(kind));
|
||||
children = childrenListMap.get(Integer.valueOf(kind));
|
||||
if (children == null && create) {
|
||||
children = new ArrayList<CPElement>();
|
||||
childrenListMap.put(new Integer(kind), children);
|
||||
childrenListMap.put(Integer.valueOf(kind), children);
|
||||
}
|
||||
}
|
||||
return children;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2015 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -203,7 +203,7 @@ public class SemanticHighlightings {
|
|||
public static final String OVERLOADED_OPERATOR= "overloadedOperator"; //$NON-NLS-1$
|
||||
|
||||
/** Init debugging mode */
|
||||
private static final boolean DEBUG= "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.cdt.ui/debug/SemanticHighlighting")); //$NON-NLS-1$//$NON-NLS-2$
|
||||
private static final boolean DEBUG= Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.cdt.ui/debug/SemanticHighlighting")); //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Semantic highlightings
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2012 QNX Software Systems and others.
|
||||
* Copyright (c) 2005, 2016 QNX Software Systems 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
|
||||
|
@ -247,7 +247,7 @@ public class IndexView extends ViewPart implements PDOM.IListener, IElementChang
|
|||
IPDOM pdom = CCoreInternals.getPDOMManager().getPDOM(cproject);
|
||||
pdom.acquireReadLock();
|
||||
try {
|
||||
fTimestampPerProject.put(cproject.getElementName(), new Long(pdom.getLastWriteAccess()));
|
||||
fTimestampPerProject.put(cproject.getElementName(), Long.valueOf(pdom.getLastWriteAccess()));
|
||||
IPDOMNode[] linkages= pdom.getLinkageImpls();
|
||||
if (linkages.length == 1) {
|
||||
// Skip linkages in hierarchy if there is only one
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2002, 2012 QNX Software Systems and others.
|
||||
* Copyright (c) 2002, 2016 QNX Software Systems 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
|
||||
|
@ -532,7 +532,7 @@ public class CEditorHoverConfigurationBlock implements IPreferenceConfigurationB
|
|||
while (fStatus.isOK() && i < fHoverConfigs.length) {
|
||||
if (fHoverConfigs[i].fIsEnabled) {
|
||||
String label= getContributedHovers()[i].getLabel();
|
||||
Integer stateMask= new Integer(fHoverConfigs[i].fStateMask);
|
||||
Integer stateMask= fHoverConfigs[i].fStateMask;
|
||||
if (fHoverConfigs[i].fStateMask == -1)
|
||||
fStatus= new StatusInfo(IStatus.ERROR, NLS.bind(PreferencesMessages.CEditorHoverConfigurationBlock_modifierIsNotValidForHover, new String[] {fHoverConfigs[i].fModifierString, label}));
|
||||
else if (stateMasks.containsKey(stateMask))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2012 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -255,13 +255,13 @@ public class LineWrappingTabPage extends FormatterTabPage {
|
|||
Boolean forceWrapping;
|
||||
|
||||
try {
|
||||
wrappingStyle= new Integer(DefaultCodeFormatterConstants.getWrappingStyle(value));
|
||||
indentStyle= new Integer(DefaultCodeFormatterConstants.getIndentStyle(value));
|
||||
wrappingStyle= Integer.valueOf(DefaultCodeFormatterConstants.getWrappingStyle(value));
|
||||
indentStyle= Integer.valueOf(DefaultCodeFormatterConstants.getIndentStyle(value));
|
||||
forceWrapping= Boolean.valueOf(DefaultCodeFormatterConstants.getForceWrapping(value));
|
||||
} catch (IllegalArgumentException e) {
|
||||
forceWrapping= Boolean.valueOf(false);
|
||||
indentStyle= new Integer(DefaultCodeFormatterConstants.INDENT_DEFAULT);
|
||||
wrappingStyle= new Integer(DefaultCodeFormatterConstants.WRAP_NO_SPLIT);
|
||||
forceWrapping= Boolean.FALSE;
|
||||
indentStyle= Integer.valueOf(DefaultCodeFormatterConstants.INDENT_DEFAULT);
|
||||
wrappingStyle= Integer.valueOf(DefaultCodeFormatterConstants.WRAP_NO_SPLIT);
|
||||
}
|
||||
|
||||
increaseMapEntry(wrappingMap, wrappingStyle);
|
||||
|
@ -272,9 +272,9 @@ public class LineWrappingTabPage extends FormatterTabPage {
|
|||
private void increaseMapEntry(Map<Object, Integer> map, Object type) {
|
||||
Integer count= map.get(type);
|
||||
if (count == null) // not in map yet -> count == 0
|
||||
map.put(type, new Integer(1));
|
||||
map.put(type, Integer.valueOf(1));
|
||||
else
|
||||
map.put(type, new Integer(count.intValue() + 1));
|
||||
map.put(type, Integer.valueOf(count.intValue() + 1));
|
||||
}
|
||||
|
||||
private void refreshControls(Map<Object, Integer> wrappingStyleMap, Map<Object, Integer> indentStyleMap,
|
||||
|
@ -291,7 +291,7 @@ public class LineWrappingTabPage extends FormatterTabPage {
|
|||
private Integer getWrappingStyleMax(Map<Object, Integer> wrappingStyleMap) {
|
||||
int maxCount= 0, maxStyle= 0;
|
||||
for (int i= 0; i < WRAPPING_NAMES.length; i++) {
|
||||
Integer count= wrappingStyleMap.get(new Integer(i));
|
||||
Integer count= wrappingStyleMap.get(Integer.valueOf(i));
|
||||
if (count == null)
|
||||
continue;
|
||||
if (count.intValue() > maxCount) {
|
||||
|
@ -299,7 +299,7 @@ public class LineWrappingTabPage extends FormatterTabPage {
|
|||
maxStyle= i;
|
||||
}
|
||||
}
|
||||
return new Integer(maxStyle);
|
||||
return Integer.valueOf(maxStyle);
|
||||
}
|
||||
|
||||
private void updateButton(Map<Object, Integer> forceWrappingMap) {
|
||||
|
@ -343,7 +343,7 @@ public class LineWrappingTabPage extends FormatterTabPage {
|
|||
int maxCount= 0, maxStyle= 0;
|
||||
|
||||
for(int i = 0; i < items.length; i++) {
|
||||
Integer count= map.get(new Integer(i));
|
||||
Integer count= map.get(Integer.valueOf(i));
|
||||
int val= (count == null) ? 0 : count.intValue();
|
||||
if (val > maxCount) {
|
||||
maxCount= val;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2012 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -494,7 +494,7 @@ public abstract class ModifyDialogTabPage implements IModifyDialogTabPage {
|
|||
public void add(Control control) {
|
||||
control.addFocusListener(this);
|
||||
fItemList.add(fIndex, control);
|
||||
fItemMap.put(control, new Integer(fIndex++));
|
||||
fItemMap.put(control, Integer.valueOf(fIndex++));
|
||||
}
|
||||
|
||||
public void add(Preference preference) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2013 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -462,7 +462,7 @@ public abstract class ProfileManager extends Observable {
|
|||
*/
|
||||
protected void notifyObservers(int message) {
|
||||
setChanged();
|
||||
notifyObservers(new Integer(message));
|
||||
notifyObservers(Integer.valueOf(message));
|
||||
}
|
||||
|
||||
public static boolean hasProjectSpecificSettings(IScopeContext context, KeySet[] keySets) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2012, 2016 Google, Inc 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
|
||||
|
@ -85,7 +86,7 @@ import org.eclipse.cdt.internal.formatter.ChangeFormatter;
|
|||
*/
|
||||
public class IncludeOrganizer {
|
||||
private static boolean DEBUG_HEADER_SUBSTITUTION =
|
||||
"true".equalsIgnoreCase(Platform.getDebugOption(CUIPlugin.PLUGIN_ID + "/debug/includeOrganizer/headerSubstitution")); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
Boolean.parseBoolean(Platform.getDebugOption(CUIPlugin.PLUGIN_ID + "/debug/includeOrganizer/headerSubstitution")); //$NON-NLS-1$
|
||||
|
||||
private static final Collator COLLATOR = Collator.getInstance();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2015 QNX Software Systems and others.
|
||||
* Copyright (c) 2006, 2016 QNX Software Systems 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
|
||||
|
@ -103,18 +103,18 @@ public class CSearchPage extends DialogPage implements ISearchPage {
|
|||
|
||||
// These must be in the same order as the Text
|
||||
private static final Integer[] searchForData = {
|
||||
new Integer(CSearchPatternQuery.FIND_CLASS_STRUCT),
|
||||
new Integer(CSearchPatternQuery.FIND_FUNCTION),
|
||||
new Integer(CSearchPatternQuery.FIND_VARIABLE),
|
||||
new Integer(CSearchPatternQuery.FIND_UNION),
|
||||
new Integer(CSearchPatternQuery.FIND_METHOD),
|
||||
new Integer(CSearchPatternQuery.FIND_FIELD),
|
||||
new Integer(CSearchPatternQuery.FIND_ENUM),
|
||||
new Integer(CSearchPatternQuery.FIND_ENUMERATOR),
|
||||
new Integer(CSearchPatternQuery.FIND_NAMESPACE),
|
||||
new Integer(CSearchPatternQuery.FIND_TYPEDEF),
|
||||
new Integer(CSearchPatternQuery.FIND_MACRO),
|
||||
new Integer(CSearchPatternQuery.FIND_ALL_TYPES)
|
||||
CSearchPatternQuery.FIND_CLASS_STRUCT,
|
||||
CSearchPatternQuery.FIND_FUNCTION,
|
||||
CSearchPatternQuery.FIND_VARIABLE,
|
||||
CSearchPatternQuery.FIND_UNION,
|
||||
CSearchPatternQuery.FIND_METHOD,
|
||||
CSearchPatternQuery.FIND_FIELD,
|
||||
CSearchPatternQuery.FIND_ENUM,
|
||||
CSearchPatternQuery.FIND_ENUMERATOR,
|
||||
CSearchPatternQuery.FIND_NAMESPACE,
|
||||
CSearchPatternQuery.FIND_TYPEDEF,
|
||||
CSearchPatternQuery.FIND_MACRO,
|
||||
CSearchPatternQuery.FIND_ALL_TYPES
|
||||
};
|
||||
|
||||
// the index of FIND_ALL_TYPES
|
||||
|
@ -129,10 +129,10 @@ public class CSearchPage extends DialogPage implements ISearchPage {
|
|||
|
||||
// Must be in the same order as the text
|
||||
private static Integer[] limitToData = {
|
||||
new Integer(CSearchQuery.FIND_DECLARATIONS),
|
||||
new Integer(CSearchQuery.FIND_DEFINITIONS),
|
||||
new Integer(CSearchQuery.FIND_REFERENCES),
|
||||
new Integer(CSearchQuery.FIND_ALL_OCCURRENCES),
|
||||
CSearchQuery.FIND_DECLARATIONS,
|
||||
CSearchQuery.FIND_DEFINITIONS,
|
||||
CSearchQuery.FIND_REFERENCES,
|
||||
CSearchQuery.FIND_ALL_OCCURRENCES,
|
||||
};
|
||||
|
||||
// The index of FIND_ALL_OCCURANCES
|
||||
|
@ -776,4 +776,4 @@ public class CSearchPage extends DialogPage implements ISearchPage {
|
|||
}
|
||||
super.setVisible(visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2015 QNX Software Systems and others.
|
||||
* Copyright (c) 2006, 2016 QNX Software Systems 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
|
||||
|
@ -36,7 +36,7 @@ public class CSearchTreeLabelProvider extends CSearchLabelProvider {
|
|||
return text;
|
||||
}
|
||||
return text + " " //$NON-NLS-1$
|
||||
+ Messages.format(CSearchMessages.CSearchResultCollector_matches, new Integer(count));
|
||||
+ Messages.format(CSearchMessages.CSearchResultCollector_matches, Integer.valueOf(count));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -46,7 +46,7 @@ public class CSearchTreeLabelProvider extends CSearchLabelProvider {
|
|||
final int count= getMatchCount(element);
|
||||
if (count > 1) {
|
||||
final String matchesCount = " " //$NON-NLS-1$
|
||||
+ Messages.format(CSearchMessages.CSearchResultCollector_matches, new Integer(count));
|
||||
+ Messages.format(CSearchMessages.CSearchResultCollector_matches, Integer.valueOf(count));
|
||||
styled.append(matchesCount, StyledString.COUNTER_STYLER);
|
||||
return styled;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2008, 2012 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2008, 2016 Wind River Systems, Inc. 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
|
||||
|
@ -61,7 +61,7 @@ public class CSearchUnresolvedIncludesQuery extends CSearchQuery {
|
|||
|
||||
@Override
|
||||
public String getResultLabel(int matchCount) {
|
||||
String countLabel = Messages.format(CSearchMessages.CSearchResultCollector_matches, new Integer(matchCount));
|
||||
String countLabel = Messages.format(CSearchMessages.CSearchResultCollector_matches, Integer.valueOf(matchCount));
|
||||
return getLabel() + " " + countLabel; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2008 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2016 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
|
||||
|
@ -55,7 +55,7 @@ public class CountLabelProvider extends LabelProvider {
|
|||
String text= fLabelProvider.getText(element);
|
||||
if (c == 0)
|
||||
return text;
|
||||
Integer matchCount= new Integer(c);
|
||||
Integer matchCount= c;
|
||||
return fLabelProvider.getText(element) + " "+ Messages.format(CSearchMessages.CSearchResultCollector_matches, matchCount); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2014 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2016 QNX Software Systems 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
|
||||
|
@ -218,12 +218,12 @@ public class CParameterListValidator implements IContextInformationValidator, IC
|
|||
final int length= code.length();
|
||||
int pos= 0;
|
||||
List<Integer> positions= new ArrayList<>();
|
||||
positions.add(new Integer(-1));
|
||||
positions.add(Integer.valueOf(-1));
|
||||
while (pos < length && pos != -1) {
|
||||
char ch= code.charAt(pos);
|
||||
switch (ch) {
|
||||
case ',':
|
||||
positions.add(new Integer(pos));
|
||||
positions.add(Integer.valueOf(pos));
|
||||
break;
|
||||
case '(':
|
||||
pos= indexOfClosingPeer(code, '(', ')', pos);
|
||||
|
@ -243,7 +243,7 @@ public class CParameterListValidator implements IContextInformationValidator, IC
|
|||
if (pos != -1)
|
||||
pos++;
|
||||
}
|
||||
positions.add(new Integer(length));
|
||||
positions.add(Integer.valueOf(length));
|
||||
|
||||
int[] fields= new int[positions.size()];
|
||||
for (int i= 0; i < fields.length; i++)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2010 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -279,7 +279,7 @@ public final class CompletionProposalComputerRegistry {
|
|||
StringTokenizer inner= new StringTokenizer(tok.nextToken(), ":"); //$NON-NLS-1$
|
||||
String id= inner.nextToken();
|
||||
int rank= Integer.parseInt(inner.nextToken());
|
||||
ordered.put(id, new Integer(rank));
|
||||
ordered.put(id, Integer.valueOf(rank));
|
||||
}
|
||||
|
||||
List<CompletionProposalCategory> categories= new ArrayList<CompletionProposalCategory>();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2015 IBM Corporation and others.
|
||||
* Copyright (c) 2005, 2016 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
|
||||
|
@ -82,7 +82,7 @@ import org.eclipse.cdt.internal.ui.util.Messages;
|
|||
* @since 4.0
|
||||
*/
|
||||
public class ContentAssistProcessor implements IContentAssistProcessor {
|
||||
private static final boolean DEBUG= "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.cdt.ui/debug/contentassist")); //$NON-NLS-1$//$NON-NLS-2$
|
||||
private static final boolean DEBUG= Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.cdt.ui/debug/contentassist")); //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Dialog settings key for the "all categories are disabled" warning dialog.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2015 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -859,7 +859,7 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
|
|||
}
|
||||
}
|
||||
|
||||
private final static boolean DEBUG= "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.cdt.ui/debug/folding")); //$NON-NLS-1$//$NON-NLS-2$;
|
||||
private final static boolean DEBUG= Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.cdt.ui/debug/folding")); //$NON-NLS-1$
|
||||
|
||||
private ITextEditor fEditor;
|
||||
private ProjectionListener fProjectionListener;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2012 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2016 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
|
||||
|
@ -99,7 +99,7 @@ public class SpellCheckIterator implements ISpellCheckIterator {
|
|||
|
||||
int offset= iterator.current();
|
||||
while (offset != BreakIterator.DONE) {
|
||||
fSentenceBreaks.add(new Integer(offset));
|
||||
fSentenceBreaks.add(Integer.valueOf(offset));
|
||||
offset= iterator.next();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -552,9 +552,9 @@ public class IndexUI {
|
|||
IResource res= tu.getResource();
|
||||
if (res != null) {
|
||||
Properties props= IndexerPreferences.getProperties(res.getProject());
|
||||
if (props == null || !"true".equals(props.get(IndexerPreferences.KEY_INDEX_ALL_FILES)) || //$NON-NLS-1$
|
||||
(!"true".equals(props.get(IndexerPreferences.KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG)) && //$NON-NLS-1$
|
||||
!"true".equals(props.get(IndexerPreferences.KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG)))) { //$NON-NLS-1$
|
||||
if (props == null || !Boolean.parseBoolean((String) props.get(IndexerPreferences.KEY_INDEX_ALL_FILES)) ||
|
||||
(!Boolean.parseBoolean((String) props.get(IndexerPreferences.KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG)) &&
|
||||
!Boolean.parseBoolean((String) props.get(IndexerPreferences.KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG)))) {
|
||||
msg= msg + " " + Messages.IndexUI_infoSelectIndexAllFiles; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2012 QNX Software Systems and others.
|
||||
* Copyright (c) 2004, 2016 QNX Software Systems 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
|
||||
|
@ -37,11 +37,11 @@ public class BaseClassesListDialogField extends ListDialogField<IBaseClassInfo>
|
|||
private static final String CP_NAME = "name"; //$NON-NLS-1$
|
||||
private static final String CP_ACCESS = "access"; //$NON-NLS-1$
|
||||
private static final String CP_VIRTUAL = "virtual"; //$NON-NLS-1$
|
||||
static final Integer INDEX_YES = new Integer(0);
|
||||
static final Integer INDEX_NO = new Integer(1);
|
||||
static final Integer INDEX_PUBLIC = new Integer(0);
|
||||
static final Integer INDEX_PROTECTED = new Integer(1);
|
||||
static final Integer INDEX_PRIVATE = new Integer(2);
|
||||
static final Integer INDEX_YES = 0;
|
||||
static final Integer INDEX_NO = 1;
|
||||
static final Integer INDEX_PUBLIC = 0;
|
||||
static final Integer INDEX_PROTECTED = 1;
|
||||
static final Integer INDEX_PRIVATE = 2;
|
||||
|
||||
private final class CellHandler implements ICellModifier {
|
||||
@Override
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2012 QNX Software Systems and others.
|
||||
* Copyright (c) 2004, 2016 QNX Software Systems 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
|
||||
|
@ -38,11 +38,11 @@ public class MethodStubsListDialogField extends CheckedListDialogField<IMethodSt
|
|||
private static final String CP_ACCESS = "access"; //$NON-NLS-1$
|
||||
private static final String CP_VIRTUAL = "virtual"; //$NON-NLS-1$
|
||||
private static final String CP_INLINE = "inline"; //$NON-NLS-1$
|
||||
static final Integer INDEX_YES = new Integer(0);
|
||||
static final Integer INDEX_NO = new Integer(1);
|
||||
static final Integer INDEX_PUBLIC = new Integer(0);
|
||||
static final Integer INDEX_PROTECTED = new Integer(1);
|
||||
static final Integer INDEX_PRIVATE = new Integer(2);
|
||||
static final Integer INDEX_YES = 0;
|
||||
static final Integer INDEX_NO = 1;
|
||||
static final Integer INDEX_PUBLIC = 0;
|
||||
static final Integer INDEX_PROTECTED = 1;
|
||||
static final Integer INDEX_PRIVATE = 2;
|
||||
|
||||
private final class CellHandler implements ICellModifier {
|
||||
@Override
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue