GP-1903: Fixing compilation error in GhidraDev caused by ArrayUtilities

removal
This commit is contained in:
Ryan Kurtz 2022-04-15 03:31:09 -04:00
parent 2e2380c927
commit 0ab836add7

View File

@ -16,8 +16,7 @@
package ghidradev.ghidraprojectcreator.utils; package ghidradev.ghidraprojectcreator.utils;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.*;
import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.eclipse.core.runtime.*; import org.eclipse.core.runtime.*;
@ -33,7 +32,6 @@ import org.python.pydev.plugin.nature.PythonNature;
import com.python.pydev.debug.remote.client_api.PydevRemoteDebuggerServer; import com.python.pydev.debug.remote.client_api.PydevRemoteDebuggerServer;
import ghidradev.EclipseMessageUtils; import ghidradev.EclipseMessageUtils;
import utilities.util.ArrayUtilities;
/** /**
* Utility methods for interacting with PyDev. * Utility methods for interacting with PyDev.
@ -107,8 +105,11 @@ class PyDevUtilsInternal {
else { else {
EclipseMessageUtils.error("Failed to add Jython Lib directory to python path"); EclipseMessageUtils.error("Failed to add Jython Lib directory to python path");
} }
iMan.setInfos(ArrayUtilities.copyAndAppend(iMan.getInterpreterInfos(), iInfo), null, IInterpreterInfo[] interpreterInfos = iMan.getInterpreterInfos();
monitor); IInterpreterInfo[] newInterpreterInfos =
Arrays.copyOf(interpreterInfos, interpreterInfos.length + 1);
newInterpreterInfos[interpreterInfos.length] = iInfo;
iMan.setInfos(newInterpreterInfos, null, monitor);
} }
/** /**