GP-0: Using TaskMonitor.DUMMY instead of deprecated

TaskMonitorAdapter.DUMMY_MONITOR
This commit is contained in:
Ryan Kurtz 2022-12-28 08:06:16 -05:00
parent c077c60942
commit 70a155cb70
130 changed files with 944 additions and 958 deletions

View file

@ -1,6 +1,5 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,6 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.io.File;
import java.io.IOException;
import db.DBConstants;
import db.DBHandle;
import ghidra.app.script.GhidraScript;
import ghidra.framework.store.db.PackedDatabase;
import ghidra.program.database.ProgramDB;
@ -21,13 +25,7 @@ import ghidra.program.model.lang.LanguageNotFoundException;
import ghidra.util.Msg;
import ghidra.util.exception.CancelledException;
import ghidra.util.exception.VersionException;
import ghidra.util.task.TaskMonitorAdapter;
import java.io.File;
import java.io.IOException;
import db.DBConstants;
import db.DBHandle;
import ghidra.util.task.TaskMonitor;
public class UpgradeTestProgramScript extends GhidraScript {
@ -80,7 +78,7 @@ public class UpgradeTestProgramScript extends GhidraScript {
private boolean upgradeProgramArchive(File gzf) throws IOException, CancelledException,
VersionException {
PackedDatabase db = PackedDatabase.getPackedDatabase(gzf, TaskMonitorAdapter.DUMMY_MONITOR);
PackedDatabase db = PackedDatabase.getPackedDatabase(gzf, TaskMonitor.DUMMY);
DBHandle dbh = null;
ProgramDB p = null;
try {