1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +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:
Alex Blewitt 2016-04-15 23:41:51 +01:00 committed by Gerrit Code Review @ Eclipse.org
parent 0b7b2a87d3
commit fc07efa909
150 changed files with 760 additions and 761 deletions

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -351,7 +351,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator {
// status = new MultiStatus ( // status = new MultiStatus (
// ManagedBuilderCorePlugin.getUniqueIdentifier(), // ManagedBuilderCorePlugin.getUniqueIdentifier(),
// IStatus.WARNING, // IStatus.WARNING,
// new String(), // "",
// null); // null);
// // Add a new status for each of the bad folders // // Add a new status for each of the bad folders
// iter = getInvalidDirList().iterator(); // iter = getInvalidDirList().iterator();
@ -367,7 +367,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator {
// status = new MultiStatus( // status = new MultiStatus(
// ManagedBuilderCorePlugin.getUniqueIdentifier(), // ManagedBuilderCorePlugin.getUniqueIdentifier(),
// IStatus.OK, // IStatus.OK,
// new String(), // "",
// null); // null);
// } // }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -42,7 +42,7 @@ public class Util {
} }
public static int indexOf(String line, char c) { public static int indexOf(String line, char c) {
return indexOf(line, Character.valueOf(c).toString()); return indexOf(line, String.valueOf(c));
} }
/** /**

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -46,7 +46,7 @@ public class Util {
} }
public static int indexOf(String line, char c) { public static int indexOf(String line, char c) {
return indexOf(line, new Character(c).toString()); return indexOf(line, String.valueOf(c));
} }
/** /**

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -76,7 +76,7 @@ public class GCCPerFileSIPConsoleParser implements IScannerInfoConsoleParser {
scannerInfo.put(ScannerInfoTypes.INCLUDE_PATHS, includes); scannerInfo.put(ScannerInfoTypes.INCLUDE_PATHS, includes);
scannerInfo.put(ScannerInfoTypes.QUOTE_INCLUDE_PATHS, quoteIncludes); scannerInfo.put(ScannerInfoTypes.QUOTE_INCLUDE_PATHS, quoteIncludes);
scannerInfo.put(ScannerInfoTypes.SYMBOL_DEFINITIONS, symbols); scannerInfo.put(ScannerInfoTypes.SYMBOL_DEFINITIONS, symbols);
fCollector.contributeToScannerConfig(new Integer(commandId), scannerInfo); fCollector.contributeToScannerConfig(Integer.valueOf(commandId), scannerInfo);
commandId = -1; commandId = -1;
rc = true; rc = true;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -91,7 +91,7 @@ public class CCommandDSC {
} }
public Integer getCommandIdAsInteger() { public Integer getCommandIdAsInteger() {
return new Integer(getCommandId()); return Integer.valueOf(getCommandId());
} }
/** /**
* @return Returns the commandId. * @return Returns the commandId.

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -162,7 +162,7 @@ public class TextTransferDropTargetListener extends AbstractContainerAreaDropAda
if (makeTargets.length > 1) { if (makeTargets.length > 1) {
String title = MakeUIPlugin.getResourceString("MakeTargetDnD.title.createFromTextConfirm"); //$NON-NLS-1$ String title = MakeUIPlugin.getResourceString("MakeTargetDnD.title.createFromTextConfirm"); //$NON-NLS-1$
String question = MessageFormat.format(MakeUIPlugin.getResourceString("MakeTargetDnD.message.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$ String topTargets = ""; //$NON-NLS-1$
for (int i=0;i<makeTargets.length;i++) { for (int i=0;i<makeTargets.length;i++) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -90,7 +90,7 @@ public abstract class SharedPartWithButtons extends SharedPart {
button.setText(label); button.setText(label);
GridData gd = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING); GridData gd = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING);
button.setLayoutData(gd); button.setLayoutData(gd);
button.setData(new Integer(index)); button.setData(Integer.valueOf(index));
return button; return button;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -66,7 +66,7 @@ public class DeleteTargetAction extends SelectionListenerAction {
} else { } else {
title = MakeUIPlugin.getResourceString("DeleteTargetAction.title.confirmMultipleDeletion"); //$NON-NLS-1$ title = MakeUIPlugin.getResourceString("DeleteTargetAction.title.confirmMultipleDeletion"); //$NON-NLS-1$
msg = MessageFormat.format(MakeUIPlugin.getResourceString("DeleteTargetAction.message.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); return MessageDialog.openQuestion(shell, title, msg);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -3659,7 +3659,7 @@ public class ManagedBuildManager extends AbstractCExtension {
*/ */
static public String calculateChildId(String superId, String suffix){ static public String calculateChildId(String superId, String suffix){
if(suffix == null) if(suffix == null)
suffix = new Integer(getRandomNumber()).toString(); suffix = Integer.toString(getRandomNumber());
String version = getVersionFromIdAndVersion(superId); String version = getVersionFromIdAndVersion(superId);
if(version != null) if(version != null)

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -24,9 +24,9 @@ import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IPath;
public class ConfigurationBuildState implements IConfigurationBuildState { public class ConfigurationBuildState implements IConfigurationBuildState {
private final static Integer REBUILD_STATE = new Integer(NEED_REBUILD); private final static Integer REBUILD_STATE = NEED_REBUILD;
private final static Integer REMOVED_STATE = new Integer(REMOVED); private final static Integer REMOVED_STATE = REMOVED;
private final static Integer NONE_STATE = new Integer(0); private final static Integer NONE_STATE = 0;
private HashMap<Integer, Set<String>> fStateToPathListMap; private HashMap<Integer, Set<String>> fStateToPathListMap;
private Properties fPathToStateProps; private Properties fPathToStateProps;
@ -49,7 +49,7 @@ public class ConfigurationBuildState implements IConfigurationBuildState {
if(fStateToPathListMap == null) if(fStateToPathListMap == null)
return new IPath[0]; return new IPath[0];
Set<String> set = fStateToPathListMap.get(new Integer(state)); Set<String> set = fStateToPathListMap.get(Integer.valueOf(state));
if(set == null) if(set == null)
return new IPath[0]; return new IPath[0];
@ -91,13 +91,13 @@ public class ConfigurationBuildState implements IConfigurationBuildState {
fPathToStateProps = new Properties(); fPathToStateProps = new Properties();
fStateToPathListMap = new HashMap<Integer, Set<String>>(); fStateToPathListMap = new HashMap<Integer, Set<String>>();
} }
String strState = stateToString(new Integer(state)); String strState = stateToString(Integer.valueOf(state));
Integer iState = stateToInt(strState); Integer iState = stateToInt(strState);
if(iState == null) if(iState == null)
throw new IllegalArgumentException(); throw new IllegalArgumentException();
if(cur != 0){ if(cur != 0){
Set<String> set = fStateToPathListMap.get(new Integer(cur)); Set<String> set = fStateToPathListMap.get(Integer.valueOf(cur));
set.remove(str); set.remove(str);
if(set.size() == 0) if(set.size() == 0)
fStateToPathListMap.remove(iState); fStateToPathListMap.remove(iState);
@ -170,7 +170,7 @@ public class ConfigurationBuildState implements IConfigurationBuildState {
private Integer stateToInt(String state){ private Integer stateToInt(String state){
try { try {
Integer i = new Integer(state); Integer i = Integer.valueOf(state);
if(i.equals(REBUILD_STATE)) if(i.equals(REBUILD_STATE))
return REBUILD_STATE; return REBUILD_STATE;
if(i.equals(REMOVED_STATE)) if(i.equals(REMOVED_STATE))

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -118,7 +118,7 @@ public class ProjectBuildState implements IProjectBuildState {
String name = props.getProperty(id); String name = props.getProperty(id);
if(name == null){ if(name == null){
if(op == OP_CREATE){ if(op == OP_CREATE){
name = new Integer(CDataUtil.genRandomNumber()).toString(); name = Integer.toString(CDataUtil.genRandomNumber());
props.setProperty(id, name); props.setProperty(id, name);
fIsMapInfoDirty = true; fIsMapInfoDirty = true;
// saveMapFile(); // saveMapFile();

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -135,11 +135,11 @@ public class AdditionalInput implements IAdditionalInput {
// Copy the remaining attributes // Copy the remaining attributes
if (additionalInput.fPaths != null) { if (additionalInput.fPaths != null) {
fPaths = new String(additionalInput.fPaths); fPaths = additionalInput.fPaths;
} }
if (additionalInput.fKind != null) { if (additionalInput.fKind != null) {
fKind = new Integer(additionalInput.fKind.intValue()); fKind = additionalInput.fKind;
} }
setDirty(true); setDirty(true);
@ -164,11 +164,11 @@ public class AdditionalInput implements IAdditionalInput {
// kind // kind
String kindStr = element.getAttribute(IAdditionalInput.KIND); String kindStr = element.getAttribute(IAdditionalInput.KIND);
if (kindStr == null || kindStr.equals(ADDITIONAL_INPUT_DEPENDENCY)) { 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)) { } else if (kindStr.equals(ADDITIONAL_INPUT)) {
fKind = new Integer(KIND_ADDITIONAL_INPUT); fKind = Integer.valueOf(KIND_ADDITIONAL_INPUT);
} else if (kindStr.equals(ADDITIONAL_DEPENDENCY)) { } 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) { if (element.getAttribute(IAdditionalInput.KIND) != null) {
String kindStr = element.getAttribute(IAdditionalInput.KIND); String kindStr = element.getAttribute(IAdditionalInput.KIND);
if (kindStr == null || kindStr.equals(ADDITIONAL_INPUT_DEPENDENCY)) { 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)) { } else if (kindStr.equals(ADDITIONAL_INPUT)) {
fKind = new Integer(KIND_ADDITIONAL_INPUT); fKind = Integer.valueOf(KIND_ADDITIONAL_INPUT);
} else if (kindStr.equals(ADDITIONAL_DEPENDENCY)) { } 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 @Override
public void setKind(int newKind) { public void setKind(int newKind) {
if (fKind == null || !(fKind.intValue() == newKind)) { if (fKind == null || !(fKind.intValue() == newKind)) {
fKind = new Integer(newKind); fKind = Integer.valueOf(newKind);
fIsDirty = true; fIsDirty = true;
setRebuildState(true); setRebuildState(true);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -278,7 +278,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
errorParserIds = builder.errorParserIds; errorParserIds = builder.errorParserIds;
} }
if (builder.isAbstract != null) { if (builder.isAbstract != null) {
isAbstract = builder.isAbstract.booleanValue(); isAbstract = builder.isAbstract;
} }
if (builder.command != null) { if (builder.command != null) {
command = builder.command; command = builder.command;
@ -314,7 +314,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
builderVariablePattern = builder.builderVariablePattern; builderVariablePattern = builder.builderVariablePattern;
if (builder.isVariableCaseSensitive != null) if (builder.isVariableCaseSensitive != null)
isVariableCaseSensitive = Boolean.valueOf(builder.isVariableCaseSensitive.booleanValue()); isVariableCaseSensitive = builder.isVariableCaseSensitive;
if (builder.reservedMacroNames != null) if (builder.reservedMacroNames != null)
reservedMacroNames = builder.reservedMacroNames.clone(); reservedMacroNames = builder.reservedMacroNames.clone();
@ -476,7 +476,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
// get the 'isVariableCaseSensitive' attribute // get the 'isVariableCaseSensitive' attribute
String isCS = element.getAttribute(IS_VARIABLE_CASE_SENSITIVE); String isCS = element.getAttribute(IS_VARIABLE_CASE_SENSITIVE);
if(isCS != null) if(isCS != null)
isVariableCaseSensitive = Boolean.valueOf("true".equals(isCS)); //$NON-NLS-1$ isVariableCaseSensitive = Boolean.parseBoolean(isCS);
// get the reserved macro names // get the reserved macro names
String reservedNames = element.getAttribute(RESERVED_MACRO_NAMES); String reservedNames = element.getAttribute(RESERVED_MACRO_NAMES);
@ -495,7 +495,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
// isAbstract // isAbstract
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ if (isAbs != null){
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$ isAbstract = Boolean.parseBoolean(isAbs);
} }
// command // command
@ -581,7 +581,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
tmp = element.getAttribute(IS_SYSTEM); tmp = element.getAttribute(IS_SYSTEM);
if(tmp != null) if(tmp != null)
isTest = Boolean.valueOf(tmp).booleanValue(); isTest = Boolean.parseBoolean(tmp);
IManagedConfigElement[] children = element.getChildren(); IManagedConfigElement[] children = element.getChildren();
for(int i = 0; i < children.length; i++){ 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) { if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ 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(); int numEnd = numStart + PARALLEL_PATTERN_NUM.length();
numPrefix = numStr.substring(0, numStart); numPrefix = numStr.substring(0, numStart);
numSuffix = numStr.substring(numEnd); numSuffix = numStr.substring(numEnd);
resolvedNum = numPrefix + new Integer(num).toString() + numSuffix; resolvedNum = numPrefix + Integer.toString(num) + numSuffix;
} else { } else {
resolvedNum = EMPTY_STRING; resolvedNum = EMPTY_STRING;
} }
} else { } else {
resolvedNum = new Integer(num).toString(); resolvedNum = Integer.toString(num);
} }
result = prefix + resolvedNum + suffix; result = prefix + resolvedNum + suffix;
} }
@ -1328,7 +1328,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
@Override @Override
public void setIsAbstract(boolean b) { public void setIsAbstract(boolean b) {
isAbstract = Boolean.valueOf(b); isAbstract = b;
setDirty(true); setDirty(true);
} }
@ -1931,7 +1931,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
String updatedArgs = removeCmd(args, curCmd); String updatedArgs = removeCmd(args, curCmd);
if(!updatedArgs.equals(args)) if(!updatedArgs.equals(args))
setArgumentsAttribute(updatedArgs); setArgumentsAttribute(updatedArgs);
stopOnErr = Boolean.valueOf(on); stopOnErr = on;
} }
setDirty(true); setDirty(true);
} }
@ -2079,7 +2079,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
@Override @Override
public void setAutoBuildEnable(boolean enabled) throws CoreException { public void setAutoBuildEnable(boolean enabled) throws CoreException {
autoBuildEnabled = Boolean.valueOf(enabled); autoBuildEnabled = enabled;
} }
@Override @Override
@ -2089,7 +2089,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
@Override @Override
public void setCleanBuildEnable(boolean enabled) throws CoreException { public void setCleanBuildEnable(boolean enabled) throws CoreException {
cleanBuildEnabled = Boolean.valueOf(enabled); cleanBuildEnabled = enabled;
} }
@Override @Override
@ -2109,7 +2109,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
@Override @Override
public void setIncrementalBuildEnable(boolean enabled) throws CoreException { public void setIncrementalBuildEnable(boolean enabled) throws CoreException {
incrementalBuildEnabled = Boolean.valueOf(enabled); incrementalBuildEnabled = enabled;
} }
@Override @Override
@ -2295,7 +2295,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
@Override @Override
public void setAppendEnvironment(boolean append) throws CoreException { public void setAppendEnvironment(boolean append) throws CoreException {
appendEnvironment = Boolean.valueOf(append); appendEnvironment = append;
} }
@Override @Override
@ -2320,7 +2320,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
} else if(BuilderFactory.STOP_ON_ERROR.equals(name)){ } else if(BuilderFactory.STOP_ON_ERROR.equals(name)){
stopOnErr = Boolean.valueOf(value); stopOnErr = Boolean.valueOf(value);
} else if(BuilderFactory.USE_DEFAULT_BUILD_CMD.equals(name)){ } 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) if(superClass != null)
command = null; command = null;
} }
@ -2412,7 +2412,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
@Override @Override
public void setManagedBuildOn(boolean on) throws CoreException { public void setManagedBuildOn(boolean on) throws CoreException {
managedBuildOn = Boolean.valueOf(on); managedBuildOn = on;
} }
@Override @Override
@ -2432,7 +2432,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
@Override @Override
public void setKeepEnvironmentVariablesInBuildfile(boolean keep) { public void setKeepEnvironmentVariablesInBuildfile(boolean keep) {
keepEnvVarInBuildfile = Boolean.valueOf(keep); keepEnvVarInBuildfile = keep;
} }
@Override @Override
@ -2440,9 +2440,9 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
if(fSupportsCustomizedBuild == null){ if(fSupportsCustomizedBuild == null){
IManagedBuilderMakefileGenerator makeGen = getBuildFileGenerator(); IManagedBuilderMakefileGenerator makeGen = getBuildFileGenerator();
if(makeGen instanceof IManagedBuilderMakefileGenerator2) if(makeGen instanceof IManagedBuilderMakefileGenerator2)
fSupportsCustomizedBuild = Boolean.valueOf(true); fSupportsCustomizedBuild = true;
else else
fSupportsCustomizedBuild = Boolean.valueOf(false); fSupportsCustomizedBuild = false;
} }
return fSupportsCustomizedBuild.booleanValue(); return fSupportsCustomizedBuild.booleanValue();
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -582,9 +582,9 @@ public abstract class HoldsOptions extends BuildObject implements IHoldsOptions,
String version = ManagedBuildManager.getVersionFromIdAndVersion(newSuperClass.getId()); String version = ManagedBuildManager.getVersionFromIdAndVersion(newSuperClass.getId());
String baseId = ManagedBuildManager.getIdFromIdAndVersion(newSuperClass.getId()); String baseId = ManagedBuildManager.getIdFromIdAndVersion(newSuperClass.getId());
if ( version != null) { 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 { } 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); setOption = createOption(newSuperClass, subId, null, true);
((Option)setOption).setAdjusted(true); ((Option)setOption).setAdjusted(true);

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -103,7 +103,7 @@ public class InputOrder implements IInputOrder {
} }
if (inputOrder.fExcluded != null) { if (inputOrder.fExcluded != null) {
fExcluded = inputOrder.fExcluded.booleanValue(); fExcluded = inputOrder.fExcluded;
} }
setDirty(true); setDirty(true);

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -52,7 +52,7 @@ import org.osgi.framework.Version;
public class InputType extends BuildObject implements IInputType { public class InputType extends BuildObject implements IInputType {
private static final String DEFAULT_SEPARATOR = ","; //$NON-NLS-1$ 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 // Superclass
private IInputType superClass; private IInputType superClass;
@ -262,10 +262,10 @@ public class InputType extends BuildObject implements IInputType {
buildVariable = inputType.buildVariable; buildVariable = inputType.buildVariable;
} }
if (inputType.multipleOfType != null) { if (inputType.multipleOfType != null) {
multipleOfType = inputType.multipleOfType.booleanValue(); multipleOfType = inputType.multipleOfType;
} }
if (inputType.primaryInput != null) { if (inputType.primaryInput != null) {
primaryInput = inputType.primaryInput.booleanValue(); primaryInput = inputType.primaryInput;
} }
dependencyGeneratorElement = inputType.dependencyGeneratorElement; dependencyGeneratorElement = inputType.dependencyGeneratorElement;
dependencyGenerator = inputType.dependencyGenerator; dependencyGenerator = inputType.dependencyGenerator;
@ -397,13 +397,13 @@ public class InputType extends BuildObject implements IInputType {
// multipleOfType // multipleOfType
String isMOT = element.getAttribute(IInputType.MULTIPLE_OF_TYPE); String isMOT = element.getAttribute(IInputType.MULTIPLE_OF_TYPE);
if (isMOT != null){ if (isMOT != null){
multipleOfType = Boolean.valueOf("true".equals(isMOT)); //$NON-NLS-1$ multipleOfType = Boolean.parseBoolean(isMOT);
} }
// primaryInput // primaryInput
String isPI = element.getAttribute(IInputType.PRIMARY_INPUT); String isPI = element.getAttribute(IInputType.PRIMARY_INPUT);
if (isPI != null){ if (isPI != null){
primaryInput = Boolean.valueOf("true".equals(isPI)); //$NON-NLS-1$ primaryInput = Boolean.parseBoolean(isPI);
} }
// buildVariable // buildVariable
@ -577,7 +577,7 @@ public class InputType extends BuildObject implements IInputType {
if (element.getAttribute(IInputType.MULTIPLE_OF_TYPE) != null) { if (element.getAttribute(IInputType.MULTIPLE_OF_TYPE) != null) {
String isMOT = element.getAttribute(IInputType.MULTIPLE_OF_TYPE); String isMOT = element.getAttribute(IInputType.MULTIPLE_OF_TYPE);
if (isMOT != null){ 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) { if (element.getAttribute(IInputType.PRIMARY_INPUT) != null) {
String isPI = element.getAttribute(IInputType.PRIMARY_INPUT); String isPI = element.getAttribute(IInputType.PRIMARY_INPUT);
if (isPI != null){ 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 @Override
public void setMultipleOfType(boolean b) { public void setMultipleOfType(boolean b) {
if (multipleOfType == null || !(b == multipleOfType.booleanValue())) { if (multipleOfType == null || !(b == multipleOfType.booleanValue())) {
multipleOfType = Boolean.valueOf(b); multipleOfType = b;
setDirty(true); setDirty(true);
setRebuildState(true); setRebuildState(true);
} }
@ -1185,7 +1185,7 @@ public class InputType extends BuildObject implements IInputType {
@Override @Override
public void setPrimaryInput(boolean b) { public void setPrimaryInput(boolean b) {
if (primaryInput == null || !(b == primaryInput.booleanValue())) { if (primaryInput == null || !(b == primaryInput.booleanValue())) {
primaryInput = Boolean.valueOf(b); primaryInput = b;
setDirty(true); setDirty(true);
setRebuildState(true); setRebuildState(true);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -50,7 +50,7 @@ import org.osgi.framework.Version;
public class Option extends BuildObject implements IOption, IBuildPropertiesRestriction { public class Option extends BuildObject implements IOption, IBuildPropertiesRestriction {
// Static default return values // 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 String[] EMPTY_STRING_ARRAY = new String[0];
public static final OptionStringValue[] EMPTY_LV_ARRAY = new OptionStringValue[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 // Copy the remaining attributes
if (option.unusedChildren != null) { if (option.unusedChildren != null) {
unusedChildren = new String(option.unusedChildren); unusedChildren = option.unusedChildren;
} }
if (option.isAbstract != null) { if (option.isAbstract != null) {
isAbstract = Boolean.valueOf(option.isAbstract.booleanValue()); isAbstract = option.isAbstract;
} }
if (option.command != null) { if (option.command != null) {
command = new String(option.command); command = option.command;
} }
if (option.commandFalse != null) { if (option.commandFalse != null) {
commandFalse = new String(option.commandFalse); commandFalse = option.commandFalse;
} }
if (option.isForScannerDiscovery != null) { if (option.isForScannerDiscovery != null) {
isForScannerDiscovery = Boolean.valueOf(option.isForScannerDiscovery.booleanValue()); isForScannerDiscovery = option.isForScannerDiscovery;
} }
if (option.tip != null) { if (option.tip != null) {
tip = new String(option.tip); tip = option.tip;
} }
if (option.contextId != null) { if (option.contextId != null) {
contextId = new String(option.contextId); contextId = option.contextId;
} }
if (option.categoryId != null) { if (option.categoryId != null) {
categoryId = new String(option.categoryId); categoryId = option.categoryId;
} }
if (option.builtIns != null) { if (option.builtIns != null) {
builtIns = new ArrayList<OptionStringValue>(option.builtIns); builtIns = new ArrayList<OptionStringValue>(option.builtIns);
} }
if (option.browseType != null) { if (option.browseType != null) {
browseType = new Integer(option.browseType.intValue()); browseType = option.browseType;
} }
if (option.browseFilterPath != null) { if (option.browseFilterPath != null) {
browseFilterPath = option.browseFilterPath; browseFilterPath = option.browseFilterPath;
@ -235,7 +235,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
browseFilterExtensions = option.browseFilterExtensions.clone(); browseFilterExtensions = option.browseFilterExtensions.clone();
} }
if (option.resourceFilter != null) { if (option.resourceFilter != null) {
resourceFilter = new Integer(option.resourceFilter.intValue()); resourceFilter = option.resourceFilter;
} }
if (option.applicableValuesList != null) { if (option.applicableValuesList != null) {
applicableValuesList = new ArrayList<String>(option.applicableValuesList); applicableValuesList = new ArrayList<String>(option.applicableValuesList);
@ -247,28 +247,27 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
} }
if (option.valueType != null) { if (option.valueType != null) {
valueType = new Integer(option.valueType.intValue()); valueType = option.valueType;
} }
Integer vType = null;
try { try {
vType = new Integer(option.getValueType()); int vType = option.getValueType();
switch (vType.intValue()) { switch (vType) {
case BOOLEAN: case BOOLEAN:
if (option.value != null) { if (option.value != null) {
value = Boolean.valueOf(((Boolean)option.value).booleanValue()); value = (Boolean)option.value;
} }
if (option.defaultValue != null) { if (option.defaultValue != null) {
defaultValue = Boolean.valueOf(((Boolean)option.defaultValue).booleanValue()); defaultValue = (Boolean)option.defaultValue;
} }
break; break;
case STRING: case STRING:
case ENUMERATED: case ENUMERATED:
case TREE: case TREE:
if (option.value != null) { if (option.value != null) {
value = new String((String)option.value); value = (String)option.value;
} }
if (option.defaultValue != null) { if (option.defaultValue != null) {
defaultValue = new String((String)option.defaultValue); defaultValue = (String)option.defaultValue;
} }
break; break;
case STRING_LIST: case STRING_LIST:
@ -317,14 +316,14 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
valueHandler = option.valueHandler; valueHandler = option.valueHandler;
} }
if (option.valueHandlerExtraArgument != null) { if (option.valueHandlerExtraArgument != null) {
valueHandlerExtraArgument = new String(option.valueHandlerExtraArgument); valueHandlerExtraArgument = option.valueHandlerExtraArgument;
} }
if (option.fieldEditorId != null) { if (option.fieldEditorId != null) {
fieldEditorId = option.fieldEditorId; fieldEditorId = option.fieldEditorId;
} }
if (option.fieldEditorExtraArgument != null) { if (option.fieldEditorExtraArgument != null) {
fieldEditorExtraArgument = new String(option.fieldEditorExtraArgument); fieldEditorExtraArgument = option.fieldEditorExtraArgument;
} }
if(copyIds){ if(copyIds){
@ -364,7 +363,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
// isAbstract // isAbstract
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ if (isAbs != null){
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$ isAbstract = Boolean.parseBoolean(isAbs);
} }
// Get the command defined for the option // Get the command defined for the option
@ -382,7 +381,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
// isForScannerDiscovery // isForScannerDiscovery
String isForSD = element.getAttribute(USE_BY_SCANNER_DISCOVERY); String isForSD = element.getAttribute(USE_BY_SCANNER_DISCOVERY);
if (isForSD != null){ if (isForSD != null){
isForScannerDiscovery = Boolean.valueOf("true".equals(isForSD)); //$NON-NLS-1$ isForScannerDiscovery = Boolean.parseBoolean(isForSD);
} }
// Get the tooltip for the option // Get the tooltip for the option
@ -394,7 +393,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
// Options hold different types of values // Options hold different types of values
String valueTypeStr = element.getAttribute(VALUE_TYPE); String valueTypeStr = element.getAttribute(VALUE_TYPE);
if (valueTypeStr != null) { 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. // 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 // which they should be
browseType = null; browseType = null;
} else if (browseTypeStr.equals(NONE)) { } else if (browseTypeStr.equals(NONE)) {
browseType = new Integer(BROWSE_NONE); browseType = BROWSE_NONE;
} else if (browseTypeStr.equals(FILE)) { } else if (browseTypeStr.equals(FILE)) {
browseType = new Integer(BROWSE_FILE); browseType = BROWSE_FILE;
} else if (browseTypeStr.equals(DIR)) { } else if (browseTypeStr.equals(DIR)) {
browseType = new Integer(BROWSE_DIR); browseType = BROWSE_DIR;
} }
// Get the browseFilterPath attribute // Get the browseFilterPath attribute
@ -437,11 +436,11 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
// which they should be // which they should be
resourceFilter = null; resourceFilter = null;
} else if (resFilterStr.equals(ALL)) { } else if (resFilterStr.equals(ALL)) {
resourceFilter = new Integer(FILTER_ALL); resourceFilter = FILTER_ALL;
} else if (resFilterStr.equals(FILE)) { } else if (resFilterStr.equals(FILE)) {
resourceFilter = new Integer(FILTER_FILE); resourceFilter = FILTER_FILE;
} else if (resFilterStr.equals(PROJECT)) { } else if (resFilterStr.equals(PROJECT)) {
resourceFilter = new Integer(FILTER_PROJECT); resourceFilter = FILTER_PROJECT;
} }
//get enablements //get enablements
@ -506,7 +505,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) { if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ 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) { if (element.getAttribute(USE_BY_SCANNER_DISCOVERY) != null) {
String isForSD = element.getAttribute(USE_BY_SCANNER_DISCOVERY); String isForSD = element.getAttribute(USE_BY_SCANNER_DISCOVERY);
if (isForSD != null){ 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 // Options hold different types of values
if (element.getAttribute(VALUE_TYPE) != null) { if (element.getAttribute(VALUE_TYPE) != null) {
String valueTypeStr = element.getAttribute(VALUE_TYPE); 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 // 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 // which they should be
browseType = null; browseType = null;
} else if (browseTypeStr.equals(NONE)) { } else if (browseTypeStr.equals(NONE)) {
browseType = new Integer(BROWSE_NONE); browseType = BROWSE_NONE;
} else if (browseTypeStr.equals(FILE)) { } else if (browseTypeStr.equals(FILE)) {
browseType = new Integer(BROWSE_FILE); browseType = BROWSE_FILE;
} else if (browseTypeStr.equals(DIR)) { } 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 // which they should be
resourceFilter = null; resourceFilter = null;
} else if (resFilterStr.equals(ALL)) { } else if (resFilterStr.equals(ALL)) {
resourceFilter = new Integer(FILTER_ALL); resourceFilter = FILTER_ALL;
} else if (resFilterStr.equals(FILE)) { } else if (resFilterStr.equals(FILE)) {
resourceFilter = new Integer(FILTER_FILE); resourceFilter = FILTER_FILE;
} else if (resFilterStr.equals(PROJECT)) { } 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 @Override
public boolean isForScannerDiscovery() { public boolean isForScannerDiscovery() {
if (isForScannerDiscovery == null) { if (isForScannerDiscovery == null) {
isForScannerDiscovery = Boolean.valueOf(superClass != null && superClass.isForScannerDiscovery()); isForScannerDiscovery = superClass != null && superClass.isForScannerDiscovery();
} }
return isForScannerDiscovery; return isForScannerDiscovery;
} }
@ -1601,7 +1600,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
} }
switch (valType) { switch (valType) {
case BOOLEAN: case BOOLEAN:
val = Boolean.valueOf(false); val = Boolean.FALSE;
break; break;
case STRING: case STRING:
case TREE: case TREE:
@ -1662,7 +1661,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
} }
switch (valType) { switch (valType) {
case BOOLEAN: case BOOLEAN:
val = Boolean.valueOf(false); val = Boolean.FALSE;
break; break;
case STRING: case STRING:
case TREE: case TREE:
@ -1862,7 +1861,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
@Override @Override
public void setResourceFilter(int filter) { public void setResourceFilter(int filter) {
if (resourceFilter == null || !(filter == resourceFilter.intValue())) { if (resourceFilter == null || !(filter == resourceFilter.intValue())) {
resourceFilter = new Integer(filter); resourceFilter = Integer.valueOf(filter);
if(!isExtensionElement()){ if(!isExtensionElement()){
isDirty = true; isDirty = true;
rebuildState = true; rebuildState = true;
@ -1873,7 +1872,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
@Override @Override
public void setBrowseType(int type) { public void setBrowseType(int type) {
if (browseType == null || !(type == browseType.intValue())) { if (browseType == null || !(type == browseType.intValue())) {
browseType = new Integer(type); browseType = Integer.valueOf(type);
if(!isExtensionElement()){ if(!isExtensionElement()){
isDirty = true; isDirty = true;
rebuildState = true; rebuildState = true;
@ -1906,7 +1905,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
@Override @Override
public void setValue(boolean value) throws BuildException { public void setValue(boolean value) throws BuildException {
if (/*!isExtensionElement() && */getValueType() == BOOLEAN){ if (/*!isExtensionElement() && */getValueType() == BOOLEAN){
this.value = Boolean.valueOf(value); this.value = value;
} else { } else {
throw new BuildException(ManagedMakeMessages.getResourceString("Option.error.bad_value_type")); //$NON-NLS-1$ 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) { public void setValueType(int type) {
// TODO: Verify that this is a valid type // TODO: Verify that this is a valid type
if (valueType == null || valueType.intValue() != type) { if (valueType == null || valueType.intValue() != type) {
valueType = new Integer(type); valueType = Integer.valueOf(type);
if(!isExtensionElement()){ if(!isExtensionElement()){
setDirty(true); setDirty(true);
rebuildState = true; rebuildState = true;

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -354,7 +354,7 @@ public class OptionReference implements IOption {
return command; return command;
} catch (BuildException e) {} } catch (BuildException e) {}
} }
return new String(); return ""; //$NON-NLS-1$
} }
@Override @Override
@ -368,7 +368,7 @@ public class OptionReference implements IOption {
return command; return command;
} catch (BuildException e) {} } catch (BuildException e) {}
} }
return new String(); return ""; //$NON-NLS-1$
} }
@Override @Override
@ -679,7 +679,7 @@ public class OptionReference implements IOption {
@Override @Override
public void setValue(boolean value) throws BuildException { public void setValue(boolean value) throws BuildException {
if (getValueType() == BOOLEAN) { if (getValueType() == BOOLEAN) {
this.value = Boolean.valueOf(value); this.value = value;
} }
else { else {
throw new BuildException(ManagedMakeMessages.getResourceString("Option.error.bad_value_type")); //$NON-NLS-1$ throw new BuildException(ManagedMakeMessages.getResourceString("Option.error.bad_value_type")); //$NON-NLS-1$
@ -729,7 +729,7 @@ public class OptionReference implements IOption {
@Override @Override
public String toString() { public String toString() {
String answer = new String(); String answer = ""; //$NON-NLS-1$
if (option != null) { if (option != null) {
answer += "Reference to " + option.getName(); //$NON-NLS-1$ answer += "Reference to " + option.getName(); //$NON-NLS-1$
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -33,7 +33,7 @@ import org.osgi.framework.Version;
public class OutputType extends BuildObject implements IOutputType { public class OutputType extends BuildObject implements IOutputType {
private static final String DEFAULT_SEPARATOR = ","; //$NON-NLS-1$ 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 // Superclass
private IOutputType superClass; private IOutputType superClass;
@ -149,7 +149,7 @@ public class OutputType extends BuildObject implements IOutputType {
superClass = outputType.superClass; superClass = outputType.superClass;
if (superClass != null) { if (superClass != null) {
if (outputType.superClassId != null) { if (outputType.superClassId != null) {
superClassId = new String(outputType.superClassId); superClassId = outputType.superClassId;
} }
} }
setId(Id); setId(Id);
@ -159,36 +159,36 @@ public class OutputType extends BuildObject implements IOutputType {
// Copy the remaining attributes // Copy the remaining attributes
if (outputType.outputContentTypeId != null) { if (outputType.outputContentTypeId != null) {
outputContentTypeId = new String(outputType.outputContentTypeId); outputContentTypeId = outputType.outputContentTypeId;
} }
outputContentType = outputType.outputContentType; outputContentType = outputType.outputContentType;
if (outputType.outputs != null) { if (outputType.outputs != null) {
outputs = new String(outputType.outputs); outputs = outputType.outputs;
} }
if (outputType.optionId != null) { if (outputType.optionId != null) {
optionId = new String(outputType.optionId); optionId = outputType.optionId;
} }
if (outputType.buildVariable != null) { if (outputType.buildVariable != null) {
buildVariable = new String(outputType.buildVariable); buildVariable = outputType.buildVariable;
} }
if (outputType.multipleOfType != null) { if (outputType.multipleOfType != null) {
multipleOfType = Boolean.valueOf(outputType.multipleOfType.booleanValue()); multipleOfType = outputType.multipleOfType;
} }
if (outputType.primaryInputTypeId != null) { if (outputType.primaryInputTypeId != null) {
primaryInputTypeId = new String(outputType.primaryInputTypeId); primaryInputTypeId = outputType.primaryInputTypeId;
} }
primaryInputType = outputType.primaryInputType; primaryInputType = outputType.primaryInputType;
if (outputType.primaryOutput != null) { if (outputType.primaryOutput != null) {
primaryOutput = Boolean.valueOf(outputType.primaryOutput.booleanValue()); primaryOutput = outputType.primaryOutput;
} }
if (outputType.outputPrefix != null) { if (outputType.outputPrefix != null) {
outputPrefix = new String(outputType.outputPrefix); outputPrefix = outputType.outputPrefix;
} }
if (outputType.outputNames != null) { if (outputType.outputNames != null) {
outputNames = new String(outputType.outputNames); outputNames = outputType.outputNames;
} }
if (outputType.namePattern != null) { if (outputType.namePattern != null) {
namePattern = new String(outputType.namePattern); namePattern = outputType.namePattern;
} }
nameProviderElement = outputType.nameProviderElement; nameProviderElement = outputType.nameProviderElement;
@ -237,7 +237,7 @@ public class OutputType extends BuildObject implements IOutputType {
// multipleOfType // multipleOfType
String isMOT = element.getAttribute(IOutputType.MULTIPLE_OF_TYPE); String isMOT = element.getAttribute(IOutputType.MULTIPLE_OF_TYPE);
if (isMOT != null){ if (isMOT != null){
multipleOfType = Boolean.valueOf("true".equals(isMOT)); //$NON-NLS-1$ multipleOfType = Boolean.parseBoolean(isMOT);
} }
// primaryInputType // primaryInputType
@ -246,7 +246,7 @@ public class OutputType extends BuildObject implements IOutputType {
// primaryOutput // primaryOutput
String isPO = element.getAttribute(IOutputType.PRIMARY_OUTPUT); String isPO = element.getAttribute(IOutputType.PRIMARY_OUTPUT);
if (isPO != null){ if (isPO != null){
primaryOutput = Boolean.valueOf("true".equals(isPO)); //$NON-NLS-1$ primaryOutput = Boolean.parseBoolean(isPO);
} }
// outputPrefix // outputPrefix
@ -312,7 +312,7 @@ public class OutputType extends BuildObject implements IOutputType {
if (element.getAttribute(IOutputType.MULTIPLE_OF_TYPE) != null) { if (element.getAttribute(IOutputType.MULTIPLE_OF_TYPE) != null) {
String isMOT = element.getAttribute(IOutputType.MULTIPLE_OF_TYPE); String isMOT = element.getAttribute(IOutputType.MULTIPLE_OF_TYPE);
if (isMOT != null){ 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) { if (element.getAttribute(IOutputType.PRIMARY_OUTPUT) != null) {
String isPO = element.getAttribute(IOutputType.PRIMARY_OUTPUT); String isPO = element.getAttribute(IOutputType.PRIMARY_OUTPUT);
if (isPO != null){ 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 @Override
public void setMultipleOfType(boolean b) { public void setMultipleOfType(boolean b) {
if (multipleOfType == null || !(b == multipleOfType.booleanValue())) { if (multipleOfType == null || !(b == multipleOfType.booleanValue())) {
multipleOfType = Boolean.valueOf(b); multipleOfType = b;
setDirty(true); setDirty(true);
setRebuildState(true); setRebuildState(true);
} }
@ -820,7 +820,7 @@ public class OutputType extends BuildObject implements IOutputType {
@Override @Override
public void setPrimaryOutput(boolean b) { public void setPrimaryOutput(boolean b) {
if (primaryOutput == null || !(b == primaryOutput.booleanValue())) { if (primaryOutput == null || !(b == primaryOutput.booleanValue())) {
primaryOutput = Boolean.valueOf(b); primaryOutput = b;
setDirty(true); setDirty(true);
setRebuildState(true); setRebuildState(true);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -42,7 +42,7 @@ import org.osgi.framework.Version;
public class ProjectType extends BuildObject implements IProjectType, IBuildPropertiesRestriction, IBuildPropertyChangeListener { 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]; //private static final IConfiguration[] emptyConfigs = new IConfiguration[0];
// Superclass // Superclass
@ -187,13 +187,13 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
// isAbstract // isAbstract
String isAbs = element.getAttribute(IS_ABSTRACT); String isAbs = element.getAttribute(IS_ABSTRACT);
if (isAbs != null){ if (isAbs != null){
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$ isAbstract = Boolean.parseBoolean(isAbs);
} }
// Is this a test project type // Is this a test project type
String isTestStr = element.getAttribute(IS_TEST); String isTestStr = element.getAttribute(IS_TEST);
if (isTestStr != null){ 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 // 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) { if (superClass != null) {
return (superClass).getNameAttribute(); return (superClass).getNameAttribute();
} else { } else {
return new String(""); //$NON-NLS-1$ return ""; //$NON-NLS-1$
} }
} else { } else {
return name; return name;
@ -382,14 +382,14 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
*/ */
@Override @Override
public void setIsAbstract(boolean b) { public void setIsAbstract(boolean b) {
isAbstract = Boolean.valueOf(b); isAbstract = b;
} }
/** /**
* Sets the isTest attribute * Sets the isTest attribute
*/ */
public void setIsTest(boolean b) { public void setIsTest(boolean b) {
isTest = Boolean.valueOf(b); isTest = b;
} }
/* /*

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -140,7 +140,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
setDirty(false); setDirty(false);
toolsToInvoke = EMPTY_STRING; toolsToInvoke = EMPTY_STRING;
rcbsApplicability = new Integer(KIND_DISABLE_RCBS_TOOL); rcbsApplicability = KIND_DISABLE_RCBS_TOOL;
// Get file extension. // Get file extension.
@ -190,7 +190,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
toolsToInvoke = new String(cloneConfig.toolsToInvoke); toolsToInvoke = new String(cloneConfig.toolsToInvoke);
} }
if (cloneConfig.rcbsApplicability != null) { if (cloneConfig.rcbsApplicability != null) {
rcbsApplicability = new Integer(cloneConfig.rcbsApplicability.intValue()); rcbsApplicability = cloneConfig.rcbsApplicability;
} }
boolean copyIds = cloneChildren && id.equals(cloneConfig.id); boolean copyIds = cloneChildren && id.equals(cloneConfig.id);
@ -316,7 +316,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
// Copy the remaining attributes // Copy the remaining attributes
toolsToInvoke = baseInfo.toolsToInvoke; toolsToInvoke = baseInfo.toolsToInvoke;
rcbsApplicability = new Integer(KIND_DISABLE_RCBS_TOOL); rcbsApplicability = KIND_DISABLE_RCBS_TOOL;
// Clone the resource configuration's tool children // Clone the resource configuration's tool children
if (baseInfo.toolList != null) { if (baseInfo.toolList != null) {
@ -354,13 +354,13 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
// rcbsApplicability // rcbsApplicability
String rcbsApplicabilityStr = element.getAttribute(IResourceConfiguration.RCBS_APPLICABILITY); String rcbsApplicabilityStr = element.getAttribute(IResourceConfiguration.RCBS_APPLICABILITY);
if (rcbsApplicabilityStr == null || rcbsApplicabilityStr.equals(DISABLE_RCBS_TOOL)) { 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)) { } 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)) { } 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)) { } 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) { if (element.getAttribute(IResourceConfiguration.RCBS_APPLICABILITY) != null) {
String rcbsApplicabilityStr = element.getAttribute(IResourceConfiguration.RCBS_APPLICABILITY); String rcbsApplicabilityStr = element.getAttribute(IResourceConfiguration.RCBS_APPLICABILITY);
if (rcbsApplicabilityStr == null || rcbsApplicabilityStr.equals(DISABLE_RCBS_TOOL)) { 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)) { } 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)) { } 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)) { } 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. * Choices are before, after, or override other tools, or disable rcbs tool.
*/ */
if (rcbsApplicability == null || !(rcbsApplicability.intValue() == newValue)) { if (rcbsApplicability == null || !(rcbsApplicability.intValue() == newValue)) {
rcbsApplicability = new Integer(newValue); rcbsApplicability = newValue;
setDirty(true); setDirty(true);
setRebuildState(true); setRebuildState(true);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -135,7 +135,7 @@ public abstract class ResourceInfo extends BuildObject implements IResourceInfo
// exclude // exclude
String excludeStr = element.getAttribute(EXCLUDE); String excludeStr = element.getAttribute(EXCLUDE);
if (excludeStr != null){ 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) { if (element.getAttribute(EXCLUDE) != null) {
String excludeStr = element.getAttribute(EXCLUDE); String excludeStr = element.getAttribute(EXCLUDE);
if (excludeStr != null){ if (excludeStr != null){
config.setExcluded(getPath(), isFolderInfo(), ("true".equals(excludeStr))); //$NON-NLS-1$ config.setExcluded(getPath(), isFolderInfo(), (Boolean.parseBoolean(excludeStr)));
} }
} }
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -103,10 +103,10 @@ public class Target extends BuildObject implements ITarget {
defaultExtension = SafeStringInterner.safeIntern(element.getAttribute(DEFAULT_EXTENSION)); defaultExtension = SafeStringInterner.safeIntern(element.getAttribute(DEFAULT_EXTENSION));
// isAbstract // isAbstract
isAbstract = ("true".equals(element.getAttribute(IS_ABSTRACT))); //$NON-NLS-1$ isAbstract = Boolean.parseBoolean(element.getAttribute(IS_ABSTRACT));
// Is this a test target // 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 // Get the clean command
cleanCommand = SafeStringInterner.safeIntern(element.getAttribute(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); parent = ManagedBuildManager.getTarget(null, parentId);
// isAbstract // isAbstract
if ("true".equals(element.getAttribute(IS_ABSTRACT))) //$NON-NLS-1$ if (Boolean.parseBoolean(element.getAttribute(IS_ABSTRACT)))
isAbstract = true; isAbstract = true;
// Is this a test target // 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 // Get the clean command
if (element.hasAttribute(CLEAN_COMMAND)) { if (element.hasAttribute(CLEAN_COMMAND)) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -30,7 +30,7 @@ import org.osgi.framework.Version;
public class TargetPlatform extends BuildObject implements ITargetPlatform { 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 // Superclass
private ITargetPlatform superClass; private ITargetPlatform superClass;
@ -156,7 +156,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
errorParserIds = new String(targetPlatform.errorParserIds); errorParserIds = new String(targetPlatform.errorParserIds);
} }
if (targetPlatform.isAbstract != null) { if (targetPlatform.isAbstract != null) {
isAbstract = Boolean.valueOf(targetPlatform.isAbstract.booleanValue()); isAbstract = targetPlatform.isAbstract;
} }
if (targetPlatform.osList != null) { if (targetPlatform.osList != null) {
osList = new ArrayList<String>(targetPlatform.osList); osList = new ArrayList<String>(targetPlatform.osList);
@ -199,7 +199,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
// isAbstract // isAbstract
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ if (isAbs != null){
isAbstract = Boolean.valueOf("true".equals(isAbs)); //$NON-NLS-1$ isAbstract = Boolean.parseBoolean(isAbs);
} }
// Get the comma-separated list of valid OS // 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) { if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ 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 @Override
public void setIsAbstract(boolean b) { public void setIsAbstract(boolean b) {
isAbstract = Boolean.valueOf(b); isAbstract = b;
setDirty(true); setDirty(true);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -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 String DEFAULT_SEPARATOR = ","; //$NON-NLS-1$
//private static final IOptionCategory[] EMPTY_CATEGORIES = new IOptionCategory[0]; //private static final IOptionCategory[] EMPTY_CATEGORIES = new IOptionCategory[0];
//private static final IOption[] EMPTY_OPTIONS = new IOption[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_QUOTED_STRING = "\"\""; //$NON-NLS-1$
private static final String[] EMPTY_STRING_ARRAY = new String[0]; private static final String[] EMPTY_STRING_ARRAY = new String[0];
private static final String DEFAULT_ANNOUNCEMENT_PREFIX = "Tool.default.announcement"; //$NON-NLS-1$ 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 // Copy the remaining attributes
if(tool.versionsSupported != null) { if(tool.versionsSupported != null) {
versionsSupported = new String(tool.versionsSupported); versionsSupported = tool.versionsSupported;
} }
if(tool.convertToId != null) { if(tool.convertToId != null) {
convertToId = new String(tool.convertToId); convertToId = tool.convertToId;
} }
if (tool.unusedChildren != null) { if (tool.unusedChildren != null) {
unusedChildren = new String(tool.unusedChildren); unusedChildren = tool.unusedChildren;
} }
if (tool.errorParserIds != null) { if (tool.errorParserIds != null) {
errorParserIds = new String(tool.errorParserIds); errorParserIds = tool.errorParserIds;
} }
if (tool.isAbstract != null) { if (tool.isAbstract != null) {
isAbstract = Boolean.valueOf(tool.isAbstract.booleanValue()); isAbstract = tool.isAbstract;
} }
if (tool.command != null) { if (tool.command != null) {
command = new String(tool.command); command = tool.command;
} }
if (tool.commandLinePattern != null) { if (tool.commandLinePattern != null) {
commandLinePattern = new String(tool.commandLinePattern); commandLinePattern = tool.commandLinePattern;
} }
if (tool.inputExtensions != null) { if (tool.inputExtensions != null) {
inputExtensions = new ArrayList<String>(tool.inputExtensions); 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); interfaceExtensions = new ArrayList<String>(tool.interfaceExtensions);
} }
if (tool.natureFilter != null) { if (tool.natureFilter != null) {
natureFilter = new Integer(tool.natureFilter.intValue()); natureFilter = tool.natureFilter;
} }
if (tool.outputExtensions != null) { if (tool.outputExtensions != null) {
outputExtensions = new String(tool.outputExtensions); outputExtensions = tool.outputExtensions;
} }
if (tool.outputFlag != null) { if (tool.outputFlag != null) {
outputFlag = new String(tool.outputFlag); outputFlag = tool.outputFlag;
} }
if (tool.outputPrefix != null) { if (tool.outputPrefix != null) {
outputPrefix = new String(tool.outputPrefix); outputPrefix = tool.outputPrefix;
} }
if (tool.advancedInputCategory != null) { if (tool.advancedInputCategory != null) {
advancedInputCategory = Boolean.valueOf(tool.advancedInputCategory.booleanValue()); advancedInputCategory = tool.advancedInputCategory;
} }
if (tool.customBuildStep != null) { if (tool.customBuildStep != null) {
customBuildStep = Boolean.valueOf(tool.customBuildStep.booleanValue()); customBuildStep = tool.customBuildStep;
} }
if (tool.announcement != null) { if (tool.announcement != null) {
announcement = new String(tool.announcement); announcement = tool.announcement;
} }
if (tool.isHidden != null) { if (tool.isHidden != null) {
isHidden = tool.isHidden; isHidden = tool.isHidden;
@ -701,7 +701,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
// isAbstract // isAbstract
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ 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 // 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); String nature = element.getAttribute(NATURE);
if (nature != null) { if (nature != null) {
if ("both".equals(nature)) { //$NON-NLS-1$ if ("both".equals(nature)) { //$NON-NLS-1$
natureFilter = new Integer(FILTER_BOTH); natureFilter = FILTER_BOTH;
} else if ("cnature".equals(nature)) { //$NON-NLS-1$ } else if ("cnature".equals(nature)) { //$NON-NLS-1$
natureFilter = new Integer(FILTER_C); natureFilter = FILTER_C;
} else if ("ccnature".equals(nature)) { //$NON-NLS-1$ } else if ("ccnature".equals(nature)) { //$NON-NLS-1$
natureFilter = new Integer(FILTER_CC); natureFilter = FILTER_CC;
} else { } else {
natureFilter = new Integer(FILTER_BOTH); natureFilter = FILTER_BOTH;
} }
} }
@ -757,13 +757,13 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
// Get advancedInputCategory // Get advancedInputCategory
String advInput = element.getAttribute(ITool.ADVANCED_INPUT_CATEGORY); String advInput = element.getAttribute(ITool.ADVANCED_INPUT_CATEGORY);
if (advInput != null){ if (advInput != null){
advancedInputCategory = Boolean.valueOf("true".equals(advInput)); //$NON-NLS-1$ advancedInputCategory = Boolean.parseBoolean(advInput);
} }
// Get customBuildStep // Get customBuildStep
String cbs = element.getAttribute(ITool.CUSTOM_BUILD_STEP); String cbs = element.getAttribute(ITool.CUSTOM_BUILD_STEP);
if (cbs != null){ if (cbs != null){
customBuildStep = Boolean.valueOf("true".equals(cbs)); //$NON-NLS-1$ customBuildStep = Boolean.parseBoolean(cbs);
} }
// Get the announcement text // Get the announcement text
@ -842,7 +842,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) { if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ 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); String nature = element.getAttribute(NATURE);
if (nature != null) { if (nature != null) {
if ("both".equals(nature)) { //$NON-NLS-1$ if ("both".equals(nature)) { //$NON-NLS-1$
natureFilter = new Integer(FILTER_BOTH); natureFilter = FILTER_BOTH;
} else if ("cnature".equals(nature)) { //$NON-NLS-1$ } else if ("cnature".equals(nature)) { //$NON-NLS-1$
natureFilter = new Integer(FILTER_C); natureFilter = FILTER_C;
} else if ("ccnature".equals(nature)) { //$NON-NLS-1$ } else if ("ccnature".equals(nature)) { //$NON-NLS-1$
natureFilter = new Integer(FILTER_CC); natureFilter = FILTER_CC;
} else { } 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) { if (element.getAttribute(ITool.ADVANCED_INPUT_CATEGORY) != null) {
String advInput = element.getAttribute(ITool.ADVANCED_INPUT_CATEGORY); String advInput = element.getAttribute(ITool.ADVANCED_INPUT_CATEGORY);
if (advInput != null){ 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) { if (element.getAttribute(ITool.CUSTOM_BUILD_STEP) != null) {
String cbs = element.getAttribute(ITool.CUSTOM_BUILD_STEP); String cbs = element.getAttribute(ITool.CUSTOM_BUILD_STEP);
if (cbs != null){ 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 @Override
public void setIsAbstract(boolean b) { public void setIsAbstract(boolean b) {
isAbstract = Boolean.valueOf(b); isAbstract = b;
setDirty(true); setDirty(true);
} }
@ -2081,9 +2081,9 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
return getSuperClass().getCommandLinePattern(); return getSuperClass().getCommandLinePattern();
} else { } else {
if (getCustomBuildStep()) { if (getCustomBuildStep()) {
return new String(DEFAULT_CBS_PATTERN); // Default pattern return DEFAULT_CBS_PATTERN; // Default pattern
} else { } 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 @Override
public void setAdvancedInputCategory(boolean b) { public void setAdvancedInputCategory(boolean b) {
if (advancedInputCategory == null || !(b == advancedInputCategory.booleanValue())) { if (advancedInputCategory == null || !(b == advancedInputCategory.booleanValue())) {
advancedInputCategory = Boolean.valueOf(b); advancedInputCategory = b;
setDirty(true); setDirty(true);
} }
} }
@ -2541,7 +2541,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
@Override @Override
public void setCustomBuildStep(boolean b) { public void setCustomBuildStep(boolean b) {
if (customBuildStep == null || !(b == customBuildStep.booleanValue())) { if (customBuildStep == null || !(b == customBuildStep.booleanValue())) {
customBuildStep = Boolean.valueOf(b); customBuildStep = b;
setDirty(true); setDirty(true);
} }
} }
@ -3087,7 +3087,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
} }
if (found) if (found)
return ret.trim(); return ret.trim();
return (new String(command + values)).trim(); return (command + values).trim();
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -66,7 +66,7 @@ import org.osgi.framework.Version;
public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProvider<ToolChain>, IRealBuildObjectAssociation { 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$ 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()); setSuperClassInternal(toolChain.getSuperClass());
if (getSuperClass() != null) { if (getSuperClass() != null) {
if (toolChain.superClassId != null) { if (toolChain.superClassId != null) {
superClassId = new String(toolChain.superClassId); superClassId = toolChain.superClassId;
} }
} }
setId(Id); setId(Id);
@ -316,17 +316,17 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
// Copy the remaining attributes // Copy the remaining attributes
if(toolChain.versionsSupported != null) { if(toolChain.versionsSupported != null) {
versionsSupported = new String(toolChain.versionsSupported); versionsSupported = toolChain.versionsSupported;
} }
if(toolChain.convertToId != null) { if(toolChain.convertToId != null) {
convertToId = new String(toolChain.convertToId); convertToId = toolChain.convertToId;
} }
if (toolChain.unusedChildren != null) { if (toolChain.unusedChildren != null) {
unusedChildren = new String(toolChain.unusedChildren); unusedChildren = toolChain.unusedChildren;
} }
if (toolChain.errorParserIds != null) { if (toolChain.errorParserIds != null) {
errorParserIds = new String(toolChain.errorParserIds); errorParserIds = toolChain.errorParserIds;
} }
if (toolChain.osList != null) { if (toolChain.osList != null) {
osList = new ArrayList<String>(toolChain.osList); osList = new ArrayList<String>(toolChain.osList);
@ -335,16 +335,16 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
archList = new ArrayList<String>(toolChain.archList); archList = new ArrayList<String>(toolChain.archList);
} }
if (toolChain.targetToolIds != null) { if (toolChain.targetToolIds != null) {
targetToolIds = new String(toolChain.targetToolIds); targetToolIds = toolChain.targetToolIds;
} }
if (toolChain.secondaryOutputIds != null) { if (toolChain.secondaryOutputIds != null) {
secondaryOutputIds = new String(toolChain.secondaryOutputIds); secondaryOutputIds = toolChain.secondaryOutputIds;
} }
if (toolChain.isAbstract != null) { if (toolChain.isAbstract != null) {
isAbstract = Boolean.valueOf(toolChain.isAbstract.booleanValue()); isAbstract = toolChain.isAbstract;
} }
if (toolChain.scannerConfigDiscoveryProfileId != null) { if (toolChain.scannerConfigDiscoveryProfileId != null) {
scannerConfigDiscoveryProfileId = new String(toolChain.scannerConfigDiscoveryProfileId); scannerConfigDiscoveryProfileId = toolChain.scannerConfigDiscoveryProfileId;
} }
isRcTypeBasedDiscovery = toolChain.isRcTypeBasedDiscovery; isRcTypeBasedDiscovery = toolChain.isRcTypeBasedDiscovery;
@ -545,7 +545,7 @@ public class ToolChain extends HoldsOptions implements IToolChain, IMatchKeyProv
// isAbstract // isAbstract
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ 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 // 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) { if (element.getAttribute(IProjectType.IS_ABSTRACT) != null) {
String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT); String isAbs = element.getAttribute(IProjectType.IS_ABSTRACT);
if (isAbs != null){ 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 @Override
public void setIsAbstract(boolean b) { public void setIsAbstract(boolean b) {
isAbstract = Boolean.valueOf(b); isAbstract = b;
setDirty(true); setDirty(true);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -306,7 +306,7 @@ public class BuildLanguageData extends CLanguageData {
/* private IOption[] getOptionsForType(int type){ /* private IOption[] getOptionsForType(int type){
Map map = getTypeToOptionArrayMap(); Map map = getTypeToOptionArrayMap();
return (IOption[])map.get(new Integer(type)); return (IOption[])map.get(Integer.valueOf(type));
} }
*/ */

View file

@ -205,7 +205,7 @@ public abstract class AbstractBuildCommandParser extends AbstractLanguageSetting
String pattern = template String pattern = template
.replace("${COMPILER_PATTERN}", getCompilerPatternExtended()) .replace("${COMPILER_PATTERN}", getCompilerPatternExtended())
.replace("${EXTENSIONS_PATTERN}", getPatternFileExtensions()) .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; return pattern;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -950,7 +950,7 @@ public abstract class AbstractBuiltinSpecsDetector extends AbstractLanguageSetti
int result = super.hashCode(); int result = super.hashCode();
result = prime * result + (isConsoleEnabled ? 1231 : 1237); result = prime * result + (isConsoleEnabled ? 1231 : 1237);
result = prime * result + (isExecuted ? 1231 : 1237); result = prime * result + (isExecuted ? 1231 : 1237);
result = prime * result + new Long(envPathHash).hashCode(); result = prime * result + Long.valueOf(envPathHash).hashCode();
return result; return result;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -117,7 +117,7 @@ public class DefaultGCCDependencyCalculator2Commands implements
new FileContextData(sourceLocation, outputLocation, new FileContextData(sourceLocation, outputLocation,
null, tool)).length > 0; null, tool)).length > 0;
if (needExplicitRuleForFile) genericCommands = Boolean.valueOf(false); if (needExplicitRuleForFile) genericCommands = false;
} }
/** /**
@ -156,7 +156,7 @@ public class DefaultGCCDependencyCalculator2Commands implements
*/ */
@Override @Override
public boolean areCommandsGeneric() { public boolean areCommandsGeneric() {
if (genericCommands == null) genericCommands = Boolean.valueOf(true); if (genericCommands == null) genericCommands = true;
return genericCommands.booleanValue(); return genericCommands.booleanValue();
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -48,7 +48,7 @@ import org.eclipse.core.runtime.IPath;
*/ */
public class DefaultGCCDependencyCalculatorPreBuildCommands implements IManagedDependencyPreBuild { 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 // Member variables set by the constructor
IPath source; IPath source;
@ -121,7 +121,7 @@ public class DefaultGCCDependencyCalculatorPreBuildCommands implements IManagedD
new FileContextData(sourceLocation, outputLocation, new FileContextData(sourceLocation, outputLocation,
null, tool)).length > 0; 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 (genericCommands != null) return genericCommands.booleanValue();
// If the context is a Configuration, yes // If the context is a Configuration, yes
if (buildContext instanceof IConfiguration || buildContext instanceof IFolderInfo) { if (buildContext instanceof IConfiguration || buildContext instanceof IFolderInfo) {
genericCommands = Boolean.valueOf(true); genericCommands = true;
return true; return true;
} }
// If the context is a Resource Configuration, determine if it overrides any // If the context is a Resource Configuration, determine if it overrides any
// of its parent configuration's options that would affect dependency file // of its parent configuration's options that would affect dependency file
// generation. // generation.
// TODO // TODO
genericCommands = Boolean.valueOf(false); genericCommands = false;
return false; return false;
} }
@Override @Override
public String getBuildStepName() { public String getBuildStepName() {
return new String("GCC_DEPENDS"); //$NON-NLS-1$ return "GCC_DEPENDS"; //$NON-NLS-1$
} }
@Override @Override

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -201,7 +201,7 @@ class UpdateManagedProject12 {
name = "default"; //$NON-NLS-1$ name = "default"; //$NON-NLS-1$
} }
// Reconstruct the extension // Reconstruct the extension
String extension = new String(); String extension = ""; //$NON-NLS-1$
for (int index = 1; index < nameElements.length; ++index) { for (int index = 1; index < nameElements.length; ++index) {
extension += nameElements[index]; extension += nameElements[index];
if (index < nameElements.length - 1) { if (index < nameElements.length - 1) {
@ -322,7 +322,7 @@ class UpdateManagedProject12 {
} }
// Construct the new ID // Construct the new ID
optId = new String(); optId = ""; //$NON-NLS-1$
for (int rebuildIndex = 0; rebuildIndex < newIdVector.size(); ++ rebuildIndex) { for (int rebuildIndex = 0; rebuildIndex < newIdVector.size(); ++ rebuildIndex) {
String token = newIdVector.get(rebuildIndex); String token = newIdVector.get(rebuildIndex);
optId += token; optId += token;

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -40,7 +40,7 @@ import org.eclipse.jface.util.PropertyChangeEvent;
*/ */
public class ToolSettingsPrefStore implements IPreferenceStore { public class ToolSettingsPrefStore implements IPreferenceStore {
public static final String DEFAULT_SEPERATOR = ";"; //$NON-NLS-1$ 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; static ToolSettingsPrefStore store = null;

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -111,7 +111,7 @@ public class CheckerTestCase extends CodanTestCase {
line = (Integer) m.getAttribute(IMarker.LINE_NUMBER); line = (Integer) m.getAttribute(IMarker.LINE_NUMBER);
if (line == null || line.equals(-1)) { if (line == null || line.equals(-1)) {
Object pos = m.getAttribute(IMarker.CHAR_START); Object pos = m.getAttribute(IMarker.CHAR_START);
line = new Integer(pos2line(((Integer) pos).intValue())); line = pos2line(((Integer) pos).intValue());
} }
} catch (CoreException e) { } catch (CoreException e) {
fail(e.getMessage()); fail(e.getMessage());

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -142,7 +142,7 @@ public class ObjectMapTest extends TestCase {
public void testMapAdd() { public void testMapAdd() {
CharArrayObjectMap map = new CharArrayObjectMap(4); CharArrayObjectMap map = new CharArrayObjectMap(4);
char[] key1 = "key1".toCharArray(); char[] key1 = "key1".toCharArray();
Object value1 = new Integer(43); Integer value1 = 43;
map.put(key1, value1); map.put(key1, value1);
char[] key2 = "key1".toCharArray(); char[] key2 = "key1".toCharArray();
@ -150,7 +150,7 @@ public class ObjectMapTest extends TestCase {
assertEquals(value1, value2); assertEquals(value1, value2);
for (int i = 0; i < 25; ++i) { 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) { for (int i = 0; i < 25; ++i) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -81,8 +81,8 @@ public class XMLDumper {
clsName = clsName.replace('$', '.'); clsName = clsName.replace('$', '.');
Element element = document.createElement(clsName); Element element = document.createElement(clsName);
map.put(obj, new Integer(id)); map.put(obj, Integer.valueOf(id));
element.setAttribute("id",String.valueOf(id++)); //$NON-NLS-1$ element.setAttribute("id",Integer.toString(id++)); //$NON-NLS-1$
Field [] fields = cls.getDeclaredFields(); Field [] fields = cls.getDeclaredFields();
for (int i = 0; i < fields.length; ++i) { for (int i = 0; i < fields.length; ++i) {

View file

@ -6865,8 +6865,8 @@ public class AST2TemplateTests extends AST2TestBase {
ICPPSpecialization buffRef = assertionHelper.assertNonProblem("myA.buff[0] = 1;", "buff", ICPPSpecialization.class); ICPPSpecialization buffRef = assertionHelper.assertNonProblem("myA.buff[0] = 1;", "buff", ICPPSpecialization.class);
assertEquals(buff, buffRef.getSpecializedBinding()); assertEquals(buff, buffRef.getSpecializedBinding());
assertEquals(buffRef.getTemplateParameterMap().getArgument(0).getNonTypeValue().numericalValue(), new Long(4)); assertEquals(Long.valueOf(4),buffRef.getTemplateParameterMap().getArgument(0).getNonTypeValue().numericalValue());
assertEquals(buffRef.getTemplateParameterMap().getArgument(1).getNonTypeValue().numericalValue(), new Long(5)); assertEquals(Long.valueOf(5),buffRef.getTemplateParameterMap().getArgument(1).getNonTypeValue().numericalValue());
} }
// template<typename T, int Size> // template<typename T, int Size>
@ -6890,7 +6890,7 @@ public class AST2TemplateTests extends AST2TestBase {
assertEquals(buff, buffRef.getSpecializedBinding()); assertEquals(buff, buffRef.getSpecializedBinding());
assertSameType(buffRef.getTemplateParameterMap().getArgument(0).getTypeValue(), new CPPBasicType(IBasicType.Kind.eInt, 0)); 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> // template<typename T>

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -69,7 +69,7 @@ public class CharArrayMapTest extends TestCase {
} }
assertEquals(keys.length, map.size()); assertEquals(keys.length, map.size());
for(int i = 0; i < keys.length; i++) { 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; return System.currentTimeMillis() - start;
} }
@ -78,11 +78,11 @@ public class CharArrayMapTest extends TestCase {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
CharArrayObjectMap oldMap = new CharArrayObjectMap(keys.length); CharArrayObjectMap oldMap = new CharArrayObjectMap(keys.length);
for(int i = 0; i < keys.length; i++) { 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()); assertEquals(keys.length, oldMap.size());
for(int i = 0; i < keys.length; i++) { 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; return System.currentTimeMillis() - start;
} }
@ -105,10 +105,10 @@ public class CharArrayMapTest extends TestCase {
assertFalse(map.isEmpty()); assertFalse(map.isEmpty());
assertEquals(4, map.size()); assertEquals(4, map.size());
assertEquals(new Integer(1), map.get(key1)); assertEquals(Integer.valueOf(1), map.get(key1));
assertEquals(new Integer(2), map.get(key2)); assertEquals(Integer.valueOf(2), map.get(key2));
assertEquals(new Integer(3), map.get(key3)); assertEquals(Integer.valueOf(3), map.get(key3));
assertEquals(new Integer(4), map.get(key4)); assertEquals(Integer.valueOf(4), map.get(key4));
assertTrue(map.containsKey(key1)); assertTrue(map.containsKey(key1));
assertTrue(map.containsKey(key2)); assertTrue(map.containsKey(key2));
@ -131,7 +131,7 @@ public class CharArrayMapTest extends TestCase {
} }
// remove a mapping // remove a mapping
assertEquals(new Integer(1), map.remove(key1)); assertEquals(Integer.valueOf(1), map.remove(key1));
assertEquals(3, map.size()); assertEquals(3, map.size());
assertNull(map.get(key1)); assertNull(map.get(key1));
assertFalse(map.containsKey(key1)); assertFalse(map.containsKey(key1));
@ -152,13 +152,13 @@ public class CharArrayMapTest extends TestCase {
// overrideing values should // overrideing values should
map.put(key1, 100); map.put(key1, 100);
assertEquals(1, map.size()); assertEquals(1, map.size());
assertEquals(new Integer(100), map.get(key1)); assertEquals(Integer.valueOf(100), map.get(key1));
assertTrue(map.containsValue(100)); assertTrue(map.containsValue(100));
assertFalse(map.containsValue(null)); assertFalse(map.containsValue(null));
// override the value // override the value
map.put(key1, 200); map.put(key1, 200);
assertEquals(1, map.size()); assertEquals(1, map.size());
assertEquals(new Integer(200), map.get(key1)); assertEquals(Integer.valueOf(200), map.get(key1));
assertTrue(map.containsValue(200)); assertTrue(map.containsValue(200));
assertFalse(map.containsValue(100)); assertFalse(map.containsValue(100));
} }
@ -201,8 +201,8 @@ public class CharArrayMapTest extends TestCase {
// should still work with equivalent keys // should still work with equivalent keys
for(int i = 0; i < keys.length; i++) { for(int i = 0; i < keys.length; i++) {
Slice slice = slices[i]; Slice slice = slices[i];
assertEquals(new Integer(i), map.get(slice.chars, slice.start, slice.length)); assertEquals(Integer.valueOf(i), map.get(slice.chars, slice.start, slice.length));
assertEquals(new Integer(i), map.get(keys[i])); assertEquals(Integer.valueOf(i), map.get(keys[i]));
assertTrue(map.containsKey(slice.chars, slice.start, slice.length)); assertTrue(map.containsKey(slice.chars, slice.start, slice.length));
assertTrue(map.containsKey(keys[i])); assertTrue(map.containsKey(keys[i]));
assertTrue(map.containsValue(i)); assertTrue(map.containsValue(i));
@ -226,8 +226,8 @@ public class CharArrayMapTest extends TestCase {
// remaining keys should still be there // remaining keys should still be there
for(int i = 0; i < 5; i++) { for(int i = 0; i < 5; i++) {
Slice slice = slices[i]; Slice slice = slices[i];
assertEquals(new Integer(i), map.get(slice.chars, slice.start, slice.length)); assertEquals(Integer.valueOf(i), map.get(slice.chars, slice.start, slice.length));
assertEquals(new Integer(i), map.get(keys[i])); assertEquals(Integer.valueOf(i), map.get(keys[i]));
assertTrue(map.containsKey(slice.chars, slice.start, slice.length)); assertTrue(map.containsKey(slice.chars, slice.start, slice.length));
assertTrue(map.containsKey(keys[i])); assertTrue(map.containsKey(keys[i]));
assertTrue(map.containsValue(i)); assertTrue(map.containsValue(i));
@ -283,7 +283,7 @@ public class CharArrayMapTest extends TestCase {
public void testProperFail() { public void testProperFail() {
char[] hello = "hello".toCharArray(); char[] hello = "hello".toCharArray();
CharArrayMap<Integer> map = new CharArrayMap<Integer>(); CharArrayMap<Integer> map = new CharArrayMap<Integer>();
Integer value = new Integer(9); Integer value = 9;
try { try {
map.put(null, value); map.put(null, value);

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -142,7 +142,7 @@ public class PortedScannerTests extends PreprocessorTestsBase {
} }
public int symbolValue(int index) { 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() { public String generateCode() {
@ -190,7 +190,7 @@ public class PortedScannerTests extends PreprocessorTestsBase {
public TruthTable(int n) { public TruthTable(int n) {
numberOfVariables = 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]; rows = new TableRow[numberOfRows];
for (int i = 0; i < numberOfRows; ++i) { for (int i = 0; i < numberOfRows; ++i) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -146,7 +146,7 @@ public class BTreeTests extends BaseTestCase {
System.out.print("\t " + seed + " " + (nIterations/1000) + "K: "); System.out.print("\t " + seed + " " + (nIterations/1000) + "K: ");
for (int i = 0; i < nIterations; i++) { for (int i = 0; i < nIterations; i++) {
if (random.nextDouble() < pInsert) { 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); boolean newEntry = expected.add(value);
if (newEntry) { if (newEntry) {
BTMockRecord btValue = new BTMockRecord(db, value.intValue()); BTMockRecord btValue = new BTMockRecord(db, value.intValue());
@ -160,7 +160,7 @@ public class BTreeTests extends BaseTestCase {
int index = random.nextInt(history.size()); int index = random.nextInt(history.size());
BTMockRecord btValue = (BTMockRecord) history.get(index); BTMockRecord btValue = (BTMockRecord) history.get(index);
history.remove(index); history.remove(index);
expected.remove(new Integer(btValue.intValue())); expected.remove(Integer.valueOf(btValue.intValue()));
if (DEBUG > 1) if (DEBUG > 1)
System.out.println("Remove: " + btValue.intValue() + " @ " + btValue.record); System.out.println("Remove: " + btValue.intValue() + " @ " + btValue.record);
btree.delete(btValue.getRecord()); btree.delete(btValue.getRecord());

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -99,7 +99,7 @@ public class CDataUtil {
} }
public static String genId(String baseId) { public static String genId(String baseId) {
String suffix = new Integer(genRandomNumber()).toString(); String suffix = Integer.toString(genRandomNumber());
return baseId != null ? return baseId != null ?
new StringBuilder(baseId).append(".").append(suffix).toString() : //$NON-NLS-1$ new StringBuilder(baseId).append(".").append(suffix).toString() : //$NON-NLS-1$
suffix; suffix;
@ -1131,7 +1131,7 @@ public class CDataUtil {
} }
public static void setInteger(ICStorageElement el, String attr, int value) { 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{ public static ICExclusionPatternPathEntry addRemoveExclusionsToEntry(ICExclusionPatternPathEntry entry, IPath[] paths, boolean add) throws IllegalArgumentException{

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -376,7 +376,7 @@ public class SettingsSet {
for (EntryInfo info : level.getInfos()) { for (EntryInfo info : level.getInfos()) {
EntryNameKey key = info.getContentsKey(); EntryNameKey key = info.getContentsKey();
if (!map.containsKey(key)) if (!map.containsKey(key))
map.put(key, new Object[]{new Integer(l), info.getEntry()}); map.put(key, new Object[]{Integer.valueOf(l), info.getEntry()});
} }
} }

View file

@ -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 * This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution, * terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html * 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. * 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$ private static final String DEBUG_PREFIX= "[ASTCache] "; //$NON-NLS-1$
/** Fast parse mode (use PDOM) */ /** Fast parse mode (use PDOM) */

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -570,7 +570,7 @@ public class PathEntryUtil {
try { try {
IMarker marker = project.createMarker(ICModelMarker.PATHENTRY_PROBLEM_MARKER); IMarker marker = project.createMarker(ICModelMarker.PATHENTRY_PROBLEM_MARKER);
marker.setAttributes(new String[]{IMarker.MESSAGE, IMarker.SEVERITY, IMarker.LOCATION, 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$ "false",//$NON-NLS-1$
}); });
} catch (CoreException e) { } catch (CoreException e) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -205,7 +205,7 @@ public class Util implements ICLogConstants {
// Time stamp // Time stamp
if (addTimeStamp) if (addTimeStamp)
message = MessageFormat.format("[{0}] {1}", new Object[]{ //$NON-NLS-1$ message = MessageFormat.format("[{0}] {1}", new Object[]{ //$NON-NLS-1$
new Long(System.currentTimeMillis()), message}); Long.valueOf(System.currentTimeMillis()), message});
while (message.length() > 100) { while (message.length() > 100) {
String partial = message.substring(0, 100); String partial = message.substring(0, 100);
message = message.substring(100); message = message.substring(100);

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -236,7 +236,7 @@ public class CLanguageSetting extends CDataProxy implements
for(int i = 0; i < entries.length; i++){ for(int i = 0; i < entries.length; i++){
ICLanguageSettingEntry entry = entries[i]; ICLanguageSettingEntry entry = entries[i];
if(entry != null){ if(entry != null){
Integer iKind = new Integer(entry.getKind()); Integer iKind = Integer.valueOf(entry.getKind());
List[] addedRemovedListArr = (List[])map.get(iKind); List[] addedRemovedListArr = (List[])map.get(iKind);
if(addedRemovedListArr == null){ if(addedRemovedListArr == null){
addedRemovedListArr = new List[2]; addedRemovedListArr = new List[2];

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -38,7 +38,7 @@ public class CProjectDescriptionPreferences implements ICProjectDescriptionPrefe
fIsReadOnly = isReadOnly; fIsReadOnly = isReadOnly;
if(el != null){ if(el != null){
if(el.getAttribute(ATTR_CONFIG_RELATIONS) != 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; this.fSuperPreference = superPreference;
@ -77,7 +77,7 @@ public class CProjectDescriptionPreferences implements ICProjectDescriptionPrefe
if(fConfigRelations != null && fConfigRelations.intValue() == status) if(fConfigRelations != null && fConfigRelations.intValue() == status)
return; return;
fConfigRelations = new Integer(status); fConfigRelations = Integer.valueOf(status);
fIsModified = true; fIsModified = true;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -35,7 +35,7 @@ import java.util.TreeMap;
* *
* ex: * ex:
* char[] key = "one two three".toCharArray(); * 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(key, 4, 3); // returns 99
* map.get("two".toCharArray()); // returns 99 * map.get("two".toCharArray()); // returns 99
* *

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -30,73 +30,73 @@ public class ASTProblem extends ASTNode implements IASTProblem {
protected static final Map<Integer, String> errorMessages; protected static final Map<Integer, String> errorMessages;
static { static {
errorMessages = new HashMap<Integer, String>(); 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ 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$ ParserMessages.getString("ParserProblemFactory.error.syntax.missingSemicolon")); //$NON-NLS-1$
} }
@ -154,12 +154,12 @@ public class ASTProblem extends ASTNode implements IASTProblem {
char[] file= getOriginatingFileName(); char[] file= getOriginatingFileName();
int line= getSourceLineNumber(); 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$ return ParserMessages.getFormattedString("BaseProblemFactory.problemPattern", args); //$NON-NLS-1$
} }
public static String getMessage(int id, String arg) { 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) if (msg == null)
msg = ""; //$NON-NLS-1$ msg = ""; //$NON-NLS-1$

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -157,7 +157,7 @@ public class IndexCPPSignatureUtil {
*/ */
public static Integer getSignatureHash(IBinding binding) throws CoreException, DOMException { public static Integer getSignatureHash(IBinding binding) throws CoreException, DOMException {
String sig = getSignature(binding); String sig = getSignature(binding);
return sig.length() == 0 ? null : new Integer(sig.hashCode()); return sig.length() == 0 ? null : Integer.valueOf(sig.hashCode());
} }
/** /**

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -178,7 +178,7 @@ public final class IndexProviderManager implements IElementChangedListener {
} }
public int getOption(IConfigurationElement elem, String attributeName, int option) { 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 option;
return 0; return 0;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -197,7 +197,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
boolean fTraceIndexerSetup; boolean fTraceIndexerSetup;
public PDOMManager() { 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()); addIndexerSetupParticipant(new WaitForRefreshJobs());
fProjectDescriptionListener= new CProjectDescriptionListener(this); fProjectDescriptionListener= new CProjectDescriptionListener(this);
fJobChangeListener= new JobChangeListener(this); fJobChangeListener= new JobChangeListener(this);
@ -596,7 +596,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
boolean resume= false; boolean resume= false;
pdom.acquireReadLock(); pdom.acquireReadLock();
try { try {
resume= "true".equals(pdom.getProperty(IIndexFragment.PROPERTY_RESUME_INDEXER)); //$NON-NLS-1$ resume= Boolean.parseBoolean(pdom.getProperty(IIndexFragment.PROPERTY_RESUME_INDEXER));
} finally { } finally {
pdom.releaseReadLock(); pdom.releaseReadLock();
} }
@ -1185,8 +1185,8 @@ public class PDOMManager implements IWritableIndexManager, IListener {
} }
String msg= MessageFormat.format(Messages.PDOMManager_indexMonitorDetail, new Object[] { String msg= MessageFormat.format(Messages.PDOMManager_indexMonitorDetail, new Object[] {
new Integer(sourceCount), new Integer(sourceEstimate), Integer.valueOf(sourceCount), Integer.valueOf(sourceEstimate),
new Integer(headerCount)}); Integer.valueOf(headerCount)});
if (detail != null) { if (detail != null) {
msg += ": " + detail; //$NON-NLS-1$ 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 * @throws CoreException in case of a file access or other internal error
*/ */
public IStatus getProjectContentSyncState(ICProject cproject) throws CoreException { 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 return null; // No check is performed in this case
Set<ITranslationUnit> sources= new HashSet<>(); Set<ITranslationUnit> sources= new HashSet<>();

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -314,7 +314,7 @@ public class BTree {
} }
throw new BTreeKeyNotFoundException( throw new BTreeKeyNotFoundException(
MessageFormat.format(Messages.getString("BTree.DeletionOnAbsentKey"), //$NON-NLS-1$ 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 { } else {
if (keyIndexInNode != -1) { if (keyIndexInNode != -1) {
@ -407,7 +407,7 @@ public class BTree {
throw new BTreeKeyNotFoundException( throw new BTreeKeyNotFoundException(
MessageFormat.format(Messages.getString("BTree.DeletionOnAbsentKey"), //$NON-NLS-1$ 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) { if (!full && !empty) {
valid = false; valid = false;
msg += MessageFormat.format(Messages.getString("BTree.IntegrityErrorA"), //$NON-NLS-1$ 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 // Check: Key number constrains child numbers
if (childCount != 0 && childCount != keyCount + 1) { if (childCount != 0 && childCount != keyCount + 1) {
valid = false; 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. // 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 // Check: Non-root nodes must have a keyCount within a certain range
if (keyCount < MIN_RECORDS || keyCount > MAX_RECORDS) { if (keyCount < MIN_RECORDS || keyCount > MAX_RECORDS) {
valid = false; 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 // Check: All leaf nodes are at the same depth
if (childCount == 0) { if (childCount == 0) {
if (leafDepth == null) { if (leafDepth == null) {
leafDepth = new Integer(depth); leafDepth = Integer.valueOf(depth);
} }
if (depth != leafDepth.intValue()) { if (depth != leafDepth.intValue()) {
valid = false; valid = false;

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -182,7 +182,7 @@ public class IndexerPreferences {
private static void migrateProperties(Properties props) { private static void migrateProperties(Properties props) {
if (props.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG) == null) { if (props.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG) == null) {
// backward compatibility // 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$ 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) { public static boolean preferDefaultLanguage(IProject project) {
IPreferencesService prefService = Platform.getPreferencesService(); IPreferencesService prefService = Platform.getPreferencesService();
Preferences[] prefs= IndexerPreferences.getPreferences(project); Preferences[] prefs= IndexerPreferences.getPreferences(project);
if ("true".equals(prefService.get(KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG, null, prefs)) && //$NON-NLS-1$ if (Boolean.parseBoolean(prefService.get(KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG, null, prefs)) &&
"true".equals(prefService.get(KEY_INDEX_ALL_FILES, null, prefs)) && //$NON-NLS-1$ Boolean.parseBoolean(prefService.get(KEY_INDEX_ALL_FILES, null, prefs)) &&
!"true".equals(prefService.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG, null, prefs))) { //$NON-NLS-1$ !Boolean.parseBoolean(prefService.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG, null, prefs))) {
return false; return false;
} }
return true; return true;
} }
public static boolean preferDefaultLanguage(Properties props) { public static boolean preferDefaultLanguage(Properties props) {
if ("true".equals(props.get(KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG)) && //$NON-NLS-1$ if (Boolean.parseBoolean((String) props.get(KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG)) &&
"true".equals(props.get(KEY_INDEX_ALL_FILES)) && //$NON-NLS-1$ Boolean.parseBoolean((String) props.get(KEY_INDEX_ALL_FILES)) &&
!"true".equals(props.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG))) { //$NON-NLS-1$ !Boolean.parseBoolean((String) props.get(KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG))) {
return false; return false;
} }
return true; return true;

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -320,7 +320,7 @@ public abstract class PDOMIndexerTask extends AbstractIndexerTask implements IPD
+ hits + " hits, " //$NON-NLS-1$ + hits + " hits, " //$NON-NLS-1$
+ misses + "(" + nfPercent.format(missPct) + ") misses."); //$NON-NLS-1$ //$NON-NLS-2$ + 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(); Calendar cal = Calendar.getInstance();
NumberFormat twoDigits= NumberFormat.getNumberInstance(); NumberFormat twoDigits= NumberFormat.getNumberInstance();
twoDigits.setMinimumIntegerDigits(2); twoDigits.setMinimumIntegerDigits(2);

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -180,10 +180,10 @@ public class TodoTaskUpdater implements ITodoTaskUpdater {
TASK_MARKER_ATTRIBUTE_NAMES, TASK_MARKER_ATTRIBUTE_NAMES,
new Object[] { new Object[] {
description, description,
new Integer(task.getPriority()), Integer.valueOf(task.getPriority()),
new Integer(task.getStart()), Integer.valueOf(task.getStart()),
new Integer(task.getEnd()), Integer.valueOf(task.getEnd()),
new Integer(task.getLineNumber()), Integer.valueOf(task.getLineNumber()),
Boolean.FALSE, Boolean.FALSE,
SOURCE_ID SOURCE_ID
}); });

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -285,7 +285,7 @@ public class BuildRunnerHelper implements Closeable {
isCancelled = monitor.isCanceled(); isCancelled = monitor.isCanceled();
if (!isCancelled && project != null) { if (!isCancelled && project != null) {
project.setSessionProperty(progressPropertyName, new Integer(streamProgressMonitor.getWorkDone())); project.setSessionProperty(progressPropertyName, Integer.valueOf(streamProgressMonitor.getWorkDone()));
} }
} catch (Exception e) { } catch (Exception e) {
CCorePlugin.log(e); CCorePlugin.log(e);

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -189,7 +189,7 @@ public class PositionTrackerManager implements IPositionTrackerManager, IFileBuf
private synchronized void addChain(SortedMap<Long, List<PositionTrackerChain>> map, PositionTrackerChain chain) { private synchronized void addChain(SortedMap<Long, List<PositionTrackerChain>> map, PositionTrackerChain chain) {
long or= chain.getOldestRetirement(); long or= chain.getOldestRetirement();
if (or != Long.MAX_VALUE) { if (or != Long.MAX_VALUE) {
Long lor= new Long(or); Long lor= Long.valueOf(or);
List<PositionTrackerChain> list= map.get(lor); List<PositionTrackerChain> list= map.get(lor);
if (list == null) { if (list == null) {
list= new LinkedList<PositionTrackerChain>(); list= new LinkedList<PositionTrackerChain>();

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -56,7 +56,7 @@ public class ParserLogService extends AbstractParserLogService implements ICance
@Override @Override
public boolean isTracing(String option) { public boolean isTracing(String option) {
return "true".equals(Platform.getDebugOption(option)); //$NON-NLS-1$ return Boolean.parseBoolean(Platform.getDebugOption(option));
} }
@Override @Override

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -135,7 +135,7 @@ class ResourceLookupTree implements IResourceChangeListener, IResourceDeltaVisit
} }
}; };
fUnrefJob.setSystem(true); 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() { public void startup() {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -171,7 +171,7 @@ import org.eclipse.text.edits.TextEdit;
* @since 4.0 * @since 4.0
*/ */
public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor, ICASTVisitor { 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 { private static class ASTProblemException extends RuntimeException {
ASTProblemException(IASTProblem problem) { ASTProblemException(IASTProblem problem) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -79,6 +79,6 @@ public class ScannerContext {
* @param undo The undo to set * @param undo The undo to set
*/ */
public void pushUndo(int undo) { public void pushUndo(int undo) {
this.fUndo.push(new Integer(undo)); this.fUndo.push(Integer.valueOf(undo));
} }
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -873,98 +873,98 @@ public class SimpleScanner {
} }
static { static {
fgKeywords.put("and", new Integer(Token.t_and)); //$NON-NLS-1$ fgKeywords.put("and", Integer.valueOf(Token.t_and)); //$NON-NLS-1$
fgKeywords.put("and_eq", new Integer(Token.t_and_eq)); //$NON-NLS-1$ fgKeywords.put("and_eq", Integer.valueOf(Token.t_and_eq)); //$NON-NLS-1$
fgKeywords.put("asm", new Integer(Token.t_asm)); //$NON-NLS-1$ fgKeywords.put("asm", Integer.valueOf(Token.t_asm)); //$NON-NLS-1$
fgKeywords.put("auto", new Integer(Token.t_auto)); //$NON-NLS-1$ fgKeywords.put("auto", Integer.valueOf(Token.t_auto)); //$NON-NLS-1$
fgKeywords.put("bitand", new Integer(Token.t_bitand)); //$NON-NLS-1$ fgKeywords.put("bitand", Integer.valueOf(Token.t_bitand)); //$NON-NLS-1$
fgKeywords.put("bitor", new Integer(Token.t_bitor)); //$NON-NLS-1$ fgKeywords.put("bitor", Integer.valueOf(Token.t_bitor)); //$NON-NLS-1$
fgKeywords.put("bool", new Integer(Token.t_bool)); //$NON-NLS-1$ fgKeywords.put("bool", Integer.valueOf(Token.t_bool)); //$NON-NLS-1$
fgKeywords.put("break", new Integer(Token.t_break)); //$NON-NLS-1$ fgKeywords.put("break", Integer.valueOf(Token.t_break)); //$NON-NLS-1$
fgKeywords.put("case", new Integer(Token.t_case)); //$NON-NLS-1$ fgKeywords.put("case", Integer.valueOf(Token.t_case)); //$NON-NLS-1$
fgKeywords.put("catch", new Integer(Token.t_catch)); //$NON-NLS-1$ fgKeywords.put("catch", Integer.valueOf(Token.t_catch)); //$NON-NLS-1$
fgKeywords.put("char", new Integer(Token.t_char)); //$NON-NLS-1$ fgKeywords.put("char", Integer.valueOf(Token.t_char)); //$NON-NLS-1$
fgKeywords.put("class", new Integer(Token.t_class)); //$NON-NLS-1$ fgKeywords.put("class", Integer.valueOf(Token.t_class)); //$NON-NLS-1$
fgKeywords.put("compl", new Integer(Token.t_compl)); //$NON-NLS-1$ fgKeywords.put("compl", Integer.valueOf(Token.t_compl)); //$NON-NLS-1$
fgKeywords.put("const", new Integer(Token.t_const)); //$NON-NLS-1$ fgKeywords.put("const", Integer.valueOf(Token.t_const)); //$NON-NLS-1$
fgKeywords.put("const_cast", new Integer(Token.t_const_cast)); //$NON-NLS-1$ fgKeywords.put("const_cast", Integer.valueOf(Token.t_const_cast)); //$NON-NLS-1$
fgKeywords.put("continue", new Integer(Token.t_continue)); //$NON-NLS-1$ fgKeywords.put("continue", Integer.valueOf(Token.t_continue)); //$NON-NLS-1$
fgKeywords.put("default", new Integer(Token.t_default)); //$NON-NLS-1$ fgKeywords.put("default", Integer.valueOf(Token.t_default)); //$NON-NLS-1$
fgKeywords.put("delete", new Integer(Token.t_delete)); //$NON-NLS-1$ fgKeywords.put("delete", Integer.valueOf(Token.t_delete)); //$NON-NLS-1$
fgKeywords.put("do", new Integer(Token.t_do)); //$NON-NLS-1$ fgKeywords.put("do", Integer.valueOf(Token.t_do)); //$NON-NLS-1$
fgKeywords.put("double", new Integer(Token.t_double)); //$NON-NLS-1$ fgKeywords.put("double", Integer.valueOf(Token.t_double)); //$NON-NLS-1$
fgKeywords.put("dynamic_cast", new Integer(Token.t_dynamic_cast)); //$NON-NLS-1$ fgKeywords.put("dynamic_cast", Integer.valueOf(Token.t_dynamic_cast)); //$NON-NLS-1$
fgKeywords.put("else", new Integer(Token.t_else)); //$NON-NLS-1$ fgKeywords.put("else", Integer.valueOf(Token.t_else)); //$NON-NLS-1$
fgKeywords.put("enum", new Integer(Token.t_enum)); //$NON-NLS-1$ fgKeywords.put("enum", Integer.valueOf(Token.t_enum)); //$NON-NLS-1$
fgKeywords.put("explicit", new Integer(Token.t_explicit)); //$NON-NLS-1$ fgKeywords.put("explicit", Integer.valueOf(Token.t_explicit)); //$NON-NLS-1$
fgKeywords.put("export", new Integer(Token.t_export)); //$NON-NLS-1$ fgKeywords.put("export", Integer.valueOf(Token.t_export)); //$NON-NLS-1$
fgKeywords.put("extern", new Integer(Token.t_extern)); //$NON-NLS-1$ fgKeywords.put("extern", Integer.valueOf(Token.t_extern)); //$NON-NLS-1$
fgKeywords.put("false", new Integer(Token.t_false)); //$NON-NLS-1$ fgKeywords.put("false", Integer.valueOf(Token.t_false)); //$NON-NLS-1$
fgKeywords.put("float", new Integer(Token.t_float)); //$NON-NLS-1$ fgKeywords.put("float", Integer.valueOf(Token.t_float)); //$NON-NLS-1$
fgKeywords.put("for", new Integer(Token.t_for)); //$NON-NLS-1$ fgKeywords.put("for", Integer.valueOf(Token.t_for)); //$NON-NLS-1$
fgKeywords.put("friend", new Integer(Token.t_friend)); //$NON-NLS-1$ fgKeywords.put("friend", Integer.valueOf(Token.t_friend)); //$NON-NLS-1$
fgKeywords.put("goto", new Integer(Token.t_goto)); //$NON-NLS-1$ fgKeywords.put("goto", Integer.valueOf(Token.t_goto)); //$NON-NLS-1$
fgKeywords.put("if", new Integer(Token.t_if)); //$NON-NLS-1$ fgKeywords.put("if", Integer.valueOf(Token.t_if)); //$NON-NLS-1$
fgKeywords.put("inline", new Integer(Token.t_inline)); //$NON-NLS-1$ fgKeywords.put("inline", Integer.valueOf(Token.t_inline)); //$NON-NLS-1$
fgKeywords.put("int", new Integer(Token.t_int)); //$NON-NLS-1$ fgKeywords.put("int", Integer.valueOf(Token.t_int)); //$NON-NLS-1$
fgKeywords.put("long", new Integer(Token.t_long)); //$NON-NLS-1$ fgKeywords.put("long", Integer.valueOf(Token.t_long)); //$NON-NLS-1$
fgKeywords.put("mutable", new Integer(Token.t_mutable)); //$NON-NLS-1$ fgKeywords.put("mutable", Integer.valueOf(Token.t_mutable)); //$NON-NLS-1$
fgKeywords.put("namespace", new Integer(Token.t_namespace)); //$NON-NLS-1$ fgKeywords.put("namespace", Integer.valueOf(Token.t_namespace)); //$NON-NLS-1$
fgKeywords.put("new", new Integer(Token.t_new)); //$NON-NLS-1$ fgKeywords.put("new", Integer.valueOf(Token.t_new)); //$NON-NLS-1$
fgKeywords.put("not", new Integer(Token.t_not)); //$NON-NLS-1$ fgKeywords.put("not", Integer.valueOf(Token.t_not)); //$NON-NLS-1$
fgKeywords.put("not_eq", new Integer(Token.t_not_eq)); //$NON-NLS-1$ fgKeywords.put("not_eq", Integer.valueOf(Token.t_not_eq)); //$NON-NLS-1$
fgKeywords.put("operator", new Integer(Token.t_operator)); //$NON-NLS-1$ fgKeywords.put("operator", Integer.valueOf(Token.t_operator)); //$NON-NLS-1$
fgKeywords.put("or", new Integer(Token.t_or)); //$NON-NLS-1$ fgKeywords.put("or", Integer.valueOf(Token.t_or)); //$NON-NLS-1$
fgKeywords.put("or_eq", new Integer(Token.t_or_eq)); //$NON-NLS-1$ fgKeywords.put("or_eq", Integer.valueOf(Token.t_or_eq)); //$NON-NLS-1$
fgKeywords.put("private", new Integer(Token.t_private)); //$NON-NLS-1$ fgKeywords.put("private", Integer.valueOf(Token.t_private)); //$NON-NLS-1$
fgKeywords.put("protected", new Integer(Token.t_protected)); //$NON-NLS-1$ fgKeywords.put("protected", Integer.valueOf(Token.t_protected)); //$NON-NLS-1$
fgKeywords.put("public", new Integer(Token.t_public)); //$NON-NLS-1$ fgKeywords.put("public", Integer.valueOf(Token.t_public)); //$NON-NLS-1$
fgKeywords.put("register", new Integer(Token.t_register)); //$NON-NLS-1$ fgKeywords.put("register", Integer.valueOf(Token.t_register)); //$NON-NLS-1$
fgKeywords.put("reinterpret_cast", new Integer(Token.t_reinterpret_cast)); //$NON-NLS-1$ fgKeywords.put("reinterpret_cast", Integer.valueOf(Token.t_reinterpret_cast)); //$NON-NLS-1$
fgKeywords.put("return", new Integer(Token.t_return)); //$NON-NLS-1$ fgKeywords.put("return", Integer.valueOf(Token.t_return)); //$NON-NLS-1$
fgKeywords.put("short", new Integer(Token.t_short)); //$NON-NLS-1$ fgKeywords.put("short", Integer.valueOf(Token.t_short)); //$NON-NLS-1$
fgKeywords.put("signed", new Integer(Token.t_signed)); //$NON-NLS-1$ fgKeywords.put("signed", Integer.valueOf(Token.t_signed)); //$NON-NLS-1$
fgKeywords.put("sizeof", new Integer(Token.t_sizeof)); //$NON-NLS-1$ fgKeywords.put("sizeof", Integer.valueOf(Token.t_sizeof)); //$NON-NLS-1$
fgKeywords.put("static", new Integer(Token.t_static)); //$NON-NLS-1$ fgKeywords.put("static", Integer.valueOf(Token.t_static)); //$NON-NLS-1$
fgKeywords.put("static_cast", new Integer(Token.t_static_cast)); //$NON-NLS-1$ fgKeywords.put("static_cast", Integer.valueOf(Token.t_static_cast)); //$NON-NLS-1$
fgKeywords.put("struct", new Integer(Token.t_struct)); //$NON-NLS-1$ fgKeywords.put("struct", Integer.valueOf(Token.t_struct)); //$NON-NLS-1$
fgKeywords.put("switch", new Integer(Token.t_switch)); //$NON-NLS-1$ fgKeywords.put("switch", Integer.valueOf(Token.t_switch)); //$NON-NLS-1$
fgKeywords.put("template", new Integer(Token.t_template)); //$NON-NLS-1$ fgKeywords.put("template", Integer.valueOf(Token.t_template)); //$NON-NLS-1$
fgKeywords.put("this", new Integer(Token.t_this)); //$NON-NLS-1$ fgKeywords.put("this", Integer.valueOf(Token.t_this)); //$NON-NLS-1$
fgKeywords.put("throw", new Integer(Token.t_throw)); //$NON-NLS-1$ fgKeywords.put("throw", Integer.valueOf(Token.t_throw)); //$NON-NLS-1$
fgKeywords.put("true", new Integer(Token.t_true)); //$NON-NLS-1$ fgKeywords.put("true", Integer.valueOf(Token.t_true)); //$NON-NLS-1$
fgKeywords.put("try", new Integer(Token.t_try)); //$NON-NLS-1$ fgKeywords.put("try", Integer.valueOf(Token.t_try)); //$NON-NLS-1$
fgKeywords.put("typedef", new Integer(Token.t_typedef)); //$NON-NLS-1$ fgKeywords.put("typedef", Integer.valueOf(Token.t_typedef)); //$NON-NLS-1$
fgKeywords.put("typeid", new Integer(Token.t_typeid)); //$NON-NLS-1$ fgKeywords.put("typeid", Integer.valueOf(Token.t_typeid)); //$NON-NLS-1$
fgKeywords.put("typename", new Integer(Token.t_typename)); //$NON-NLS-1$ fgKeywords.put("typename", Integer.valueOf(Token.t_typename)); //$NON-NLS-1$
fgKeywords.put("union", new Integer(Token.t_union)); //$NON-NLS-1$ fgKeywords.put("union", Integer.valueOf(Token.t_union)); //$NON-NLS-1$
fgKeywords.put("unsigned", new Integer(Token.t_unsigned)); //$NON-NLS-1$ fgKeywords.put("unsigned", Integer.valueOf(Token.t_unsigned)); //$NON-NLS-1$
fgKeywords.put("using", new Integer(Token.t_using)); //$NON-NLS-1$ fgKeywords.put("using", Integer.valueOf(Token.t_using)); //$NON-NLS-1$
fgKeywords.put("virtual", new Integer(Token.t_virtual)); //$NON-NLS-1$ fgKeywords.put("virtual", Integer.valueOf(Token.t_virtual)); //$NON-NLS-1$
fgKeywords.put("void", new Integer(Token.t_void)); //$NON-NLS-1$ fgKeywords.put("void", Integer.valueOf(Token.t_void)); //$NON-NLS-1$
fgKeywords.put("volatile", new Integer(Token.t_volatile)); //$NON-NLS-1$ fgKeywords.put("volatile", Integer.valueOf(Token.t_volatile)); //$NON-NLS-1$
fgKeywords.put("wchar_t", new Integer(Token.t_wchar_t)); //$NON-NLS-1$ fgKeywords.put("wchar_t", Integer.valueOf(Token.t_wchar_t)); //$NON-NLS-1$
fgKeywords.put("while", new Integer(Token.t_while)); //$NON-NLS-1$ fgKeywords.put("while", Integer.valueOf(Token.t_while)); //$NON-NLS-1$
fgKeywords.put("xor", new Integer(Token.t_xor)); //$NON-NLS-1$ fgKeywords.put("xor", Integer.valueOf(Token.t_xor)); //$NON-NLS-1$
fgKeywords.put("xor_eq", new Integer(Token.t_xor_eq)); //$NON-NLS-1$ fgKeywords.put("xor_eq", Integer.valueOf(Token.t_xor_eq)); //$NON-NLS-1$
// additional java keywords // additional java keywords
fgKeywords.put("abstract", new Integer(Token.t_abstract)); //$NON-NLS-1$ fgKeywords.put("abstract", Integer.valueOf(Token.t_abstract)); //$NON-NLS-1$
fgKeywords.put("boolean", new Integer(Token.t_boolean)); //$NON-NLS-1$ fgKeywords.put("boolean", Integer.valueOf(Token.t_boolean)); //$NON-NLS-1$
fgKeywords.put("byte", new Integer(Token.t_byte)); //$NON-NLS-1$ fgKeywords.put("byte", Integer.valueOf(Token.t_byte)); //$NON-NLS-1$
fgKeywords.put("extends", new Integer(Token.t_extends)); //$NON-NLS-1$ fgKeywords.put("extends", Integer.valueOf(Token.t_extends)); //$NON-NLS-1$
fgKeywords.put("final", new Integer(Token.t_final)); //$NON-NLS-1$ fgKeywords.put("final", Integer.valueOf(Token.t_final)); //$NON-NLS-1$
fgKeywords.put("finally", new Integer(Token.t_finally)); //$NON-NLS-1$ fgKeywords.put("finally", Integer.valueOf(Token.t_finally)); //$NON-NLS-1$
fgKeywords.put("implements", new Integer(Token.t_implements)); //$NON-NLS-1$ fgKeywords.put("implements", Integer.valueOf(Token.t_implements)); //$NON-NLS-1$
fgKeywords.put("import", new Integer(Token.t_import)); //$NON-NLS-1$ fgKeywords.put("import", Integer.valueOf(Token.t_import)); //$NON-NLS-1$
fgKeywords.put("interface", new Integer(Token.t_interface)); //$NON-NLS-1$ fgKeywords.put("interface", Integer.valueOf(Token.t_interface)); //$NON-NLS-1$
fgKeywords.put("instanceof", new Integer(Token.t_instanceof)); //$NON-NLS-1$ fgKeywords.put("instanceof", Integer.valueOf(Token.t_instanceof)); //$NON-NLS-1$
fgKeywords.put("native", new Integer(Token.t_native)); //$NON-NLS-1$ fgKeywords.put("native", Integer.valueOf(Token.t_native)); //$NON-NLS-1$
fgKeywords.put("null", new Integer(Token.t_null)); //$NON-NLS-1$ fgKeywords.put("null", Integer.valueOf(Token.t_null)); //$NON-NLS-1$
fgKeywords.put("package", new Integer(Token.t_package)); //$NON-NLS-1$ fgKeywords.put("package", Integer.valueOf(Token.t_package)); //$NON-NLS-1$
fgKeywords.put("super", new Integer(Token.t_super)); //$NON-NLS-1$ fgKeywords.put("super", Integer.valueOf(Token.t_super)); //$NON-NLS-1$
fgKeywords.put("synchronized", new Integer(Token.t_synchronized)); //$NON-NLS-1$ fgKeywords.put("synchronized", Integer.valueOf(Token.t_synchronized)); //$NON-NLS-1$
fgKeywords.put("throws", new Integer(Token.t_throws)); //$NON-NLS-1$ fgKeywords.put("throws", Integer.valueOf(Token.t_throws)); //$NON-NLS-1$
fgKeywords.put("transient", new Integer(Token.t_transient)); //$NON-NLS-1$ fgKeywords.put("transient", Integer.valueOf(Token.t_transient)); //$NON-NLS-1$
} }
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -97,54 +97,54 @@ public class Exe {
buffer.append(NL); buffer.append(NL);
buffer.append("lastsize: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("nblocks: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("nreloc: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("hdrsize: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("minalloc: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("maxalloc: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("ss: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("sp: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("checksum: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("ip: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("cs: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("relocoffs: 0x"); //$NON-NLS-1$ 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(NL);
buffer.append("overlay: 0x"); //$NON-NLS-1$ 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); buffer.append(NL);
return buffer.toString(); return buffer.toString();
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -566,7 +566,7 @@ public class Dwarf {
if (printEnabled) if (printEnabled)
System.out.println("\t\t " + Long.toHexString(name) + " " + Long.toHexString(form)); //$NON-NLS-1$ //$NON-NLS-2$ System.out.println("\t\t " + Long.toHexString(name) + " " + Long.toHexString(form)); //$NON-NLS-1$ //$NON-NLS-2$
} while (name != 0 && form != 0); } 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 { throws IOException {
while (in.remaining() > 0) { while (in.remaining() > 0) {
long code = read_unsigned_leb128(in); long code = read_unsigned_leb128(in);
AbbreviationEntry entry = abbrevs.get(new Long(code)); AbbreviationEntry entry = abbrevs.get(Long.valueOf(code));
if (entry != null) { if (entry != null) {
int len = entry.attributes.size(); int len = entry.attributes.size();
List<AttributeValue> list = new ArrayList<AttributeValue>(len); List<AttributeValue> list = new ArrayList<AttributeValue>(len);
@ -768,15 +768,15 @@ public class Dwarf {
} }
case DwarfConstants.DW_FORM_GNU_ref_alt : case DwarfConstants.DW_FORM_GNU_ref_alt :
if (header.offsetSize == 8) if (header.offsetSize == 8)
obj = new Long(read_8_bytes(in)); obj = Long.valueOf(read_8_bytes(in));
else else
obj = new Long(read_4_bytes(in) & 0xffffffffL); obj = Long.valueOf(read_4_bytes(in) & 0xffffffffL);
break; break;
case DwarfConstants.DW_FORM_sec_offset : case DwarfConstants.DW_FORM_sec_offset :
if (header.offsetSize == 8) if (header.offsetSize == 8)
obj = new Long(read_8_bytes(in)); obj = Long.valueOf(read_8_bytes(in));
else else
obj = new Long(read_4_bytes(in) & 0xffffffffL); obj = Long.valueOf(read_4_bytes(in) & 0xffffffffL);
break; break;
case DwarfConstants.DW_FORM_exprloc : case DwarfConstants.DW_FORM_exprloc :
long size = read_unsigned_leb128(in); long size = read_unsigned_leb128(in);
@ -789,7 +789,7 @@ public class Dwarf {
obj = Byte.valueOf((byte)1); obj = Byte.valueOf((byte)1);
break; break;
case DwarfConstants.DW_FORM_ref_sig8 : case DwarfConstants.DW_FORM_ref_sig8 :
obj = new Long(read_8_bytes(in)); obj = Long.valueOf(read_8_bytes(in));
break; break;
default : default :
@ -903,7 +903,7 @@ public class Dwarf {
default : default :
// ???? // ????
} }
return new Long(value); return Long.valueOf(value);
} }
/** /**

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -309,7 +309,7 @@ public class DwarfReader extends Dwarf implements ISymbolReader, ICompileOptions
*/ */
// Remember the CU line tables we've parsed. // Remember the CU line tables we've parsed.
Integer cuOffset = new Integer(cuStmtList); Integer cuOffset = Integer.valueOf(cuStmtList);
boolean dwarf64Bit = false; boolean dwarf64Bit = false;
if (! m_parsedLineTableOffsets.contains(cuOffset)) { if (! m_parsedLineTableOffsets.contains(cuOffset)) {
@ -429,7 +429,7 @@ public class DwarfReader extends Dwarf implements ISymbolReader, ICompileOptions
while (lineTableStart < sectionSize - minHeaderSize) { while (lineTableStart < sectionSize - minHeaderSize) {
data.position(lineTableStart); data.position(lineTableStart);
Integer currLineTableStart = new Integer(lineTableStart); Integer currLineTableStart = Integer.valueOf(lineTableStart);
// Read length of the line table for one compile unit // Read length of the line table for one compile unit
// Note the length does not including the "length" field(s) itself. // Note the length does not including the "length" field(s) itself.

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -53,7 +53,7 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
public DebugSym getEntry(long addr) { public DebugSym getEntry(long addr) {
DebugSym[] entries = getSortedEntries(); DebugSym[] entries = getSortedEntries();
int insertion = Arrays.binarySearch(entries, new Long(addr)); int insertion = Arrays.binarySearch(entries, Long.valueOf(addr));
if (insertion >= 0) { if (insertion >= 0) {
return entries[insertion]; return entries[insertion];
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -865,7 +865,7 @@ public class MachO {
return null; return null;
} }
int ndx = Arrays.binarySearch(lines, new Long(value)); int ndx = Arrays.binarySearch(lines, Long.valueOf(value));
if ( ndx >= 0 ) if ( ndx >= 0 )
return lines[ndx]; return lines[ndx];
if ( ndx == -1 ) { if ( ndx == -1 ) {
@ -1614,7 +1614,7 @@ public class MachO {
return null; 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 ) if ( ndx > 0 )
return symbols[ndx]; return symbols[ndx];
if ( ndx == -1 ) { if ( ndx == -1 ) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -921,7 +921,7 @@ public class MachO64 {
return null; return null;
} }
int ndx = Arrays.binarySearch(lines, new Long(value)); int ndx = Arrays.binarySearch(lines, Long.valueOf(value));
if (ndx >= 0 ) if (ndx >= 0 )
return lines[ndx]; return lines[ndx];
if (ndx == -1 ) { if (ndx == -1 ) {
@ -1727,7 +1727,7 @@ public class MachO64 {
return null; 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 ) if (ndx > 0 )
return symbols[ndx]; return symbols[ndx];
if (ndx == -1 ) { if (ndx == -1 ) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -192,7 +192,7 @@ public class ResourceTestHelper {
continue; continue;
if (i < buffer.length() - 1 && Character.isJavaIdentifierPart(buffer.charAt(i + identifier.length()))) if (i < buffer.length() - 1 && Character.isJavaIdentifierPart(buffer.charAt(i + identifier.length())))
continue; continue;
positions.add(new Integer(i)); positions.add(Integer.valueOf(i));
} }
return positions; return positions;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -125,7 +125,7 @@ public class TypeSelectionDialog extends TwoPaneElementSelector {
ITypeInfo info = (ITypeInfo) element; ITypeInfo info = (ITypeInfo) element;
IQualifiedTypeName qualifiedName = info.getQualifiedTypeName(); IQualifiedTypeName qualifiedName = info.getQualifiedTypeName();
if (fVisibleTypes != null && !fVisibleTypes.contains(new Integer(info.getCElementType()))) if (fVisibleTypes != null && !fVisibleTypes.contains(Integer.valueOf(info.getCElementType())))
return false; return false;
if (!fShowLowLevelTypes && qualifiedName.isLowLevel()) 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. // 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) { 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)) if (fKnownTypes.contains(typeObject))
createTypeCheckbox(upperRow, typeObject); createTypeCheckbox(upperRow, typeObject);
} }
@ -492,16 +492,16 @@ public class TypeSelectionDialog extends TwoPaneElementSelector {
section.put(SETTINGS_WIDTH, size.x); section.put(SETTINGS_WIDTH, size.x);
section.put(SETTINGS_HEIGHT, size.y); section.put(SETTINGS_HEIGHT, size.y);
} }
section.put(SETTINGS_SHOW_NAMESPACES, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_NAMESPACE))); section.put(SETTINGS_SHOW_NAMESPACES, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_NAMESPACE)));
section.put(SETTINGS_SHOW_CLASSES, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_CLASS))); section.put(SETTINGS_SHOW_CLASSES, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_CLASS)));
section.put(SETTINGS_SHOW_STRUCTS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_STRUCT))); section.put(SETTINGS_SHOW_STRUCTS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_STRUCT)));
section.put(SETTINGS_SHOW_TYPEDEFS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_TYPEDEF))); section.put(SETTINGS_SHOW_TYPEDEFS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_TYPEDEF)));
section.put(SETTINGS_SHOW_ENUMS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_ENUMERATION))); section.put(SETTINGS_SHOW_ENUMS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_ENUMERATION)));
section.put(SETTINGS_SHOW_UNIONS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_UNION))); section.put(SETTINGS_SHOW_UNIONS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_UNION)));
section.put(SETTINGS_SHOW_FUNCTIONS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_FUNCTION))); section.put(SETTINGS_SHOW_FUNCTIONS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_FUNCTION)));
section.put(SETTINGS_SHOW_VARIABLES, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_VARIABLE))); section.put(SETTINGS_SHOW_VARIABLES, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_VARIABLE)));
section.put(SETTINGS_SHOW_ENUMERATORS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_ENUMERATOR))); section.put(SETTINGS_SHOW_ENUMERATORS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_ENUMERATOR)));
section.put(SETTINGS_SHOW_MACROS, fFilterMatcher.getVisibleTypes().contains(new Integer(ICElement.C_MACRO))); section.put(SETTINGS_SHOW_MACROS, fFilterMatcher.getVisibleTypes().contains(Integer.valueOf(ICElement.C_MACRO)));
section.put(SETTINGS_SHOW_LOWLEVEL, fFilterMatcher.getShowLowLevelTypes()); section.put(SETTINGS_SHOW_LOWLEVEL, fFilterMatcher.getShowLowLevelTypes());
} }
@ -540,52 +540,52 @@ public class TypeSelectionDialog extends TwoPaneElementSelector {
} }
if (section.getBoolean(SETTINGS_SHOW_NAMESPACES)) { if (section.getBoolean(SETTINGS_SHOW_NAMESPACES)) {
Integer typeObject = new Integer(ICElement.C_NAMESPACE); Integer typeObject = ICElement.C_NAMESPACE;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_CLASSES)) { if (section.getBoolean(SETTINGS_SHOW_CLASSES)) {
Integer typeObject = new Integer(ICElement.C_CLASS); Integer typeObject = ICElement.C_CLASS;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_STRUCTS)) { if (section.getBoolean(SETTINGS_SHOW_STRUCTS)) {
Integer typeObject = new Integer(ICElement.C_STRUCT); Integer typeObject = ICElement.C_STRUCT;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_TYPEDEFS)) { if (section.getBoolean(SETTINGS_SHOW_TYPEDEFS)) {
Integer typeObject = new Integer(ICElement.C_TYPEDEF); Integer typeObject = ICElement.C_TYPEDEF;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_ENUMS)) { if (section.getBoolean(SETTINGS_SHOW_ENUMS)) {
Integer typeObject = new Integer(ICElement.C_ENUMERATION); Integer typeObject = ICElement.C_ENUMERATION;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_UNIONS)) { if (section.getBoolean(SETTINGS_SHOW_UNIONS)) {
Integer typeObject = new Integer(ICElement.C_UNION); Integer typeObject = ICElement.C_UNION;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_FUNCTIONS)) { if (section.getBoolean(SETTINGS_SHOW_FUNCTIONS)) {
Integer typeObject = new Integer(ICElement.C_FUNCTION); Integer typeObject = ICElement.C_FUNCTION;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_VARIABLES)) { if (section.getBoolean(SETTINGS_SHOW_VARIABLES)) {
Integer typeObject = new Integer(ICElement.C_VARIABLE); Integer typeObject = ICElement.C_VARIABLE;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_ENUMERATORS)) { if (section.getBoolean(SETTINGS_SHOW_ENUMERATORS)) {
Integer typeObject = new Integer(ICElement.C_ENUMERATOR); Integer typeObject = ICElement.C_ENUMERATOR;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }
if (section.getBoolean(SETTINGS_SHOW_MACROS)) { if (section.getBoolean(SETTINGS_SHOW_MACROS)) {
Integer typeObject = new Integer(ICElement.C_MACRO); Integer typeObject = ICElement.C_MACRO;
if (fKnownTypes.contains(typeObject)) if (fKnownTypes.contains(typeObject))
fFilterMatcher.getVisibleTypes().add(typeObject); fFilterMatcher.getVisibleTypes().add(typeObject);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -471,7 +471,7 @@ public class StubUtility {
IRegion lineInfo= doc.getLineInformation(line); IRegion lineInfo= doc.getLineInformation(line);
int offset= lineInfo.getOffset(); int offset= lineInfo.getOffset();
String str= doc.get(offset, lineInfo.getLength()); 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 nextStart= doc.getLineOffset(line + 1);
int length= nextStart - offset; int length= nextStart - offset;
edit.addChild(new DeleteEdit(offset, length)); edit.addChild(new DeleteEdit(offset, length));

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -133,7 +133,7 @@ public class Resources {
Map<IFile, Long> map= new HashMap<IFile, Long>(); Map<IFile, Long> map= new HashMap<IFile, Long>();
for (Iterator<IResource> iter= files.iterator(); iter.hasNext(); ) { for (Iterator<IResource> iter= files.iterator(); iter.hasNext(); ) {
IFile file= (IFile)iter.next(); IFile file= (IFile)iter.next();
map.put(file, new Long(file.getModificationStamp())); map.put(file, Long.valueOf(file.getModificationStamp()));
} }
return map; return map;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -89,7 +89,7 @@ public class CHLabelProvider extends AppearanceAwareLabelProvider {
} }
int refCount= node.getReferenceCount(); int refCount= node.getReferenceCount();
if (refCount > 1) { 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); return decorateText(label, element);
} }
@ -118,7 +118,7 @@ public class CHLabelProvider extends AppearanceAwareLabelProvider {
int refCount= node.getReferenceCount(); int refCount= node.getReferenceCount();
if (refCount > 1) { if (refCount > 1) {
final int offset= label.length(); 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); label.setStyle(offset, label.length() - offset, StyledString.COUNTER_STYLER);
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -988,9 +988,7 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
try { try {
String posStr = memento.getString(TAG_VERTICAL_POSITION); String posStr = memento.getString(TAG_VERTICAL_POSITION);
int position; int position;
position = new Integer(posStr).intValue(); position = Integer.parseInt(posStr);
bar.setSelection(position);
position = new Integer(posStr).intValue();
bar.setSelection(position); bar.setSelection(position);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
} }
@ -1000,7 +998,7 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
try { try {
String posStr = memento.getString(TAG_HORIZONTAL_POSITION); String posStr = memento.getString(TAG_HORIZONTAL_POSITION);
int position; int position;
position = new Integer(posStr).intValue(); position = Integer.parseInt(posStr);
bar.setSelection(position); bar.setSelection(position);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -126,7 +126,7 @@ public class CPElementGroup {
public void setChildren(CPElement[] elements) { public void setChildren(CPElement[] elements) {
if (elements.length > 0) { if (elements.length > 0) {
if (childrenListMap != null) { 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 { } else {
childrenList = new ArrayList<CPElement>(Arrays.asList(elements)); childrenList = new ArrayList<CPElement>(Arrays.asList(elements));
} }
@ -194,10 +194,10 @@ public class CPElementGroup {
if (childrenList != null) { if (childrenList != null) {
children = childrenList; children = childrenList;
} else { } else {
children = childrenListMap.get(new Integer(kind)); children = childrenListMap.get(Integer.valueOf(kind));
if (children == null && create) { if (children == null && create) {
children = new ArrayList<CPElement>(); children = new ArrayList<CPElement>();
childrenListMap.put(new Integer(kind), children); childrenListMap.put(Integer.valueOf(kind), children);
} }
} }
return children; return children;

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -203,7 +203,7 @@ public class SemanticHighlightings {
public static final String OVERLOADED_OPERATOR= "overloadedOperator"; //$NON-NLS-1$ public static final String OVERLOADED_OPERATOR= "overloadedOperator"; //$NON-NLS-1$
/** Init debugging mode */ /** 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 * Semantic highlightings

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -247,7 +247,7 @@ public class IndexView extends ViewPart implements PDOM.IListener, IElementChang
IPDOM pdom = CCoreInternals.getPDOMManager().getPDOM(cproject); IPDOM pdom = CCoreInternals.getPDOMManager().getPDOM(cproject);
pdom.acquireReadLock(); pdom.acquireReadLock();
try { try {
fTimestampPerProject.put(cproject.getElementName(), new Long(pdom.getLastWriteAccess())); fTimestampPerProject.put(cproject.getElementName(), Long.valueOf(pdom.getLastWriteAccess()));
IPDOMNode[] linkages= pdom.getLinkageImpls(); IPDOMNode[] linkages= pdom.getLinkageImpls();
if (linkages.length == 1) { if (linkages.length == 1) {
// Skip linkages in hierarchy if there is only one // Skip linkages in hierarchy if there is only one

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -532,7 +532,7 @@ public class CEditorHoverConfigurationBlock implements IPreferenceConfigurationB
while (fStatus.isOK() && i < fHoverConfigs.length) { while (fStatus.isOK() && i < fHoverConfigs.length) {
if (fHoverConfigs[i].fIsEnabled) { if (fHoverConfigs[i].fIsEnabled) {
String label= getContributedHovers()[i].getLabel(); String label= getContributedHovers()[i].getLabel();
Integer stateMask= new Integer(fHoverConfigs[i].fStateMask); Integer stateMask= fHoverConfigs[i].fStateMask;
if (fHoverConfigs[i].fStateMask == -1) if (fHoverConfigs[i].fStateMask == -1)
fStatus= new StatusInfo(IStatus.ERROR, NLS.bind(PreferencesMessages.CEditorHoverConfigurationBlock_modifierIsNotValidForHover, new String[] {fHoverConfigs[i].fModifierString, label})); fStatus= new StatusInfo(IStatus.ERROR, NLS.bind(PreferencesMessages.CEditorHoverConfigurationBlock_modifierIsNotValidForHover, new String[] {fHoverConfigs[i].fModifierString, label}));
else if (stateMasks.containsKey(stateMask)) else if (stateMasks.containsKey(stateMask))

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -255,13 +255,13 @@ public class LineWrappingTabPage extends FormatterTabPage {
Boolean forceWrapping; Boolean forceWrapping;
try { try {
wrappingStyle= new Integer(DefaultCodeFormatterConstants.getWrappingStyle(value)); wrappingStyle= Integer.valueOf(DefaultCodeFormatterConstants.getWrappingStyle(value));
indentStyle= new Integer(DefaultCodeFormatterConstants.getIndentStyle(value)); indentStyle= Integer.valueOf(DefaultCodeFormatterConstants.getIndentStyle(value));
forceWrapping= Boolean.valueOf(DefaultCodeFormatterConstants.getForceWrapping(value)); forceWrapping= Boolean.valueOf(DefaultCodeFormatterConstants.getForceWrapping(value));
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
forceWrapping= Boolean.valueOf(false); forceWrapping= Boolean.FALSE;
indentStyle= new Integer(DefaultCodeFormatterConstants.INDENT_DEFAULT); indentStyle= Integer.valueOf(DefaultCodeFormatterConstants.INDENT_DEFAULT);
wrappingStyle= new Integer(DefaultCodeFormatterConstants.WRAP_NO_SPLIT); wrappingStyle= Integer.valueOf(DefaultCodeFormatterConstants.WRAP_NO_SPLIT);
} }
increaseMapEntry(wrappingMap, wrappingStyle); increaseMapEntry(wrappingMap, wrappingStyle);
@ -272,9 +272,9 @@ public class LineWrappingTabPage extends FormatterTabPage {
private void increaseMapEntry(Map<Object, Integer> map, Object type) { private void increaseMapEntry(Map<Object, Integer> map, Object type) {
Integer count= map.get(type); Integer count= map.get(type);
if (count == null) // not in map yet -> count == 0 if (count == null) // not in map yet -> count == 0
map.put(type, new Integer(1)); map.put(type, Integer.valueOf(1));
else 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, 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) { private Integer getWrappingStyleMax(Map<Object, Integer> wrappingStyleMap) {
int maxCount= 0, maxStyle= 0; int maxCount= 0, maxStyle= 0;
for (int i= 0; i < WRAPPING_NAMES.length; i++) { 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) if (count == null)
continue; continue;
if (count.intValue() > maxCount) { if (count.intValue() > maxCount) {
@ -299,7 +299,7 @@ public class LineWrappingTabPage extends FormatterTabPage {
maxStyle= i; maxStyle= i;
} }
} }
return new Integer(maxStyle); return Integer.valueOf(maxStyle);
} }
private void updateButton(Map<Object, Integer> forceWrappingMap) { private void updateButton(Map<Object, Integer> forceWrappingMap) {
@ -343,7 +343,7 @@ public class LineWrappingTabPage extends FormatterTabPage {
int maxCount= 0, maxStyle= 0; int maxCount= 0, maxStyle= 0;
for(int i = 0; i < items.length; i++) { 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(); int val= (count == null) ? 0 : count.intValue();
if (val > maxCount) { if (val > maxCount) {
maxCount= val; maxCount= val;

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -494,7 +494,7 @@ public abstract class ModifyDialogTabPage implements IModifyDialogTabPage {
public void add(Control control) { public void add(Control control) {
control.addFocusListener(this); control.addFocusListener(this);
fItemList.add(fIndex, control); fItemList.add(fIndex, control);
fItemMap.put(control, new Integer(fIndex++)); fItemMap.put(control, Integer.valueOf(fIndex++));
} }
public void add(Preference preference) { public void add(Preference preference) {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -462,7 +462,7 @@ public abstract class ProfileManager extends Observable {
*/ */
protected void notifyObservers(int message) { protected void notifyObservers(int message) {
setChanged(); setChanged();
notifyObservers(new Integer(message)); notifyObservers(Integer.valueOf(message));
} }
public static boolean hasProjectSpecificSettings(IScopeContext context, KeySet[] keySets) { public static boolean hasProjectSpecificSettings(IScopeContext context, KeySet[] keySets) {

View file

@ -1,4 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2012, 2016 Google, Inc and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -85,7 +86,7 @@ import org.eclipse.cdt.internal.formatter.ChangeFormatter;
*/ */
public class IncludeOrganizer { public class IncludeOrganizer {
private static boolean DEBUG_HEADER_SUBSTITUTION = 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(); private static final Collator COLLATOR = Collator.getInstance();

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -103,18 +103,18 @@ public class CSearchPage extends DialogPage implements ISearchPage {
// These must be in the same order as the Text // These must be in the same order as the Text
private static final Integer[] searchForData = { private static final Integer[] searchForData = {
new Integer(CSearchPatternQuery.FIND_CLASS_STRUCT), CSearchPatternQuery.FIND_CLASS_STRUCT,
new Integer(CSearchPatternQuery.FIND_FUNCTION), CSearchPatternQuery.FIND_FUNCTION,
new Integer(CSearchPatternQuery.FIND_VARIABLE), CSearchPatternQuery.FIND_VARIABLE,
new Integer(CSearchPatternQuery.FIND_UNION), CSearchPatternQuery.FIND_UNION,
new Integer(CSearchPatternQuery.FIND_METHOD), CSearchPatternQuery.FIND_METHOD,
new Integer(CSearchPatternQuery.FIND_FIELD), CSearchPatternQuery.FIND_FIELD,
new Integer(CSearchPatternQuery.FIND_ENUM), CSearchPatternQuery.FIND_ENUM,
new Integer(CSearchPatternQuery.FIND_ENUMERATOR), CSearchPatternQuery.FIND_ENUMERATOR,
new Integer(CSearchPatternQuery.FIND_NAMESPACE), CSearchPatternQuery.FIND_NAMESPACE,
new Integer(CSearchPatternQuery.FIND_TYPEDEF), CSearchPatternQuery.FIND_TYPEDEF,
new Integer(CSearchPatternQuery.FIND_MACRO), CSearchPatternQuery.FIND_MACRO,
new Integer(CSearchPatternQuery.FIND_ALL_TYPES) CSearchPatternQuery.FIND_ALL_TYPES
}; };
// the index of 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 // Must be in the same order as the text
private static Integer[] limitToData = { private static Integer[] limitToData = {
new Integer(CSearchQuery.FIND_DECLARATIONS), CSearchQuery.FIND_DECLARATIONS,
new Integer(CSearchQuery.FIND_DEFINITIONS), CSearchQuery.FIND_DEFINITIONS,
new Integer(CSearchQuery.FIND_REFERENCES), CSearchQuery.FIND_REFERENCES,
new Integer(CSearchQuery.FIND_ALL_OCCURRENCES), CSearchQuery.FIND_ALL_OCCURRENCES,
}; };
// The index of FIND_ALL_OCCURANCES // The index of FIND_ALL_OCCURANCES

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -36,7 +36,7 @@ public class CSearchTreeLabelProvider extends CSearchLabelProvider {
return text; return text;
} }
return text + " " //$NON-NLS-1$ return text + " " //$NON-NLS-1$
+ Messages.format(CSearchMessages.CSearchResultCollector_matches, new Integer(count)); + Messages.format(CSearchMessages.CSearchResultCollector_matches, Integer.valueOf(count));
} }
@Override @Override
@ -46,7 +46,7 @@ public class CSearchTreeLabelProvider extends CSearchLabelProvider {
final int count= getMatchCount(element); final int count= getMatchCount(element);
if (count > 1) { if (count > 1) {
final String matchesCount = " " //$NON-NLS-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); styled.append(matchesCount, StyledString.COUNTER_STYLER);
return styled; return styled;
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -61,7 +61,7 @@ public class CSearchUnresolvedIncludesQuery extends CSearchQuery {
@Override @Override
public String getResultLabel(int matchCount) { 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$ return getLabel() + " " + countLabel; //$NON-NLS-1$
} }
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -55,7 +55,7 @@ public class CountLabelProvider extends LabelProvider {
String text= fLabelProvider.getText(element); String text= fLabelProvider.getText(element);
if (c == 0) if (c == 0)
return text; return text;
Integer matchCount= new Integer(c); Integer matchCount= c;
return fLabelProvider.getText(element) + " "+ Messages.format(CSearchMessages.CSearchResultCollector_matches, matchCount); //$NON-NLS-1$ return fLabelProvider.getText(element) + " "+ Messages.format(CSearchMessages.CSearchResultCollector_matches, matchCount); //$NON-NLS-1$
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -218,12 +218,12 @@ public class CParameterListValidator implements IContextInformationValidator, IC
final int length= code.length(); final int length= code.length();
int pos= 0; int pos= 0;
List<Integer> positions= new ArrayList<>(); List<Integer> positions= new ArrayList<>();
positions.add(new Integer(-1)); positions.add(Integer.valueOf(-1));
while (pos < length && pos != -1) { while (pos < length && pos != -1) {
char ch= code.charAt(pos); char ch= code.charAt(pos);
switch (ch) { switch (ch) {
case ',': case ',':
positions.add(new Integer(pos)); positions.add(Integer.valueOf(pos));
break; break;
case '(': case '(':
pos= indexOfClosingPeer(code, '(', ')', pos); pos= indexOfClosingPeer(code, '(', ')', pos);
@ -243,7 +243,7 @@ public class CParameterListValidator implements IContextInformationValidator, IC
if (pos != -1) if (pos != -1)
pos++; pos++;
} }
positions.add(new Integer(length)); positions.add(Integer.valueOf(length));
int[] fields= new int[positions.size()]; int[] fields= new int[positions.size()];
for (int i= 0; i < fields.length; i++) for (int i= 0; i < fields.length; i++)

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -279,7 +279,7 @@ public final class CompletionProposalComputerRegistry {
StringTokenizer inner= new StringTokenizer(tok.nextToken(), ":"); //$NON-NLS-1$ StringTokenizer inner= new StringTokenizer(tok.nextToken(), ":"); //$NON-NLS-1$
String id= inner.nextToken(); String id= inner.nextToken();
int rank= Integer.parseInt(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>(); List<CompletionProposalCategory> categories= new ArrayList<CompletionProposalCategory>();

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -82,7 +82,7 @@ import org.eclipse.cdt.internal.ui.util.Messages;
* @since 4.0 * @since 4.0
*/ */
public class ContentAssistProcessor implements IContentAssistProcessor { 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. * Dialog settings key for the "all categories are disabled" warning dialog.

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -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 ITextEditor fEditor;
private ProjectionListener fProjectionListener; private ProjectionListener fProjectionListener;

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -99,7 +99,7 @@ public class SpellCheckIterator implements ISpellCheckIterator {
int offset= iterator.current(); int offset= iterator.current();
while (offset != BreakIterator.DONE) { while (offset != BreakIterator.DONE) {
fSentenceBreaks.add(new Integer(offset)); fSentenceBreaks.add(Integer.valueOf(offset));
offset= iterator.next(); offset= iterator.next();
} }
} }

View file

@ -552,9 +552,9 @@ public class IndexUI {
IResource res= tu.getResource(); IResource res= tu.getResource();
if (res != null) { if (res != null) {
Properties props= IndexerPreferences.getProperties(res.getProject()); Properties props= IndexerPreferences.getProperties(res.getProject());
if (props == null || !"true".equals(props.get(IndexerPreferences.KEY_INDEX_ALL_FILES)) || //$NON-NLS-1$ if (props == null || !Boolean.parseBoolean((String) props.get(IndexerPreferences.KEY_INDEX_ALL_FILES)) ||
(!"true".equals(props.get(IndexerPreferences.KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG)) && //$NON-NLS-1$ (!Boolean.parseBoolean((String) props.get(IndexerPreferences.KEY_INDEX_UNUSED_HEADERS_WITH_DEFAULT_LANG)) &&
!"true".equals(props.get(IndexerPreferences.KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG)))) { //$NON-NLS-1$ !Boolean.parseBoolean((String) props.get(IndexerPreferences.KEY_INDEX_UNUSED_HEADERS_WITH_ALTERNATE_LANG)))) {
msg= msg + " " + Messages.IndexUI_infoSelectIndexAllFiles; //$NON-NLS-1$ msg= msg + " " + Messages.IndexUI_infoSelectIndexAllFiles; //$NON-NLS-1$
} }
} }

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -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_NAME = "name"; //$NON-NLS-1$
private static final String CP_ACCESS = "access"; //$NON-NLS-1$ 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_VIRTUAL = "virtual"; //$NON-NLS-1$
static final Integer INDEX_YES = new Integer(0); static final Integer INDEX_YES = 0;
static final Integer INDEX_NO = new Integer(1); static final Integer INDEX_NO = 1;
static final Integer INDEX_PUBLIC = new Integer(0); static final Integer INDEX_PUBLIC = 0;
static final Integer INDEX_PROTECTED = new Integer(1); static final Integer INDEX_PROTECTED = 1;
static final Integer INDEX_PRIVATE = new Integer(2); static final Integer INDEX_PRIVATE = 2;
private final class CellHandler implements ICellModifier { private final class CellHandler implements ICellModifier {
@Override @Override

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -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_ACCESS = "access"; //$NON-NLS-1$
private static final String CP_VIRTUAL = "virtual"; //$NON-NLS-1$ private static final String CP_VIRTUAL = "virtual"; //$NON-NLS-1$
private static final String CP_INLINE = "inline"; //$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_YES = 0;
static final Integer INDEX_NO = new Integer(1); static final Integer INDEX_NO = 1;
static final Integer INDEX_PUBLIC = new Integer(0); static final Integer INDEX_PUBLIC = 0;
static final Integer INDEX_PROTECTED = new Integer(1); static final Integer INDEX_PROTECTED = 1;
static final Integer INDEX_PRIVATE = new Integer(2); static final Integer INDEX_PRIVATE = 2;
private final class CellHandler implements ICellModifier { private final class CellHandler implements ICellModifier {
@Override @Override

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2012 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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -183,7 +183,7 @@ public class TeamProjectIndexExportWizardPage extends WizardPage implements List
GridData buttonData = new GridData(GridData.FILL_HORIZONTAL); GridData buttonData = new GridData(GridData.FILL_HORIZONTAL);
button.setLayoutData(buttonData); button.setLayoutData(buttonData);
button.setData(new Integer(id)); button.setData(Integer.valueOf(id));
button.setText(label); button.setText(label);
button.setFont(parent.getFont()); button.setFont(parent.getFont());

Some files were not shown because too many files have changed in this diff Show more