mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-24 13:11:47 +00:00
GP-1903: Fixing compilation error in GhidraDev caused by ArrayUtilities
removal
This commit is contained in:
parent
2e2380c927
commit
0ab836add7
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user