mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
llvm: Run code cleanup
Mostly organize imports and remove redundant type arguments. Change-Id: I11e8e76f96a17fa521f3e7f8c8f9e3d645d445b3 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
parent
3744029d4e
commit
f187157456
6 changed files with 8 additions and 9 deletions
|
@ -38,7 +38,7 @@ public class LlvmEnvironmentVariableSupplier implements IConfigurationEnvironmen
|
|||
private static boolean preferencesChanged = true;
|
||||
// LLVM environment variable data structure
|
||||
private static HashMap<String, LlvmBuildEnvironmentVariable> llvmEnvironmentVariables =
|
||||
new HashMap<String, LlvmBuildEnvironmentVariable>(6);
|
||||
new HashMap<>(6);
|
||||
// Environment variables for HashMap usage
|
||||
private static final String ENV_VAR_NAME_LLVM_BIN = "LLVM_BIN_PATH"; //$NON-NLS-1$
|
||||
private static final String ENV_VAR_NAME_LLVMINTERP = "LLVMINTERP"; //$NON-NLS-1$
|
||||
|
|
|
@ -26,7 +26,6 @@ import org.eclipse.core.runtime.IStatus;
|
|||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,11 +13,11 @@ package org.eclipse.cdt.managedbuilder.llvm.ui.preferences;
|
|||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.eclipse.cdt.managedbuilder.llvm.util.Separators;
|
||||
import org.eclipse.core.runtime.Assert;
|
||||
import org.eclipse.jface.dialogs.IDialogConstants;
|
||||
import org.eclipse.jface.preference.ListEditor;
|
||||
import org.eclipse.jface.resource.JFaceResources;
|
||||
import org.eclipse.cdt.managedbuilder.llvm.util.Separators;
|
||||
import org.eclipse.core.runtime.Assert;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.DisposeEvent;
|
||||
import org.eclipse.swt.events.DisposeListener;
|
||||
|
|
|
@ -13,9 +13,10 @@
|
|||
package org.eclipse.cdt.managedbuilder.llvm.ui.preferences;
|
||||
|
||||
import org.eclipse.cdt.managedbuilder.llvm.ui.LlvmUIPlugin;
|
||||
import org.eclipse.jface.preference.*;
|
||||
import org.eclipse.ui.IWorkbenchPreferencePage;
|
||||
import org.eclipse.jface.preference.DirectoryFieldEditor;
|
||||
import org.eclipse.jface.preference.FieldEditorPreferencePage;
|
||||
import org.eclipse.ui.IWorkbench;
|
||||
import org.eclipse.ui.IWorkbenchPreferencePage;
|
||||
|
||||
/**
|
||||
* This class represents a preference page that
|
||||
|
|
|
@ -14,7 +14,6 @@ package org.eclipse.cdt.managedbuilder.llvm.util;
|
|||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.lang.ProcessBuilder;
|
||||
|
||||
/**
|
||||
* The purpose is to find a path where stdc++ library is located.
|
||||
|
|
|
@ -774,7 +774,7 @@ public class LlvmToolOptionPathUtil {
|
|||
*/
|
||||
public static String[] addNewPathToExistingPathList(String[] existingPaths, String newPath) {
|
||||
String pathSep = java.io.File.pathSeparator; // semicolon for windows, colon for Linux/Mac
|
||||
List<String> newPathList = new ArrayList<String>();
|
||||
List<String> newPathList = new ArrayList<>();
|
||||
String path;
|
||||
//adds existing paths to new paths list
|
||||
for (int i = 0; i < existingPaths.length; i++) {
|
||||
|
@ -800,7 +800,7 @@ public class LlvmToolOptionPathUtil {
|
|||
* @return String[] List that includes existing paths without the path that was removed.
|
||||
*/
|
||||
public static String[] removePathFromExistingPathList(String[] existingPaths, String removePath) {
|
||||
List<String> newPathList = new ArrayList<String>();
|
||||
List<String> newPathList = new ArrayList<>();
|
||||
String path;
|
||||
//adds existing paths to new paths list
|
||||
for (int i = 0; i < existingPaths.length; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue