GT-3597 improved default reference update during language upgrade

redisassembly
This commit is contained in:
ghidra1 2020-03-13 12:17:21 -04:00
parent 1f54ed8a17
commit b176767f07
3 changed files with 117 additions and 58 deletions

View file

@ -104,7 +104,7 @@ public class FixLangId extends GhidraScript {
List<LanguageDescription> descriptions =
DefaultLanguageService.getLanguageService().getLanguageDescriptions(true);
List<String> choices = new ArrayList<>(descriptions.size());
for (int i = 0; i < choices.size(); i++) {
for (int i = 0; i < descriptions.size(); i++) {
choices.add(descriptions.get(i).getLanguageID().getIdAsString());
}