diff options
Diffstat (limited to 'build/org.eclipse.cdt.autotools.core/src')
4 files changed, 10 insertions, 10 deletions
diff --git a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsConfigurationBuilder.java b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsConfigurationBuilder.java index 93216a963e9..51b79a8061f 100644 --- a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsConfigurationBuilder.java +++ b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsConfigurationBuilder.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 Red Hat Inc. and others. + * Copyright (c) 2012, 2016 Red Hat Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -91,7 +91,7 @@ public class AutotoolsConfigurationBuilder extends ACBuilder { OutputStream cos = console.getOutputStream(); String errormsg = AutotoolsPlugin.getResourceString(BUILD_STOPPED); - StringBuffer buf = new StringBuffer(errormsg); + StringBuilder buf = new StringBuilder(errormsg); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append("(").append(result.getMessage()).append(")"); //$NON-NLS-1$ //$NON-NLS-2$ diff --git a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java index 09f3adf7e3e..2076cfd12d5 100644 --- a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java +++ b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java @@ -872,7 +872,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator { "MakeGenerator.make.message", msgs)); //$NON-NLS-1$ - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); // Launch command - main invocation if (consoleStart) @@ -968,7 +968,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator { } // Report either the success or failure of our mission - buf = new StringBuffer(); + buf = new StringBuilder(); if (errMsg != null && errMsg.length() > 0) { String errorDesc = AutotoolsPlugin.getResourceString("MakeGenerator.generation.error"); //$NON-NLS-1$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ @@ -1172,7 +1172,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator { "MakeGenerator.make.message", msgs)); //$NON-NLS-1$ - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); // Launch command - main invocation if (consoleStart) @@ -1302,7 +1302,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator { } // Report either the success or failure of our mission - buf = new StringBuffer(); + buf = new StringBuilder(); if (errMsg != null && errMsg.length() > 0) { String errorDesc = AutotoolsPlugin.getResourceString("MakeGenerator.generation.error"); //$NON-NLS-1$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ diff --git a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfiguration.java b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfiguration.java index 42ad8f0f91b..f3e4162b8c5 100644 --- a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfiguration.java +++ b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfiguration.java @@ -293,7 +293,7 @@ public class AutotoolsConfiguration implements IAConfiguration { @Override public String getToolParameters(String name) { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); Option[] options = getChildOptions(name); for (int i = 0; i < options.length; ++i) { IConfigureOption option = getOption(options[i].getName()); diff --git a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/FlagConfigureOption.java b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/FlagConfigureOption.java index e7ae6a328b4..e2066d5e2bc 100644 --- a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/FlagConfigureOption.java +++ b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/FlagConfigureOption.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2015 Red Hat Inc. + * Copyright (c) 2011, 2016 Red Hat Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -37,14 +37,14 @@ public class FlagConfigureOption extends AbstractConfigurationOption { @Override public String getParameter() { - StringBuffer parms = new StringBuffer(); + StringBuilder parms = new StringBuilder(); // Multiple flags are designated by putting multiple flags together using "|" as delimiter String[] flagNames = getValue().split("\\|"); //$NON-NLS-1$ String flagSeparator = ""; for (String flagName : flagNames) { parms.append(flagSeparator); flagSeparator = " "; //$NON-NLS-1$ - StringBuffer parm = new StringBuffer(flagName+"=\""); //$NON-NLS-1$ + StringBuilder parm = new StringBuilder(flagName+"=\""); //$NON-NLS-1$ boolean haveParm = false; if (isParmSet()) { String separator = ""; |