diff --git a/Ghidra/Features/Base/developer_scripts/FixLangId.java b/Ghidra/Features/Base/developer_scripts/FixLangId.java
index 1cb8302007..8d5187f114 100644
--- a/Ghidra/Features/Base/developer_scripts/FixLangId.java
+++ b/Ghidra/Features/Base/developer_scripts/FixLangId.java
@@ -37,7 +37,7 @@ import ghidra.program.model.listing.Program;
import ghidra.program.util.DefaultLanguageService;
import ghidra.util.Msg;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class FixLangId extends GhidraScript {
@@ -78,7 +78,7 @@ public class FixLangId extends GhidraScript {
return;
}
- dbh.save("Set Language", null, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh.save("Set Language", null, TaskMonitor.DUMMY);
dbh.close();
}
diff --git a/Ghidra/Features/Base/developer_scripts/UpgradeTestProgramScript.java b/Ghidra/Features/Base/developer_scripts/UpgradeTestProgramScript.java
index d49cb8a869..5649aa6c42 100644
--- a/Ghidra/Features/Base/developer_scripts/UpgradeTestProgramScript.java
+++ b/Ghidra/Features/Base/developer_scripts/UpgradeTestProgramScript.java
@@ -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 {
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/cmd/function/FunctionResultStateStackAnalysisCmd.java b/Ghidra/Features/Base/src/main/java/ghidra/app/cmd/function/FunctionResultStateStackAnalysisCmd.java
index 045fe5f9a3..3c150a149f 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/cmd/function/FunctionResultStateStackAnalysisCmd.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/cmd/function/FunctionResultStateStackAnalysisCmd.java
@@ -336,7 +336,7 @@ public class FunctionResultStateStackAnalysisCmd extends BackgroundCommand {
ContextState returnState = results.getContextStates(seq).next();
Varnode varnode =
returnState.get(results.getStackPointerVarnode(),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
Varnode zero =
new Varnode(addrFactory.getConstantSpace().getAddress(0),
stackReg.getMinimumByteSize());
@@ -364,7 +364,7 @@ public class FunctionResultStateStackAnalysisCmd extends BackgroundCommand {
}
VarnodeOperation vop = (VarnodeOperation) vn;
return ResultsState.simplify(vop.getPCodeOp(), vop.getInputValues(), addrFactory,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
}
/**
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/merge/MergeManager.java b/Ghidra/Features/Base/src/main/java/ghidra/app/merge/MergeManager.java
index b2825e3951..2d255499b5 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/merge/MergeManager.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/merge/MergeManager.java
@@ -225,7 +225,7 @@ public abstract class MergeManager implements DomainObjectMergeManager {
* Convenience method for Junit tests.
*/
public boolean merge() throws CancelledException {
- return merge(TaskMonitorAdapter.DUMMY_MONITOR);
+ return merge(TaskMonitor.DUMMY);
}
/**
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkDeleteCmd.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkDeleteCmd.java
index 2d439ad88b..6d8d50ec86 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkDeleteCmd.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkDeleteCmd.java
@@ -15,15 +15,15 @@
*/
package ghidra.app.plugin.core.bookmark;
+import java.util.Collections;
+import java.util.List;
+
import ghidra.framework.cmd.Command;
import ghidra.framework.model.DomainObject;
import ghidra.program.model.address.*;
import ghidra.program.model.listing.*;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
-
-import java.util.Collections;
-import java.util.List;
+import ghidra.util.task.TaskMonitor;
/**
* Command to delete some number of bookmarks.
@@ -205,7 +205,7 @@ public class BookmarkDeleteCmd implements Command {
private void deleteBookmarks(BookmarkManager mgr, String theType, String theCategory) {
try {
- mgr.removeBookmarks(theType, theCategory, TaskMonitorAdapter.DUMMY_MONITOR);
+ mgr.removeBookmarks(theType, theCategory, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// can't happen--dummy monitor
@@ -214,7 +214,7 @@ public class BookmarkDeleteCmd implements Command {
private void deleteBookmarks(BookmarkManager mgr, AddressSetView set) {
try {
- mgr.removeBookmarks(set, TaskMonitorAdapter.DUMMY_MONITOR);
+ mgr.removeBookmarks(set, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// can't happen--dummy monitor
@@ -223,7 +223,7 @@ public class BookmarkDeleteCmd implements Command {
private void deleteBookmarks(BookmarkManager mgr, AddressSetView set, String theType) {
try {
- mgr.removeBookmarks(set, theType, TaskMonitorAdapter.DUMMY_MONITOR);
+ mgr.removeBookmarks(set, theType, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// can't happen--dummy monitor
@@ -233,7 +233,7 @@ public class BookmarkDeleteCmd implements Command {
private void deleteBookmarks(BookmarkManager mgr, AddressSetView set, String theType,
String theCategory) {
try {
- mgr.removeBookmarks(set, theType, theCategory, TaskMonitorAdapter.DUMMY_MONITOR);
+ mgr.removeBookmarks(set, theType, theCategory, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// can't happen--dummy monitor
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/clear/ClearCmd.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/clear/ClearCmd.java
index 9f9f37f338..0e6e20e34b 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/clear/ClearCmd.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/clear/ClearCmd.java
@@ -104,7 +104,7 @@ public class ClearCmd extends BackgroundCommand {
throws CancelledException {
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
Program program = (Program) obj;
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/select/flow/SelectByFlowPlugin.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/select/flow/SelectByFlowPlugin.java
index 2a846283bc..bf9317bfe0 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/select/flow/SelectByFlowPlugin.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/select/flow/SelectByFlowPlugin.java
@@ -244,7 +244,7 @@ public class SelectByFlowPlugin extends Plugin implements OptionsChangeListener
Program program = context.getProgram();
AddressSet selectionAddressSet = null;
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
monitor.setMessage("Computing Selection...");
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/nodes/ClassCategoryNode.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/nodes/ClassCategoryNode.java
index 5bcfd2e031..eefb6b0d54 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/nodes/ClassCategoryNode.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/nodes/ClassCategoryNode.java
@@ -74,7 +74,7 @@ public class ClassCategoryNode extends SymbolCategoryNode {
Namespace parentNamespace = symbol.getParentNamespace();
Symbol namespaceSymbol = parentNamespace.getSymbol();
SymbolNode key = SymbolNode.createNode(namespaceSymbol, program);
- GTreeNode parentNode = findSymbolTreeNode(key, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ GTreeNode parentNode = findSymbolTreeNode(key, false, TaskMonitor.DUMMY);
if (parentNode == null) {
return null;
}
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/nodes/SymbolCategoryNode.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/nodes/SymbolCategoryNode.java
index fb8e7da856..f1e31c7868 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/nodes/SymbolCategoryNode.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/nodes/SymbolCategoryNode.java
@@ -173,7 +173,7 @@ public abstract class SymbolCategoryNode extends SymbolTreeNode {
Namespace parentNamespace = symbol.getParentNamespace();
Symbol namespaceSymbol = parentNamespace.getSymbol();
SymbolNode key = SymbolNode.createNode(namespaceSymbol, program);
- parentNode = findSymbolTreeNode(key, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ parentNode = findSymbolTreeNode(key, false, TaskMonitor.DUMMY);
if (parentNode == null) {
return null;
}
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/NTHeader.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/NTHeader.java
index 780b66d7cb..6476ac2fe9 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/NTHeader.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/NTHeader.java
@@ -25,7 +25,7 @@ import ghidra.program.model.data.*;
import ghidra.util.*;
import ghidra.util.exception.DuplicateNameException;
import ghidra.util.exception.NotYetImplementedException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* A class to represent the IMAGE_NT_HEADERS32
and
@@ -256,7 +256,7 @@ public class NTHeader implements StructConverter, OffsetValidator {
fileHeader.processSymbols();
if (advancedProcess) {
- optionalHeader.processDataDirectories(TaskMonitorAdapter.DUMMY_MONITOR);
+ optionalHeader.processDataDirectories(TaskMonitor.DUMMY);
}
}
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/OmfLoader.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/OmfLoader.java
index 8c74975c87..4a1ced92b0 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/OmfLoader.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/OmfLoader.java
@@ -85,7 +85,7 @@ public class OmfLoader extends AbstractProgramWrapperLoader {
reader.setPointerIndex(0);
OmfFileHeader scan;
try {
- scan = OmfFileHeader.scan(reader, TaskMonitorAdapter.DUMMY_MONITOR, true);
+ scan = OmfFileHeader.scan(reader, TaskMonitor.DUMMY, true);
}
catch (OmfException e) {
throw new IOException("Bad header format: " + e.getMessage());
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/format/FieldHeader.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/format/FieldHeader.java
index b2b0c6f056..1c0c58e06b 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/format/FieldHeader.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/format/FieldHeader.java
@@ -227,7 +227,7 @@ public class FieldHeader extends JTabbedPane implements ChangeListener {
// try {
// ClassSearcher.setXmlRestoreFile(GenericRunInfo.getUserDataDirPath() +
// File.separatorChar + "TestClasses.xml");
-// ClassSearcher.search(false, TaskMonitorAdapter.DUMMY_MONITOR);
+// ClassSearcher.search(false, TaskMonitor.DUMMY);
// }
// catch (CancelledException e) {
// // can't happen--dummy monitor
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/base/project/GhidraProject.java b/Ghidra/Features/Base/src/main/java/ghidra/base/project/GhidraProject.java
index c5190dfd39..35e25ae5da 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/base/project/GhidraProject.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/base/project/GhidraProject.java
@@ -483,7 +483,7 @@ public class GhidraProject {
throw new DuplicateFileException("File already exists: " + file);
}
}
- program.saveToPackedFile(file, TaskMonitorAdapter.DUMMY_MONITOR);
+ program.saveToPackedFile(file, TaskMonitor.DUMMY);
}
catch (CancelledException e1) {
throw new IOException("Cancelled");
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/program/examiner/ProgramExaminer.java b/Ghidra/Features/Base/src/main/java/ghidra/program/examiner/ProgramExaminer.java
index e26091fa21..ffe69c1b21 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/program/examiner/ProgramExaminer.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/program/examiner/ProgramExaminer.java
@@ -34,7 +34,7 @@ import ghidra.program.model.listing.*;
import ghidra.program.model.mem.MemoryAccessException;
import ghidra.program.util.DefaultLanguageService;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import utility.application.ApplicationLayout;
/**
@@ -81,11 +81,11 @@ public class ProgramExaminer {
messageLog = new MessageLog();
try {
program = AutoImporter.importByUsingBestGuess(provider, null, this, messageLog,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
if (program == null) {
program = AutoImporter.importAsBinary(provider, null, defaultLanguage, null, this,
- messageLog, TaskMonitorAdapter.DUMMY_MONITOR);
+ messageLog, TaskMonitor.DUMMY);
}
if (program == null) {
throw new GhidraException(
@@ -172,7 +172,7 @@ public class ProgramExaminer {
int txID = program.startTransaction("find images");
try {
EmbeddedMediaAnalyzer imageAnalyzer = new EmbeddedMediaAnalyzer();
- imageAnalyzer.added(program, program.getMemory(), TaskMonitorAdapter.DUMMY_MONITOR,
+ imageAnalyzer.added(program, program.getMemory(), TaskMonitor.DUMMY,
messageLog);
}
catch (CancelledException e) {
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryUtil.java b/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryUtil.java
index 89a7850adb..00b68d49c0 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryUtil.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryUtil.java
@@ -278,7 +278,7 @@ public class ProgramMemoryUtil {
TaskMonitor monitor) throws CancelledException {
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
Memory memory = program.getMemory();
@@ -421,7 +421,7 @@ public class ProgramMemoryUtil {
CodeUnit codeUnit, TaskMonitor monitor) {
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
AddressSet toAddressSet =
@@ -490,7 +490,7 @@ public class ProgramMemoryUtil {
int alignment, Address toAddress, TaskMonitor monitor) throws CancelledException {
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
byte[] addressBytes = getDirectAddressBytes(program, toAddress);
@@ -634,7 +634,7 @@ public class ProgramMemoryUtil {
Address toAddress, TaskMonitor monitor) throws CancelledException {
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
Memory memory = program.getMemory();
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java b/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java
index 432bc0cf77..b397b4af80 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java
@@ -744,7 +744,7 @@ public class ProgramMerge {
// Use heavyweight disassembler for delay slotted instruction
AddressSet restrictedSet = new AddressSet(addr);
Disassembler disassembler =
- Disassembler.getDisassembler(program, TaskMonitorAdapter.DUMMY_MONITOR, null);
+ Disassembler.getDisassembler(program, TaskMonitor.DUMMY, null);
disassembler.disassemble(addr, restrictedSet, false);
return program.getListing().getInstructionAt(addr);
}
@@ -3725,7 +3725,7 @@ public class ProgramMerge {
BookmarkManager bm2 = originProgram.getBookmarkManager();
try {
bm1.removeBookmarks(new AddressSet(resultAddress, resultAddress),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// DummyAdapter doesn't let cancel occur.
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMergeManager.java b/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMergeManager.java
index d7b533a078..680189dd0b 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMergeManager.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMergeManager.java
@@ -428,7 +428,7 @@ public class ProgramMergeManager {
AddressSet p1CodeUnitSet = DiffUtility.getCodeUnitSet(p1MergeSet, this.program1);
if (monitor == null) {
// Create a "do nothing" task monitor that we can pass along.
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
// Check that the needed memory addresses are available in the merge program.
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/util/state/ContextState.java b/Ghidra/Features/Base/src/main/java/ghidra/util/state/ContextState.java
index 2bab002944..c09f51a6fb 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/util/state/ContextState.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/util/state/ContextState.java
@@ -492,7 +492,7 @@ public class ContextState {
*/
public Varnode get(int spaceID, Varnode offsetValue, int size) {
try {
- return get(spaceID, offsetValue, size, TaskMonitorAdapter.DUMMY_MONITOR);
+ return get(spaceID, offsetValue, size, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
throw new AssertException(e); // unexpected
@@ -585,7 +585,7 @@ public class ContextState {
*/
public Varnode get(Varnode varnode) {
try {
- return get(varnode, TaskMonitorAdapter.DUMMY_MONITOR);
+ return get(varnode, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
throw new AssertException(e); // unexpected
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge1Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge1Test.java
index 1397bacd06..2593be6c37 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge1Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge1Test.java
@@ -25,7 +25,7 @@ import ghidra.program.database.ProgramModifierListener;
import ghidra.program.model.data.*;
import ghidra.util.InvalidNameException;
import ghidra.util.exception.DuplicateNameException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Tests for the merge data type manager.
@@ -102,7 +102,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
Structure s =
new StructureDataType(miscCat.getCategoryPath(), "My structure", 0);
s.add(new ByteDataType());
@@ -174,7 +174,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(c, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(c, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -531,7 +531,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category miscCat = dtm.getCategory(new CategoryPath("/MISC"));
Category destCat = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -556,7 +556,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -595,7 +595,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category miscCat = dtm.getCategory(new CategoryPath("/MISC"));
Category destCat = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -620,7 +620,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -659,7 +659,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category miscCat = dtm.getCategory(new CategoryPath("/MISC"));
Category destCat = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -684,7 +684,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -732,7 +732,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -777,7 +777,7 @@ public class CategoryMerge1Test extends AbstractDataTypeMergeTest {
try {
dtm.createCategory(path);
dtm.getRootCategory().removeCategory("MyCategory",
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
commit = true;
}
catch (Exception e) {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge2Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge2Test.java
index a18aacc66e..542ca1dda7 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge2Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge2Test.java
@@ -25,7 +25,7 @@ import ghidra.program.database.ProgramModifierListener;
import ghidra.program.model.data.*;
import ghidra.util.InvalidNameException;
import ghidra.util.exception.DuplicateNameException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Tests for the merge data type manager.
@@ -57,7 +57,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- c.removeCategory("Category3", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category3", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -91,7 +91,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- c.removeCategory("Category3", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category3", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -109,7 +109,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- c.removeCategory("Category3", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category3", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -141,7 +141,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- c.removeCategory("Category4", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category4", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -221,7 +221,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- c.removeCategory("Category4", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category4", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -278,7 +278,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- c.removeCategory("Category4", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category4", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -312,7 +312,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -334,7 +334,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -373,7 +373,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -395,7 +395,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -432,7 +432,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
Category destCat =
dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- destCat.moveCategory(miscCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ destCat.moveCategory(miscCat, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -454,7 +454,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -514,7 +514,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1"));
try {
- c.removeCategory("Category2", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category2", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -574,7 +574,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1"));
try {
- c.removeCategory("Category2", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category2", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -638,7 +638,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("Category1", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("Category1", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -701,7 +701,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("test");
Category c = dtm.getCategory(new CategoryPath("/Category1"));
try {
- c.removeCategory("Category2", TaskMonitorAdapter.DUMMY_MONITOR);
+ c.removeCategory("Category2", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -742,7 +742,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
Category root = dtm.getCategory(CategoryPath.ROOT);
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- root.moveCategory(c, TaskMonitorAdapter.DUMMY_MONITOR);
+ root.moveCategory(c, TaskMonitor.DUMMY);
c = root.getCategory(c.getName());
c.setName("Other Category3");
commit = true;
@@ -771,7 +771,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
c.setName("My Category3");
- miscCat.moveCategory(c, TaskMonitorAdapter.DUMMY_MONITOR);
+ miscCat.moveCategory(c, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -821,7 +821,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
Category root = dtm.getCategory(CategoryPath.ROOT);
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- root.moveCategory(c, TaskMonitorAdapter.DUMMY_MONITOR);
+ root.moveCategory(c, TaskMonitor.DUMMY);
c = root.getCategory(c.getName());
c.setName("Other Category3");
commit = true;
@@ -850,7 +850,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
c.setName("My Category3");
- miscCat.moveCategory(c, TaskMonitorAdapter.DUMMY_MONITOR);
+ miscCat.moveCategory(c, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -922,7 +922,7 @@ public class CategoryMerge2Test extends AbstractDataTypeMergeTest {
Category root = dtm.getCategory(CategoryPath.ROOT);
Category c = dtm.getCategory(new CategoryPath("/Category1/Category2/Category3"));
try {
- root.moveCategory(c, TaskMonitorAdapter.DUMMY_MONITOR);
+ root.moveCategory(c, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge4Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge4Test.java
index a2c79c0c79..c1eb26527f 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge4Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge4Test.java
@@ -25,7 +25,7 @@ import ghidra.program.database.ProgramModifierListener;
import ghidra.program.model.data.*;
import ghidra.util.InvalidNameException;
import ghidra.util.exception.DuplicateNameException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test category merge conflicts.
@@ -463,7 +463,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
temp.moveDataType(dt, DataTypeConflictHandler.DEFAULT_HANDLER);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
catch (DataTypeDependencyException e) {
@@ -539,7 +539,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
temp.moveDataType(dt, DataTypeConflictHandler.DEFAULT_HANDLER);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
catch (DataTypeDependencyException e) {
@@ -613,7 +613,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
temp.moveDataType(dt, DataTypeConflictHandler.DEFAULT_HANDLER);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
catch (DataTypeDependencyException e) {
@@ -689,7 +689,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
temp.moveDataType(dt, DataTypeConflictHandler.DEFAULT_HANDLER);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
catch (DataTypeDependencyException e) {
@@ -768,7 +768,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
temp.moveDataType(dt, DataTypeConflictHandler.DEFAULT_HANDLER);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
// move Foo to /Category1
Category c1 = dtm.getCategory(new CategoryPath("/Category1"));
c1.moveDataType(foo, DataTypeConflictHandler.DEFAULT_HANDLER);
@@ -856,7 +856,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
temp.moveDataType(dt, DataTypeConflictHandler.DEFAULT_HANDLER);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
// move Foo to /Category1
Category c1 = dtm.getCategory(new CategoryPath("/Category1"));
c1.moveDataType(foo, DataTypeConflictHandler.DEFAULT_HANDLER);
@@ -915,7 +915,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
newMisc.moveDataType(dt, DataTypeConflictHandler.DEFAULT_HANDLER);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
newMisc.setName("MISC");
commit = true;
}
@@ -993,7 +993,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
DataTypeManager dtm = program.getDataTypeManager();
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -1094,7 +1094,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
DataTypeManager dtm = program.getDataTypeManager();
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -1141,7 +1141,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
DataTypeManager dtm = program.getDataTypeManager();
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -1223,7 +1223,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
DataTypeManager dtm = program.getDataTypeManager();
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -1319,7 +1319,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
DataTypeManager dtm = program.getDataTypeManager();
Category root = dtm.getCategory(CategoryPath.ROOT);
try {
- root.removeCategory("MISC", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("MISC", TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -1417,7 +1417,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
Category c2 = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- c2.moveCategory(misc, TaskMonitorAdapter.DUMMY_MONITOR);
+ c2.moveCategory(misc, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -1441,7 +1441,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
try {
for (DataType dt : dts) {
- misc.remove(dt, TaskMonitorAdapter.DUMMY_MONITOR);
+ misc.remove(dt, TaskMonitor.DUMMY);
}
commit = true;
}
@@ -1484,7 +1484,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
try {
for (DataType dt : dts) {
- misc.remove(dt, TaskMonitorAdapter.DUMMY_MONITOR);
+ misc.remove(dt, TaskMonitor.DUMMY);
}
commit = true;
}
@@ -1506,7 +1506,7 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
Category c2 = dtm.getCategory(new CategoryPath("/Category1/Category2"));
try {
- c2.moveCategory(misc, TaskMonitorAdapter.DUMMY_MONITOR);
+ c2.moveCategory(misc, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -1574,10 +1574,10 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
try {
Category temp = dtm.createCategory(new CategoryPath("/A_TEMP"));
for (Category cat : cats) {
- temp.moveCategory(cat, TaskMonitorAdapter.DUMMY_MONITOR);
+ temp.moveCategory(cat, TaskMonitor.DUMMY);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("A", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("A", TaskMonitor.DUMMY);
commit = true;
}
catch (Exception e) {
@@ -1651,10 +1651,10 @@ public class CategoryMerge4Test extends AbstractDataTypeMergeTest {
try {
Category temp = dtm.createCategory(new CategoryPath("/A_TEMP"));
for (Category cat : cats) {
- temp.moveCategory(cat, TaskMonitorAdapter.DUMMY_MONITOR);
+ temp.moveCategory(cat, TaskMonitor.DUMMY);
}
Category root = dtm.getCategory(CategoryPath.ROOT);
- root.removeCategory("A", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("A", TaskMonitor.DUMMY);
temp.setName("MY_A");
commit = true;
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMergeUseForAllTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMergeUseForAllTest.java
index d2dbe36f75..b6491e7dec 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMergeUseForAllTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMergeUseForAllTest.java
@@ -15,8 +15,7 @@
*/
package ghidra.app.merge.datatypes;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
+import static org.junit.Assert.*;
import org.junit.Assert;
import org.junit.Test;
@@ -26,7 +25,7 @@ import ghidra.program.database.ProgramModifierListener;
import ghidra.program.model.data.*;
import ghidra.util.InvalidNameException;
import ghidra.util.exception.DuplicateNameException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Tests for the merge data type manager.
@@ -59,10 +58,10 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
// new CategoryPath("/Category1/Category2/Category4"));
try {
miscCat.setName("My Misc");
- cat1.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat1.moveCategory(cat3, TaskMonitor.DUMMY);
DataTypeManager dtm = program.getDataTypeManager();
dtm.createCategory(new CategoryPath("/newCat"));
- cat2.removeCategory("Category4", TaskMonitorAdapter.DUMMY_MONITOR);
+ cat2.removeCategory("Category4", TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -91,7 +90,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category4"));
try {
miscCat.setName("Some Other Misc");
- cat4.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat4.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -142,7 +141,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category3"));
try {
miscCat.setName("My Misc");
- cat1.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat1.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -171,7 +170,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category4"));
try {
miscCat.setName("Some Other Misc");
- cat4.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat4.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -219,7 +218,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category3"));
try {
miscCat.setName("My Misc");
- cat1.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat1.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -248,7 +247,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category4"));
try {
miscCat.setName("Some Other Misc");
- cat4.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat4.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -296,7 +295,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category3"));
try {
miscCat.setName("My Misc");
- cat1.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat1.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -325,7 +324,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category4"));
try {
miscCat.setName("Some Other Misc");
- cat4.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat4.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -388,7 +387,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category3"));
try {
miscCat.setName("My Misc");
- cat1.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat1.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
@@ -417,7 +416,7 @@ public class CategoryMergeUseForAllTest extends AbstractDataTypeMergeTest {
new CategoryPath("/Category1/Category2/Category4"));
try {
miscCat.setName("Some Other Misc");
- cat4.moveCategory(cat3, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat4.moveCategory(cat3, TaskMonitor.DUMMY);
commit = true;
}
catch (DuplicateNameException e) {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMerge8Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMerge8Test.java
index 45c208f5d3..9e82f134d1 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMerge8Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMerge8Test.java
@@ -26,7 +26,7 @@ import ghidra.framework.main.*;
import ghidra.program.database.OriginalProgramModifierListener;
import ghidra.program.database.ProgramDB;
import ghidra.program.model.data.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* More data type merge tests.
@@ -109,7 +109,7 @@ public class DataTypeMerge8Test extends AbstractDataTypeMergeTest {
transactionID = program.startTransaction("remove XYZ");
try {
// Remove the XYZ data type.
- dtm.remove(xyz, TaskMonitorAdapter.DUMMY_MONITOR);
+ dtm.remove(xyz, TaskMonitor.DUMMY);
commit = true;
}
finally {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMergeFixupTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMergeFixupTest.java
index 04ab41dc12..c53b70f375 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMergeFixupTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMergeFixupTest.java
@@ -22,7 +22,7 @@ import org.junit.Test;
import ghidra.program.database.OriginalProgramModifierListener;
import ghidra.program.database.ProgramDB;
import ghidra.program.model.data.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Data type merge tests with fixup for data types added in My program.
@@ -85,7 +85,7 @@ public class DataTypeMergeFixupTest extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("delete inner struct");
try {
// Remove inner struct
- dtm.remove(inner, TaskMonitorAdapter.DUMMY_MONITOR);
+ dtm.remove(inner, TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -245,7 +245,7 @@ public class DataTypeMergeFixupTest extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("delete inner struct");
try {
// Remove inner struct
- dtm.remove(inner, TaskMonitorAdapter.DUMMY_MONITOR);
+ dtm.remove(inner, TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -360,7 +360,7 @@ public class DataTypeMergeFixupTest extends AbstractDataTypeMergeTest {
int transactionID = program.startTransaction("delete inner struct");
try {
// Remove inner struct
- dtm.remove(inner, TaskMonitorAdapter.DUMMY_MONITOR);
+ dtm.remove(inner, TaskMonitor.DUMMY);
commit = true;
}
finally {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMergeUseForAllTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMergeUseForAllTest.java
index e30a7a1750..406a1c6c0c 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMergeUseForAllTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMergeUseForAllTest.java
@@ -22,7 +22,7 @@ import org.junit.Test;
import ghidra.program.database.ProgramDB;
import ghidra.program.database.ProgramModifierListener;
import ghidra.program.model.data.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Tests for merging data types.
@@ -93,7 +93,7 @@ public class DataTypeMergeUseForAllTest extends AbstractDataTypeMergeTest {
try {
intStruct.add(new ByteDataType());// Change data type.
- dtm.remove(coolUnion, TaskMonitorAdapter.DUMMY_MONITOR);// Remove the data type.
+ dtm.remove(coolUnion, TaskMonitor.DUMMY);// Remove the data type.
charStruct.add(new FloatDataType());
commit = true;
}
@@ -122,7 +122,7 @@ public class DataTypeMergeUseForAllTest extends AbstractDataTypeMergeTest {
"CharStruct");
try {
- dtm.remove(intStruct, TaskMonitorAdapter.DUMMY_MONITOR);// Remove the data type.
+ dtm.remove(intStruct, TaskMonitor.DUMMY);// Remove the data type.
coolUnion.delete(2);
charStruct.add(new CharDataType());
commit = true;
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/CodeUnitMergeManager4Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/CodeUnitMergeManager4Test.java
index c0d6f83b23..659aa9741a 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/CodeUnitMergeManager4Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/CodeUnitMergeManager4Test.java
@@ -23,7 +23,7 @@ import ghidra.program.database.ProgramDB;
import ghidra.program.database.ProgramModifierListener;
import ghidra.program.model.address.AddressSet;
import ghidra.program.model.data.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test the merge of the versioned program's code units when bytes
@@ -1170,7 +1170,7 @@ public class CodeUnitMergeManager4Test extends AbstractListingMergeManagerTest {
Category cat = dtm.getCategory(catPath);
assertNotNull(cat);
// Delete category "cat1".
- root.removeCategory("cat1", TaskMonitorAdapter.DUMMY_MONITOR);
+ root.removeCategory("cat1", TaskMonitor.DUMMY);
cat = dtm.getCategory(catPath);
assertNull(cat);
//Add "cat1" category back
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerThunk2Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerThunk2Test.java
index 6fb4e217f3..fd18da2de0 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerThunk2Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerThunk2Test.java
@@ -31,7 +31,7 @@ import ghidra.program.model.listing.FunctionManager;
import ghidra.program.model.symbol.SourceType;
import ghidra.program.util.ProgramDiff;
import ghidra.program.util.ProgramDiffFilter;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test the multi-user merge of thunk functions.
@@ -171,12 +171,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -231,12 +231,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -332,12 +332,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -437,12 +437,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -524,12 +524,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -610,12 +610,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -697,12 +697,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -785,12 +785,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -899,12 +899,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1013,12 +1013,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1117,12 +1117,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1216,12 +1216,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1315,12 +1315,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1400,7 +1400,7 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1476,7 +1476,7 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1570,12 +1570,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1674,12 +1674,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1784,12 +1784,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
addr(resultProgram, TWO_PARAMS_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1893,12 +1893,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
addr(resultProgram, TWO_PARAMS_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1984,12 +1984,12 @@ public class FunctionMergerThunk2Test extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerThunkTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerThunkTest.java
index 928ff4e4d2..f1c7b8cbd9 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerThunkTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerThunkTest.java
@@ -36,7 +36,7 @@ import ghidra.program.model.symbol.ExternalLocation;
import ghidra.program.model.symbol.SourceType;
import ghidra.program.util.ProgramDiff;
import ghidra.program.util.ProgramDiffFilter;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test the multi-user merge of thunk functions.
@@ -122,11 +122,11 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
AddressSet expectedDifferences = new AddressSet();
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -191,11 +191,11 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
AddressSet expectedDifferences = new AddressSet(entryAddress, entryAddress);
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -338,12 +338,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -424,12 +424,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -511,12 +511,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -601,12 +601,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -692,12 +692,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
expectedDifferences.add(addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -783,12 +783,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
expectedDifferences.add(addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1531,12 +1531,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1620,12 +1620,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1714,12 +1714,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
AddressSet expectedDifferences = new AddressSet(addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -1811,12 +1811,12 @@ public class FunctionMergerThunkTest extends AbstractExternalMergerTest {
new AddressSet(addr(resultProgram, THUNK_A_ENTRY), addr(resultProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerUseForAllTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerUseForAllTest.java
index 74007bb18c..91abd1616e 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerUseForAllTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/FunctionMergerUseForAllTest.java
@@ -31,7 +31,7 @@ import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.SourceType;
import ghidra.program.util.ProgramDiff;
import ghidra.program.util.ProgramDiffFilter;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class FunctionMergerUseForAllTest extends AbstractListingMergeManagerTest {
@@ -138,12 +138,12 @@ public class FunctionMergerUseForAllTest extends AbstractListingMergeManagerTest
expectedDifferences.add(addr(resultProgram, THUNK_B_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -178,12 +178,12 @@ public class FunctionMergerUseForAllTest extends AbstractListingMergeManagerTest
expectedDifferences.add(addr(resultProgram, THUNK_B_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -299,12 +299,12 @@ public class FunctionMergerUseForAllTest extends AbstractListingMergeManagerTest
expectedDifferences.add(addr(resultProgram, THUNK_B_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
@@ -345,12 +345,12 @@ public class FunctionMergerUseForAllTest extends AbstractListingMergeManagerTest
expectedDifferences.add(addr(resultProgram, THUNK_B_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(resultProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
executeMerge(ASK_USER);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/tree/AbstractProgramTreeMergeManagerTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/tree/AbstractProgramTreeMergeManagerTest.java
index 75209d64e0..09b5957f7b 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/tree/AbstractProgramTreeMergeManagerTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/tree/AbstractProgramTreeMergeManagerTest.java
@@ -15,8 +15,7 @@
*/
package ghidra.app.merge.tree;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.*;
import java.awt.Container;
@@ -25,7 +24,7 @@ import javax.swing.*;
import ghidra.app.merge.*;
import ghidra.program.model.listing.ProgramChangeSet;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public abstract class AbstractProgramTreeMergeManagerTest extends AbstractMergeTest {
@@ -52,7 +51,7 @@ public abstract class AbstractProgramTreeMergeManagerTest extends AbstractMergeT
if (option >= 0) {
programTreeMergeManager.setConflictResolution(option);
}
- programTreeMergeManager.merge(TaskMonitorAdapter.DUMMY_MONITOR);
+ programTreeMergeManager.merge(TaskMonitor.DUMMY);
}
protected void merge() throws Exception {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/AutoAnalysisWorkerTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/AutoAnalysisWorkerTest.java
index c93edf644c..59cf2f28bd 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/AutoAnalysisWorkerTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/AutoAnalysisWorkerTest.java
@@ -134,7 +134,7 @@ public class AutoAnalysisWorkerTest extends AbstractGhidraHeadedIntegrationTest
schedule(mgr, new SetTestPropertyCommand("p1", 500), 10);
try {
- mgr.scheduleWorker(worker, null, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ mgr.scheduleWorker(worker, null, false, TaskMonitor.DUMMY);
}
catch (Exception e) {
failWithException("Unexpected exception", e);
@@ -158,7 +158,7 @@ public class AutoAnalysisWorkerTest extends AbstractGhidraHeadedIntegrationTest
schedule(mgr, new SetTestPropertyCommand("p1", 500), 10);
try {
- mgr.scheduleWorker(worker, null, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ mgr.scheduleWorker(worker, null, true, TaskMonitor.DUMMY);
}
catch (Exception e) {
failWithException("Unexpected exception", e);
@@ -284,7 +284,7 @@ public class AutoAnalysisWorkerTest extends AbstractGhidraHeadedIntegrationTest
Runnable r = () -> {
try {
- mgr.scheduleWorker(worker, null, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ mgr.scheduleWorker(worker, null, false, TaskMonitor.DUMMY);
Assert.fail("Expected UnsupportedOperationException");
}
catch (UnsupportedOperationException e1) {
@@ -468,7 +468,7 @@ public class AutoAnalysisWorkerTest extends AbstractGhidraHeadedIntegrationTest
AutoAnalysisManager mgr = AutoAnalysisManager.getAnalysisManager((Program) obj);
try {
return mgr.scheduleWorker(worker, null, analyzeChanges,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
}
catch (Exception e) {
error = e;
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datawindow/DataWindowPluginTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datawindow/DataWindowPluginTest.java
index 3e91237963..8495bce34b 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datawindow/DataWindowPluginTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datawindow/DataWindowPluginTest.java
@@ -15,8 +15,7 @@
*/
package ghidra.app.plugin.core.datawindow;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.*;
import java.awt.Dimension;
@@ -30,7 +29,7 @@ import ghidra.framework.plugintool.PluginTool;
import ghidra.program.model.address.Address;
import ghidra.program.model.listing.Program;
import ghidra.test.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class DataWindowPluginTest extends AbstractGhidraHeadedIntegrationTest {
private TestEnv env;
@@ -108,7 +107,7 @@ public class DataWindowPluginTest extends AbstractGhidraHeadedIntegrationTest {
int id = program.startTransaction(testName.getMethodName());
try {
- program.getListing().clearAll(false, TaskMonitorAdapter.DUMMY_MONITOR);
+ program.getListing().clearAll(false, TaskMonitor.DUMMY);
}
finally {
program.endTransaction(id, true);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/select/flow/AbstractFollowFlowTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/select/flow/AbstractFollowFlowTest.java
index f1ab626286..acc578a3c2 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/select/flow/AbstractFollowFlowTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/select/flow/AbstractFollowFlowTest.java
@@ -30,7 +30,7 @@ import ghidra.program.util.ProgramSelection;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
import ghidra.util.DataConverter;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public abstract class AbstractFollowFlowTest extends AbstractGhidraHeadedIntegrationTest {
@@ -71,7 +71,7 @@ public abstract class AbstractFollowFlowTest extends AbstractGhidraHeadedIntegra
AddressSetView getFlowsFrom(AddressSet startSet, FlowType[] excludedFlows) {
FollowFlow followFlow = new FollowFlow(program, startSet, excludedFlows);
- return followFlow.getFlowAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ return followFlow.getFlowAddressSet(TaskMonitor.DUMMY);
}
AddressSetView getFlowsTo(int startAddressOffset, FlowType[] excludedFlows) {
@@ -84,7 +84,7 @@ public abstract class AbstractFollowFlowTest extends AbstractGhidraHeadedIntegra
AddressSetView getFlowsTo(AddressSet startSet, FlowType[] excludedFlows) {
FollowFlow followFlow = new FollowFlow(program, startSet, excludedFlows);
- return followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ return followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
}
FlowType[] followAllFlows() {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/select/flow/FollowDelaySlotFlowTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/select/flow/FollowDelaySlotFlowTest.java
index c0bb9bf91b..82d0854e13 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/select/flow/FollowDelaySlotFlowTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/select/flow/FollowDelaySlotFlowTest.java
@@ -15,15 +15,16 @@
*/
package ghidra.app.plugin.core.select.flow;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.*;
+
+import org.junit.*;
+
import ghidra.program.model.address.Address;
import ghidra.program.model.address.AddressSet;
import ghidra.program.model.block.FollowFlow;
import ghidra.program.model.symbol.FlowType;
import ghidra.test.ToyProgramBuilder;
-import ghidra.util.task.TaskMonitorAdapter;
-
-import org.junit.*;
+import ghidra.util.task.TaskMonitor;
public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
@@ -89,7 +90,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(15));
@@ -130,7 +131,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(14), address(17));
@@ -171,7 +172,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(15));
@@ -213,7 +214,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(4), address(5));
@@ -255,7 +256,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(15));
@@ -292,7 +293,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(13));
@@ -329,7 +330,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(15));
@@ -369,7 +370,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(15));
@@ -410,7 +411,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(15));
@@ -451,7 +452,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(17));
@@ -493,7 +494,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(10), address(15));
@@ -535,7 +536,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
AddressSet addressSet = new AddressSet(addr);
FlowType[] flowsNotToFollow = new FlowType[] {};
FollowFlow followFlow = new FollowFlow(program, addressSet, flowsNotToFollow); // FollowAllFlows
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(4), address(5));
@@ -576,7 +577,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
Address addr = address(16);
AddressSet addressSet = new AddressSet(addr);
FollowFlow followFlow = new FollowFlow(program, addressSet, followOnlyPointers());
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(16), address(17));
@@ -620,7 +621,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
Address addr = address(16);
AddressSet addressSet = new AddressSet(addr);
FollowFlow followFlow = new FollowFlow(program, addressSet, followAllFlows());
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(4), address(5));
@@ -665,7 +666,7 @@ public class FollowDelaySlotFlowTest extends AbstractFollowFlowTest {
Address addr = address(16);
AddressSet addressSet = new AddressSet(addr);
FollowFlow followFlow = new FollowFlow(program, addressSet, followAllFlows());
- AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSet flowAddresses = followFlow.getFlowToAddressSet(TaskMonitor.DUMMY);
AddressSet expectedAddresses = new AddressSet();
expectedAddresses.add(address(4), address(5));
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/script/GhidraScriptRealProgramTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/script/GhidraScriptRealProgramTest.java
index 7c0a277ba5..ddb316cdcd 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/script/GhidraScriptRealProgramTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/script/GhidraScriptRealProgramTest.java
@@ -30,7 +30,7 @@ import ghidra.program.model.scalar.Scalar;
import ghidra.program.model.symbol.*;
import ghidra.program.util.ProgramLocation;
import ghidra.test.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class GhidraScriptRealProgramTest extends AbstractGhidraHeadedIntegrationTest {
@@ -417,7 +417,7 @@ public class GhidraScriptRealProgramTest extends AbstractGhidraHeadedIntegration
// test stub
}
};
- script.set(state, TaskMonitorAdapter.DUMMY_MONITOR, null);
+ script.set(state, TaskMonitor.DUMMY, null);
return script;
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/framework/project/CreateDomainObjectTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/framework/project/CreateDomainObjectTest.java
index 8cf67aa389..e984e10d61 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/framework/project/CreateDomainObjectTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/framework/project/CreateDomainObjectTest.java
@@ -25,7 +25,7 @@ import ghidra.framework.protocol.ghidra.GhidraURL;
import ghidra.program.database.ProgramBuilder;
import ghidra.program.model.listing.Program;
import ghidra.test.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* test for creating a new empty tool with the new front end
@@ -367,7 +367,7 @@ public class CreateDomainObjectTest extends AbstractGhidraHeadedIntegrationTest
DomainFolder f = df.createFolder(to);
DomainFolder f2 = df.getFolder(from);
- f2.copyTo(f, TaskMonitorAdapter.DUMMY_MONITOR);
+ f2.copyTo(f, TaskMonitor.DUMMY);
}
private static void moveTree(Project proj, String from, String to) throws Exception {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/code/CodeUnitIteratorTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/code/CodeUnitIteratorTest.java
index c0f62a29e5..69e484fafe 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/code/CodeUnitIteratorTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/code/CodeUnitIteratorTest.java
@@ -782,7 +782,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
@Test
public void testIteratorForComments() throws Exception {
startTransaction();
- mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR,
+ mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitor.DUMMY,
false);
for (int i = 0; i < 20; i++) {
@@ -810,10 +810,10 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
@Test
public void testIteratorForCommentType() throws Exception {
startTransaction();
- mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR,
+ mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitor.DUMMY,
false);
mem.createInitializedBlock("test2", addr(5000), 100, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
for (int i = 0; i < 20; i++) {
CodeUnit cu = listing.getCodeUnitAt(addr(i + 10));
@@ -850,7 +850,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
@Test
public void testIteratorForCommentsBackwards() throws Exception {
startTransaction();
- mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR,
+ mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitor.DUMMY,
false);
CodeUnit cu = listing.getCodeUnitAt(addr(90));
@@ -891,7 +891,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
@Test
public void testGetPropertyCodeUnitIterator() throws Exception {
startTransaction();
- mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR,
+ mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitor.DUMMY,
false);
for (int i = 0; i < 20; i++) {
CodeUnit cu = listing.getCodeUnitAt(addr(i + 10));
@@ -914,7 +914,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
@Test
public void testGetPropertyCuIteratorBackwards() throws Exception {
startTransaction();
- mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR,
+ mem.createInitializedBlock("test", addr(0), 100, (byte) 0, TaskMonitor.DUMMY,
false);
for (int i = 0; i < 20; i++) {
CodeUnit cu = listing.getCodeUnitAt(addr(i));
@@ -936,7 +936,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
@Test
public void testGetPropertCUIteratorSet() throws Exception {
startTransaction();
- mem.createInitializedBlock("bk1", addr(0), 200, (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR,
+ mem.createInitializedBlock("bk1", addr(0), 200, (byte) 0, TaskMonitor.DUMMY,
false);
// addresses 10-19
for (int i = 0; i < 20; i++) {
@@ -972,7 +972,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
public void testPropertyCommentIterator() throws Exception {
startTransaction();
// mem.createUninitializedBlock("Test", addr(0), 200);
- mem.createInitializedBlock("bk1", addr(0), 200, (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR,
+ mem.createInitializedBlock("bk1", addr(0), 200, (byte) 0, TaskMonitor.DUMMY,
false);
for (int i = 0; i < 20; i++) {
CodeUnit cu = listing.getCodeUnitAt(addr(i + 10));
@@ -1196,7 +1196,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
public void testGetDataBackwards() throws Exception {
startTransaction();
mem.createInitializedBlock("test", addr(0), 1000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
for (int i = 0; i < 10; i++) {
listing.createData(addr(i), DataType.DEFAULT, 1);
@@ -1251,7 +1251,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
public void testGetCompositeData() throws Exception {
startTransaction();
mem.createInitializedBlock("test", addr(0), 1000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
Structure struct = new StructureDataType("struct_1", 100);
Structure struct2 = new StructureDataType("struct_2", 0);
@@ -1306,7 +1306,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
public void testGetCompositeDataStartingAt() throws Exception {
startTransaction();
mem.createInitializedBlock("test", addr(0), 1000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
Structure struct = new StructureDataType("struct_1", 100);
Structure struct2 = new StructureDataType("struct_2", 0);
@@ -1360,7 +1360,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
public void testGetCompositeDataInSet() throws Exception {
startTransaction();
mem.createInitializedBlock("test", addr(0), 1000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
Structure struct = new StructureDataType("struct_1", 100);
Structure struct2 = new StructureDataType("struct_2", 0);
@@ -1418,7 +1418,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
startTransaction();
mem.removeBlock(mem.getBlock(addr(1000)), monitor);
mem.createInitializedBlock("test", addr(0), 1000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
for (int i = 0; i < 10; i++) {
listing.createData(addr(i), new ByteDataType(), 1);
@@ -1491,7 +1491,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
startTransaction();
mem.removeBlock(mem.getBlock(addr(1000)), monitor);
mem.createInitializedBlock("test", addr(0), 1000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
for (int i = 0; i < 10; i++) {
listing.createData(addr(i), DataType.DEFAULT, 1);
@@ -1553,7 +1553,7 @@ public class CodeUnitIteratorTest extends AbstractGhidraHeadedIntegrationTest {
public void testGetDefinedDataSetIterator() throws Exception {
startTransaction();
mem.createInitializedBlock("test", addr(0), 1000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
for (int i = 0; i < 10; i++) {
listing.createData(addr(i), new ByteDataType(), 0);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/ArrayTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/ArrayTest.java
index 7668dadd3f..82a3b438a4 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/ArrayTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/ArrayTest.java
@@ -29,7 +29,7 @@ import ghidra.program.model.listing.Data;
import ghidra.program.model.listing.Listing;
import ghidra.program.model.mem.Memory;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
*
@@ -117,7 +117,7 @@ public class ArrayTest extends AbstractGhidraHeadedIntegrationTest {
listing.getDataAt(addr(0x100));
CategoryPath path = dt.getCategoryPath();
assertNotNull(path);
- dt.getDataTypeManager().remove(dt, TaskMonitorAdapter.DUMMY_MONITOR);
+ dt.getDataTypeManager().remove(dt, TaskMonitor.DUMMY);
assertTrue(array.isDeleted());
assertNull(dt.getDataTypeManager().getDataType(path, name));
@@ -215,7 +215,7 @@ public class ArrayTest extends AbstractGhidraHeadedIntegrationTest {
private void addBlock() throws Exception {
Memory mem = program.getMemory();
mem.createInitializedBlock("test", addr(0), 0x1000L, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
private Address addr(int offset) {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/CategoryTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/CategoryTest.java
index 6c971f37d6..b1e40c20fd 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/CategoryTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/CategoryTest.java
@@ -218,7 +218,7 @@ public class CategoryTest extends AbstractGhidraHeadedIntegrationTest {
cat5.addDataType(s2, DataTypeConflictHandler.DEFAULT_HANDLER);
// move c4 to c5
- cat5.moveCategory(cat4, TaskMonitorAdapter.DUMMY_MONITOR);
+ cat5.moveCategory(cat4, TaskMonitor.DUMMY);
waitForPostedSwingRunnables();
assertEquals(new CategoryPath("/c1/c2/c5/c4"), cat4.getCategoryPath());
@@ -243,7 +243,7 @@ public class CategoryTest extends AbstractGhidraHeadedIntegrationTest {
Category c1 = root.createCategory("c1");
Category c2 = c1.createCategory("c2");
- c2.moveCategory(myCat, TaskMonitorAdapter.DUMMY_MONITOR);
+ c2.moveCategory(myCat, TaskMonitor.DUMMY);
Category[] cats = c2.getCategories();
assertEquals(1, cats.length);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/function/FunctionDBTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/function/FunctionDBTest.java
index 2b2516a50e..02baa63381 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/function/FunctionDBTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/function/FunctionDBTest.java
@@ -41,7 +41,7 @@ import ghidra.program.util.ProgramChangeRecord;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.util.exception.DuplicateNameException;
import ghidra.util.exception.InvalidInputException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
*
@@ -75,7 +75,7 @@ public class FunctionDBTest extends AbstractGhidraHeadedIntegrationTest
transactionID = program.startTransaction("Test");
program.getMemory()
.createInitializedBlock("test", addr(100), 500, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
functionManager = program.getFunctionManager();
}
@@ -1261,7 +1261,7 @@ public class FunctionDBTest extends AbstractGhidraHeadedIntegrationTest
// delete the typedef data type
localTransactionID = program.startTransaction("test");
try {
- program.getDataTypeManager().remove(td, TaskMonitorAdapter.DUMMY_MONITOR);
+ program.getDataTypeManager().remove(td, TaskMonitor.DUMMY);
}
finally {
program.endTransaction(localTransactionID, true);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/function/FunctionManagerTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/function/FunctionManagerTest.java
index 604b9773d1..af88484ae9 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/function/FunctionManagerTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/function/FunctionManagerTest.java
@@ -34,7 +34,7 @@ import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.util.exception.InvalidInputException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class FunctionManagerTest extends AbstractGhidraHeadedIntegrationTest {
@@ -55,7 +55,7 @@ public class FunctionManagerTest extends AbstractGhidraHeadedIntegrationTest {
transactionID = program.startTransaction("Test");
program.getMemory()
.createInitializedBlock("temp", addr(0), 10000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
@After
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/map/AddressMapDB64BitTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/map/AddressMapDB64BitTest.java
index aba5d97cd2..eb5a596fac 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/map/AddressMapDB64BitTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/map/AddressMapDB64BitTest.java
@@ -27,7 +27,7 @@ import ghidra.program.model.lang.LanguageID;
import ghidra.program.model.listing.Program;
import ghidra.program.model.mem.Memory;
import ghidra.program.model.mem.MemoryConflictException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class AddressMapDB64BitTest extends AbstractAddressMapDBTestClass {
@@ -80,7 +80,7 @@ public class AddressMapDB64BitTest extends AbstractAddressMapDBTestClass {
// Block3 spans two (2) memory chunks and spans transition between positive and negative offset values
// (base #2(end of block) and #3(start of block) allocated
mem.createInitializedBlock("Block3", space.getAddress(0x7ffffffffff00000L), 0x200000,
- (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR, false);
+ (byte) 0, TaskMonitor.DUMMY, false);
success = true;
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/map/AddressRangeMapDBTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/map/AddressRangeMapDBTest.java
index c7295d5ffa..8153dd0df3 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/map/AddressRangeMapDBTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/map/AddressRangeMapDBTest.java
@@ -33,7 +33,7 @@ import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
import ghidra.util.Lock;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class AddressRangeMapDBTest extends AbstractGhidraHeadedIntegrationTest
implements ErrorHandler {
@@ -280,7 +280,7 @@ public class AddressRangeMapDBTest extends AbstractGhidraHeadedIntegrationTest
try {
map.moveAddressRange(addr(0x0100000000L), addr(0x0100001000L), 0x1000,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
}
catch (CancelledException e) {
Assert.fail();
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/mem/BitMappedMemoryBlockTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/mem/BitMappedMemoryBlockTest.java
index d2c7400e51..e96eb5059c 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/mem/BitMappedMemoryBlockTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/mem/BitMappedMemoryBlockTest.java
@@ -25,7 +25,7 @@ import ghidra.program.model.address.AddressSpace;
import ghidra.program.model.listing.Program;
import ghidra.program.model.mem.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test for the BitMemoryBlock for the database implementation.
@@ -60,7 +60,7 @@ public class BitMappedMemoryBlockTest extends AbstractGhidraHeadedIntegrationTes
transactionID = program.startTransaction("Test");
block = memory.createInitializedBlock("BYTE_BLOCK", byteSpace.getAddress(0), bytes.length,
- (byte) 0, TaskMonitorAdapter.DUMMY_MONITOR, false);
+ (byte) 0, TaskMonitor.DUMMY, false);
memory.setBytes(block.getStart(), bytes);
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/Fragment20BitTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/Fragment20BitTest.java
index 137c0d183c..cedf259e78 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/Fragment20BitTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/Fragment20BitTest.java
@@ -15,7 +15,7 @@
*/
package ghidra.program.database.module;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import org.junit.*;
@@ -28,7 +28,7 @@ import ghidra.program.model.listing.ProgramModule;
import ghidra.program.model.mem.Memory;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
*
@@ -82,27 +82,27 @@ public class Fragment20BitTest extends AbstractGhidraHeadedIntegrationTest {
Address start = addr("0000:0000");
mem.createInitializedBlock("stdproc.c", start, 0x5EDA, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
start = addr("05ee:0000");
mem.createInitializedBlock("scada.c", start, 0x5FAA, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
start = addr("0be9:0000");
mem.createInitializedBlock("cseg03", start, 0x2A6, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
start = addr("0c14:0000");
mem.createInitializedBlock("cseg04", start, 0xF04, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
start = addr("0d05:0000");
mem.createInitializedBlock("cseg05", start, 0x3E0, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
start = addr("0d43:0000");
mem.createInitializedBlock("cseg06", start, 0x10E8, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/FragmentTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/FragmentTest.java
index 22cb352640..2e7ab99347 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/FragmentTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/FragmentTest.java
@@ -28,7 +28,7 @@ import ghidra.program.model.mem.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.util.exception.DuplicateNameException;
import ghidra.util.exception.NotFoundException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
*
@@ -460,7 +460,7 @@ public class FragmentTest extends AbstractGhidraHeadedIntegrationTest {
try {
MemoryBlock block =
memory.createInitializedBlock(name, start, length, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
return block;
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/ModuleTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/ModuleTest.java
index 0b46e6a7f9..0c958299c8 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/ModuleTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/ModuleTest.java
@@ -28,7 +28,7 @@ import ghidra.program.model.mem.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
import ghidra.util.exception.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test for Module.
@@ -731,7 +731,7 @@ public class ModuleTest extends AbstractGhidraHeadedIntegrationTest {
Address start = addr(offset);
try {
MemoryBlock block = memory.createInitializedBlock(name, start, length, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
return block;
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/TreeManagerTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/TreeManagerTest.java
index 6598011a7f..68d2047903 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/TreeManagerTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/TreeManagerTest.java
@@ -30,7 +30,7 @@ import ghidra.program.model.mem.MemoryBlock;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
import ghidra.util.exception.DuplicateNameException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test the tree manager.
@@ -232,7 +232,7 @@ public class TreeManagerTest extends AbstractGhidraHeadedIntegrationTest {
assertEquals(5, r1FragCount);
Address startAddr = b2.getStart();
Address endAddr = b2.getEnd();
- treeManager.deleteAddressRange(startAddr, endAddr, TaskMonitorAdapter.DUMMY_MONITOR);
+ treeManager.deleteAddressRange(startAddr, endAddr, TaskMonitor.DUMMY);
r1FragCount = root.getChildren().length;
r2FragCount = r2.getChildren().length;
assertEquals(r1FragCount, r2FragCount);
@@ -257,7 +257,7 @@ public class TreeManagerTest extends AbstractGhidraHeadedIntegrationTest {
// move b2 to 0x2000
treeManager.moveAddressRange(b2.getStart(), getAddr(0x2000), b2.getSize(),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
Listing listing = program.getListing();
root = listing.getRootModule("Test-One");
@@ -296,7 +296,7 @@ public class TreeManagerTest extends AbstractGhidraHeadedIntegrationTest {
// move b1 to 0x5050
treeManager.moveAddressRange(b1.getStart(), getAddr(0x5050), b1.getSize(),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
fragB1 = treeManager.getFragment("Test-One", getAddr(0x5050));
assertNotNull(fragB1);
@@ -319,7 +319,7 @@ public class TreeManagerTest extends AbstractGhidraHeadedIntegrationTest {
// move b2 to 0x5600
treeManager.moveAddressRange(b2.getStart(), getAddr(0x5600), b2.getSize(),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
fragB2 = treeManager.getFragment("Test-One", getAddr(0x5600));
assertNotNull(fragB2);
@@ -345,7 +345,7 @@ public class TreeManagerTest extends AbstractGhidraHeadedIntegrationTest {
// move b1 to 0
treeManager.moveAddressRange(b1.getStart(), getAddr(0), b1.getSize(),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
f2 = program.getListing().getFragment("Test-One", "f2");
assertNotNull(f2);
@@ -371,7 +371,7 @@ public class TreeManagerTest extends AbstractGhidraHeadedIntegrationTest {
Memory memory = program.getMemory();
Address start = getAddr(offset);
return memory.createInitializedBlock(name, start, length, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
private Address getAddr(long offset) {
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/ReferenceManagerTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/ReferenceManagerTest.java
index 5add6e4624..dda510b944 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/ReferenceManagerTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/ReferenceManagerTest.java
@@ -28,7 +28,7 @@ import ghidra.program.model.listing.CodeUnit;
import ghidra.program.model.listing.Listing;
import ghidra.program.model.symbol.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test the reference manager for the database implementation.
@@ -61,7 +61,7 @@ public class ReferenceManagerTest extends AbstractGhidraHeadedIntegrationTest {
listing = program.getListing();
transactionID = program.startTransaction("Test");
program.getMemory().createInitializedBlock("code", addr(0), 10000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
@After
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/RegisterVariableReferencesTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/RegisterVariableReferencesTest.java
index 5b397d8dac..dc38ded1cd 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/RegisterVariableReferencesTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/RegisterVariableReferencesTest.java
@@ -27,7 +27,7 @@ import ghidra.program.model.lang.Register;
import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class RegisterVariableReferencesTest extends AbstractGhidraHeadedIntegrationTest {
@@ -58,7 +58,7 @@ public class RegisterVariableReferencesTest extends AbstractGhidraHeadedIntegrat
functionMgr = program.getFunctionManager();
transactionID = program.startTransaction("Test");
program.getMemory().createInitializedBlock("code", addr(0), 10000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
@After
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/StackVariableReferencesTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/StackVariableReferencesTest.java
index 91ef6b5bb3..5a3f647d0a 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/StackVariableReferencesTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/references/StackVariableReferencesTest.java
@@ -25,7 +25,7 @@ import ghidra.program.model.address.*;
import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class StackVariableReferencesTest extends AbstractGhidraHeadedIntegrationTest {
@@ -56,7 +56,7 @@ public class StackVariableReferencesTest extends AbstractGhidraHeadedIntegration
functionMgr = program.getFunctionManager();
transactionID = program.startTransaction("Test");
program.getMemory().createInitializedBlock("code", addr(0), 10000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
@After
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/NamespaceManagerTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/NamespaceManagerTest.java
index b1d92557d8..11edc975ca 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/NamespaceManagerTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/NamespaceManagerTest.java
@@ -28,7 +28,7 @@ import ghidra.program.model.listing.*;
import ghidra.program.model.mem.MemoryBlock;
import ghidra.program.model.symbol.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
*/
@@ -259,7 +259,7 @@ public class NamespaceManagerTest extends AbstractGhidraHeadedIntegrationTest {
MemoryBlock[] blocks = program.getMemory().getBlocks();
namespaceManager.moveAddressRange(blocks[0].getStart(), addr(0x1000), blocks[0].getSize(),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
set = new AddressSet();
set.addRange(addr(0x1000), addr(0x1030));
@@ -292,7 +292,7 @@ public class NamespaceManagerTest extends AbstractGhidraHeadedIntegrationTest {
f2.setParentNamespace(classNamespace);
namespaceManager.moveAddressRange(addr(0x300), addr(0x1000), 0x100,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
set = new AddressSet();
set.addRange(addr(0), addr(0x30));
@@ -485,6 +485,6 @@ public class NamespaceManagerTest extends AbstractGhidraHeadedIntegrationTest {
private void addBlock(String name, Address addr, int length) throws Exception {
program.getMemory()
.createInitializedBlock(name, addr, length, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/PinnedSymbolTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/PinnedSymbolTest.java
index 658ff6aaae..a8ec823379 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/PinnedSymbolTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/PinnedSymbolTest.java
@@ -106,7 +106,7 @@ public class PinnedSymbolTest extends AbstractGhidraHeadlessIntegrationTest {
Memory memory = program.getMemory();
MemoryBlock block = memory.getBlock(addr(0));
- memory.moveBlock(block, addr(moveAmount), TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.moveBlock(block, addr(moveAmount), TaskMonitor.DUMMY);
checkProcessorSymbolsInPlace(EXPECTED_PROCESSOR_SYMBOLS + EXPECTED_USER_SYMBOLS + 1);
@@ -136,7 +136,7 @@ public class PinnedSymbolTest extends AbstractGhidraHeadlessIntegrationTest {
Memory memory = program.getMemory();
MemoryBlock block = memory.getBlock(addr(0));
- memory.removeBlock(block, TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.removeBlock(block, TaskMonitor.DUMMY);
checkProcessorSymbolsInPlace(EXPECTED_PROCESSOR_SYMBOLS + 1);
@@ -308,7 +308,7 @@ public class PinnedSymbolTest extends AbstractGhidraHeadlessIntegrationTest {
private void createMemBlock() throws Exception {
byte[] bytesOne = new byte[100];
- TaskMonitor m = TaskMonitorAdapter.DUMMY_MONITOR;
+ TaskMonitor m = TaskMonitor.DUMMY;
program.getMemory().createInitializedBlock("B1", addr(0),
new ByteArrayInputStream(bytesOne), bytesOne.length, m, false);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/SymbolManagerSourceTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/SymbolManagerSourceTest.java
index 0c11e41b28..0f2d36459e 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/SymbolManagerSourceTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/SymbolManagerSourceTest.java
@@ -29,7 +29,7 @@ import ghidra.program.model.symbol.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.util.exception.DuplicateNameException;
import ghidra.util.exception.InvalidInputException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class SymbolManagerSourceTest extends AbstractGhidraHeadedIntegrationTest {
@@ -52,7 +52,7 @@ public class SymbolManagerSourceTest extends AbstractGhidraHeadedIntegrationTest
Memory memory = program.getMemory();
transactionID = program.startTransaction("Test");
memory.createInitializedBlock("test", addr(0), 5000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
st = program.getSymbolTable();
refMgr = program.getReferenceManager();
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/SymbolManagerTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/SymbolManagerTest.java
index f4779c82cc..9ed7486fba 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/SymbolManagerTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/symbol/SymbolManagerTest.java
@@ -39,7 +39,7 @@ import ghidra.test.TestEnv;
import ghidra.util.SystemUtilities;
import ghidra.util.exception.DuplicateNameException;
import ghidra.util.exception.InvalidInputException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/*
* Tests for the symbol manager that uses database.
@@ -67,7 +67,7 @@ public class SymbolManagerTest extends AbstractGhidraHeadedIntegrationTest {
Memory memory = program.getMemory();
transactionID = program.startTransaction("Test");
memory.createInitializedBlock("test", addr(0), 5000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
st = program.getSymbolTable();
refMgr = program.getReferenceManager();
scopeMgr = program.getNamespaceManager();
@@ -417,7 +417,7 @@ public class SymbolManagerTest extends AbstractGhidraHeadedIntegrationTest {
public void testGetDefaultFunctionInOverlaySymbolByName() throws Exception {
Memory memory = program.getMemory();
MemoryBlock block = memory.createInitializedBlock("ov_12", addr(0), 5000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, true);
+ TaskMonitor.DUMMY, true);
Address ovAddress = block.getStart();
assertEquals("ov_12::00000000", ovAddress.toString());
@@ -443,7 +443,7 @@ public class SymbolManagerTest extends AbstractGhidraHeadedIntegrationTest {
int txID = p.startTransaction("test");
Memory memory = p.getMemory();
MemoryBlock block = memory.createInitializedBlock("ov12", address, 5000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, true);
+ TaskMonitor.DUMMY, true);
Address ovAddress = block.getStart();
assertEquals("ov12::00000000", ovAddress.toString());
ovAddress = ovAddress.add(2);
@@ -1970,7 +1970,7 @@ public class SymbolManagerTest extends AbstractGhidraHeadedIntegrationTest {
Namespace namespace1 = st.createNameSpace(null, "MySpace1", SourceType.USER_DEFINED);
Memory memory = program.getMemory();
MemoryBlock block = memory.createInitializedBlock("ov_12", addr(0), 5000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, true);
+ TaskMonitor.DUMMY, true);
Address ovAddress = block.getStart();
assertEquals("ov_12::00000000", ovAddress.toString());
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/AddressSetPropertyMapTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/AddressSetPropertyMapTest.java
index 7a1dafeed6..7b0697c3be 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/AddressSetPropertyMapTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/AddressSetPropertyMapTest.java
@@ -32,7 +32,7 @@ import ghidra.program.util.ChangeManager;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
import ghidra.util.exception.DuplicateNameException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class AddressSetPropertyMapTest extends AbstractGhidraHeadedIntegrationTest {
@@ -271,7 +271,7 @@ public class AddressSetPropertyMapTest extends AbstractGhidraHeadedIntegrationTe
transactionID = -1;
DomainFile df =
- rootFolder.createFile("mynotepad", program, TaskMonitorAdapter.DUMMY_MONITOR);
+ rootFolder.createFile("mynotepad", program, TaskMonitor.DUMMY);
env.release(program);
AddressSet set = new AddressSet();
@@ -280,7 +280,7 @@ public class AddressSetPropertyMapTest extends AbstractGhidraHeadedIntegrationTe
set.addRange(getAddr(26), getAddr(0x30));
Program p =
- (Program) df.getDomainObject(this, true, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ (Program) df.getDomainObject(this, true, false, TaskMonitor.DUMMY);
int txID = p.startTransaction("test");
try {
AddressSetPropertyMap pm = p.createAddressSetPropertyMap("MyMap");
@@ -291,13 +291,13 @@ public class AddressSetPropertyMapTest extends AbstractGhidraHeadedIntegrationTe
finally {
p.endTransaction(txID, true);
}
- df.save(TaskMonitorAdapter.DUMMY_MONITOR);
+ df.save(TaskMonitor.DUMMY);
p.release(this);
df = rootFolder.getFile("mynotepad");
assertNotNull(df);
- p = (Program) df.getDomainObject(this, true, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ p = (Program) df.getDomainObject(this, true, false, TaskMonitor.DUMMY);
AddressSetPropertyMap pm = p.getAddressSetPropertyMap("MyMap");
assertNotNull(pm);
assertEquals(set, pm.getAddressSet());
@@ -362,7 +362,7 @@ public class AddressSetPropertyMapTest extends AbstractGhidraHeadedIntegrationTe
public void testMoveRange() throws Exception {
Memory memory = program.getMemory();
MemoryBlock block = memory.createInitializedBlock(".test", getAddr(0), 0x23, (byte) 0xa,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
AddressSet set = new AddressSet();
set.addRange(getAddr(0), getAddr(0x10));
@@ -374,7 +374,7 @@ public class AddressSetPropertyMapTest extends AbstractGhidraHeadedIntegrationTe
assertEquals(set, pm.getAddressSet());
// move .test block to 0x1000
- memory.moveBlock(block, getAddr(0x1000), TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.moveBlock(block, getAddr(0x1000), TaskMonitor.DUMMY);
// [0,10], [20, 22] should be moved
// [23,30] should not be moved
@@ -397,7 +397,7 @@ public class AddressSetPropertyMapTest extends AbstractGhidraHeadedIntegrationTe
public void testDeleteBlockRange() throws Exception {
Memory memory = program.getMemory();
MemoryBlock block = memory.createInitializedBlock(".test", getAddr(5), 0x20, (byte) 0xa,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
AddressSet set = new AddressSet();
set.addRange(getAddr(0), getAddr(0x10));
@@ -406,7 +406,7 @@ public class AddressSetPropertyMapTest extends AbstractGhidraHeadedIntegrationTe
AddressSetPropertyMap pm = program.createAddressSetPropertyMap("MyMap");
pm.add(set);
// remove the block
- memory.removeBlock(block, TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.removeBlock(block, TaskMonitor.DUMMY);
// [0,4], [25,30] should still exist
// [5,24] should have been removed
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/IntRangeMapTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/IntRangeMapTest.java
index 561a1116bb..5c48a34987 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/IntRangeMapTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/IntRangeMapTest.java
@@ -32,7 +32,7 @@ import ghidra.program.util.ChangeManager;
import ghidra.test.AbstractGhidraHeadlessIntegrationTest;
import ghidra.test.TestEnv;
import ghidra.util.exception.DuplicateNameException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class IntRangeMapTest extends AbstractGhidraHeadlessIntegrationTest {
@@ -211,14 +211,14 @@ public class IntRangeMapTest extends AbstractGhidraHeadlessIntegrationTest {
transactionID = -1;
DomainFile df =
- rootFolder.createFile("mynotepad", program, TaskMonitorAdapter.DUMMY_MONITOR);
+ rootFolder.createFile("mynotepad", program, TaskMonitor.DUMMY);
env.release(program);
AddressSet set = new AddressSet();
set.addRange(getAddr(0), getAddr(0x40));
Program p =
- (Program) df.getDomainObject(this, true, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ (Program) df.getDomainObject(this, true, false, TaskMonitor.DUMMY);
int txID = p.startTransaction("test");
int value = 0x11223344;
int otherValue = 0x44332211;
@@ -231,13 +231,13 @@ public class IntRangeMapTest extends AbstractGhidraHeadlessIntegrationTest {
p.endTransaction(txID, true);
}
- df.save(TaskMonitorAdapter.DUMMY_MONITOR);
+ df.save(TaskMonitor.DUMMY);
p.release(this);
df = rootFolder.getFile("mynotepad");
assertNotNull(df);
- p = (Program) df.getDomainObject(this, true, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ p = (Program) df.getDomainObject(this, true, false, TaskMonitor.DUMMY);
IntRangeMap map = p.getIntRangeMap("MyMap");
assertNotNull(map);
assertEquals(set, map.getAddressSet());
@@ -302,7 +302,7 @@ public class IntRangeMapTest extends AbstractGhidraHeadlessIntegrationTest {
public void testMoveRange() throws Exception {
Memory memory = program.getMemory();
MemoryBlock block = memory.createInitializedBlock(".test", getAddr(0), 0x23, (byte) 0xa,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
AddressSet set = new AddressSet();
set.addRange(getAddr(0), getAddr(0x10));
@@ -315,7 +315,7 @@ public class IntRangeMapTest extends AbstractGhidraHeadlessIntegrationTest {
assertEquals(set, map.getAddressSet());
// move .test block to 0x1000
- memory.moveBlock(block, getAddr(0x1000), TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.moveBlock(block, getAddr(0x1000), TaskMonitor.DUMMY);
// [0,10], [20, 22] should be moved
// [23,30] should not be moved
@@ -338,7 +338,7 @@ public class IntRangeMapTest extends AbstractGhidraHeadlessIntegrationTest {
public void testDeleteBlockRange() throws Exception {
Memory memory = program.getMemory();
MemoryBlock block = memory.createInitializedBlock(".test", getAddr(5), 0x20, (byte) 0xa,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
AddressSet set = new AddressSet();
set.addRange(getAddr(0), getAddr(0x10));
@@ -348,7 +348,7 @@ public class IntRangeMapTest extends AbstractGhidraHeadlessIntegrationTest {
int value = 0x11223344;
map.setValue(set, value);
// remove the block
- memory.removeBlock(block, TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.removeBlock(block, TaskMonitor.DUMMY);
// [0,4], [25,30] should still exist
// [5,24] should have been removed
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/mem/MemoryBufferImplTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/mem/MemoryBufferImplTest.java
index 3f1358b59e..588630b4e6 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/mem/MemoryBufferImplTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/mem/MemoryBufferImplTest.java
@@ -15,7 +15,7 @@
*/
package ghidra.program.model.mem;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.*;
import java.io.IOException;
import java.io.InputStream;
@@ -29,7 +29,7 @@ import ghidra.program.database.ProgramBuilder;
import ghidra.program.model.address.Address;
import ghidra.program.model.listing.Program;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class MemoryBufferImplTest extends AbstractGhidraHeadedIntegrationTest {
private Program program;
@@ -194,7 +194,7 @@ public class MemoryBufferImplTest extends AbstractGhidraHeadedIntegrationTest {
int id = program.startTransaction("add block");
try {
program.getMemory().createInitializedBlock(".test", start, is, 0x30000,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
finally {
program.endTransaction(id, true);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/mem/WrappedMemoryBufferTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/mem/WrappedMemoryBufferTest.java
index f470064f9b..2199910f5c 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/mem/WrappedMemoryBufferTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/mem/WrappedMemoryBufferTest.java
@@ -28,7 +28,7 @@ import ghidra.program.database.ProgramBuilder;
import ghidra.program.model.address.Address;
import ghidra.program.model.listing.Program;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class WrappedMemoryBufferTest extends AbstractGhidraHeadedIntegrationTest {
private Program program;
@@ -345,7 +345,7 @@ public class WrappedMemoryBufferTest extends AbstractGhidraHeadedIntegrationTest
int id = program.startTransaction("add block");
try {
program.getMemory().createInitializedBlock(".test", start, is, 0x30000,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
finally {
program.endTransaction(id, true);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/symbol/SymbolUtilities1Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/symbol/SymbolUtilities1Test.java
index 9ed4c1783a..b4a1397248 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/symbol/SymbolUtilities1Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/symbol/SymbolUtilities1Test.java
@@ -15,7 +15,7 @@
*/
package ghidra.program.model.symbol;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.*;
import org.junit.*;
@@ -30,7 +30,7 @@ import ghidra.program.util.DefaultLanguageService;
import ghidra.test.*;
import ghidra.util.exception.DuplicateNameException;
import ghidra.util.exception.InvalidInputException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class SymbolUtilities1Test extends AbstractGhidraHeadedIntegrationTest {
private ProgramDB program;
@@ -56,7 +56,7 @@ public class SymbolUtilities1Test extends AbstractGhidraHeadedIntegrationTest {
Memory memory = program.getMemory();
transactionID = program.startTransaction("Test");
memory.createInitializedBlock("test", addr(0), 5000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
symbolTable = program.getSymbolTable();
refMgr = program.getReferenceManager();
listing = program.getListing();
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/symbol/SymbolUtilities2Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/symbol/SymbolUtilities2Test.java
index a3c1610ed5..94009d2f84 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/symbol/SymbolUtilities2Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/symbol/SymbolUtilities2Test.java
@@ -15,7 +15,7 @@
*/
package ghidra.program.model.symbol;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.*;
import org.junit.*;
@@ -29,7 +29,7 @@ import ghidra.program.model.mem.DumbMemBufferImpl;
import ghidra.program.model.mem.Memory;
import ghidra.program.util.DefaultLanguageService;
import ghidra.test.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class SymbolUtilities2Test extends AbstractGhidraHeadedIntegrationTest {
private ProgramDB program;
@@ -54,7 +54,7 @@ public class SymbolUtilities2Test extends AbstractGhidraHeadedIntegrationTest {
Memory memory = program.getMemory();
transactionID = program.startTransaction("Test");
memory.createInitializedBlock("test", addr(0), 5000, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
symbolTable = program.getSymbolTable();
refMgr = program.getReferenceManager();
listing = program.getListing();
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ExternalFunctionDiffTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ExternalFunctionDiffTest.java
index dbcf873fc8..cdd28688d4 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ExternalFunctionDiffTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ExternalFunctionDiffTest.java
@@ -15,8 +15,7 @@
*/
package ghidra.program.util;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.*;
import org.junit.*;
@@ -28,7 +27,7 @@ import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test the Diff of thunk functions.
@@ -160,11 +159,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
AddressSet expectedDifferences = new AddressSet();
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -227,12 +226,12 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, "0x1006674"), addr(latestProgram, "0x1006677"));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedRefDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSet expectedFunctionDifferences = new AddressSet();
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedFunctionDifferences, functionDifferences);
}
@@ -292,11 +291,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
// expectedDifferences.addRange(addr(latestProgram, ), addr());
// // Perform the Diff and check the differences.
// ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
-// AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+// AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
// assertEquals(expectedDifferences, differences);
// ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
// AddressSetView functionDifferences =
-// programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+// programDiff.getDifferences(filter, TaskMonitor.DUMMY);
// assertEquals(expectedDifferences, functionDifferences);
// }
@@ -361,11 +360,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
AddressSet expectedDifferences = new AddressSet();
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -431,11 +430,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -482,11 +481,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -533,11 +532,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -610,12 +609,12 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter functionFilter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(functionFilter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(functionFilter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -690,12 +689,12 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
addr(latestProgram, "0100199b"));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter functionFilter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(functionFilter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(functionFilter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -783,11 +782,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -857,11 +856,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -931,11 +930,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -1006,12 +1005,12 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter functionFilter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(functionFilter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(functionFilter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -1086,11 +1085,11 @@ public class ExternalFunctionDiffTest extends AbstractGhidraHeadedIntegrationTes
AddressSet expectedDifferences = new AddressSet();
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramContextTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramContextTest.java
index 9bd0ba7e42..062243df8d 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramContextTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramContextTest.java
@@ -82,7 +82,7 @@ public class ProgramContextTest extends AbstractGhidraHeadedIntegrationTest {
Address start = addr(0);
try {
mem.createInitializedBlock("first", start, 100, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
catch (Exception e) {
Assert.fail("TestProgramContext: couldn't add block to memory");
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff1Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff1Test.java
index bb30e917d3..a1485c318c 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff1Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff1Test.java
@@ -686,7 +686,7 @@ public class ProgramDiff1Test extends AbstractGhidraHeadedIntegrationTest {
programDiff.setFilter(new ProgramDiffFilter(ProgramDiffFilter.USER_DEFINED_DIFFS));
AddressSetView expectedSet = (AddressSet) invokeInstanceMethod("adjustCodeUnitAddressSet",
programDiff, new Class[] { AddressSetView.class, Listing.class, TaskMonitor.class },
- new Object[] { as, p1.getListing(), TaskMonitorAdapter.DUMMY_MONITOR });
+ new Object[] { as, p1.getListing(), TaskMonitor.DUMMY });
AddressSetView diffSet = programDiff.getDifferences(programDiff.getFilter(), null);
assertEquals(expectedSet, diffSet);
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff4Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff4Test.java
index e00f4a0f70..0462568bb3 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff4Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff4Test.java
@@ -34,7 +34,8 @@ import ghidra.program.model.listing.Program;
import ghidra.program.model.symbol.*;
import ghidra.test.ClassicSampleX86ProgramBuilder;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
+import junit.framework.TestCase;
/**
* ProgramDiffTest
tests the ProgramDiff
class
@@ -489,7 +490,7 @@ public class ProgramDiff4Test extends AbstractProgramDiffTest {
AddressSetView diffs;
// before ignore it should detect diffs.
- diffs = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programDiff.getDifferences(TaskMonitor.DUMMY);
assertTrue(diffs.contains(addr(p1, 0x01006420)));
assertTrue(diffs.contains(addr(p1, 0x010059a3)));
@@ -506,7 +507,7 @@ public class ProgramDiff4Test extends AbstractProgramDiffTest {
// ignore set is used by the Diff.
diffs = programDiff.getDifferences(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
assertTrue(!diffs.contains(addr(p1, 0x01006420)) && !diffs.contains(addr(p1, 0x010059a3)));
// ignore set can be cleared.
@@ -534,7 +535,7 @@ public class ProgramDiff4Test extends AbstractProgramDiffTest {
AddressSetView diffs;
// before limiting it should detect diffs.
- diffs = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programDiff.getDifferences(TaskMonitor.DUMMY);
assertTrue(diffs.contains(addr(p1, 0x01006420)));
assertTrue(diffs.contains(addr(p1, 0x010059a3)));
@@ -547,7 +548,7 @@ public class ProgramDiff4Test extends AbstractProgramDiffTest {
// ignore set is used by the Diff.
diffs = programDiff.getDifferences(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
assertTrue(!diffs.contains(addr(p1, 0x01006420)) && !diffs.contains(addr(p1, 0x010059a3)));
}
@@ -833,7 +834,7 @@ public class ProgramDiff4Test extends AbstractProgramDiffTest {
AddressSetView diffs;
// before restricting it should detect diffs.
- diffs = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programDiff.getDifferences(TaskMonitor.DUMMY);
assertTrue(diffs.contains(addr(p1, 0x01006420)));
assertTrue(diffs.contains(addr(p1, 0x010059a3)));
@@ -849,7 +850,7 @@ public class ProgramDiff4Test extends AbstractProgramDiffTest {
// ignore set is used by the Diff.
diffs = programDiff.getDifferences(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
assertTrue(!diffs.contains(addr(p1, 0x01006420)) && !diffs.contains(addr(p1, 0x010059a3)));
// restricted set can be cleared.
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge1Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge1Test.java
index 9a51add777..3738b9712d 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge1Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge1Test.java
@@ -25,9 +25,9 @@ import ghidra.program.model.data.*;
import ghidra.program.model.lang.Register;
import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.*;
-import ghidra.test.ClassicSampleX86ProgramBuilder;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.test.ClassicSampleX86ProgramBuilder;
+import ghidra.util.task.TaskMonitor;
import junit.framework.TestCase;
/**
@@ -91,7 +91,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
@Test
public void testCompareSameAddressSpaces() throws Exception {
try {
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
}
catch (ProgramConflictException e) {
Assert.fail("Address spaces in program 1 and program 2 should have been the same.");
@@ -109,7 +109,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
ProgramBuilder programBuilder3 = new ProgramBuilder("program3", ProgramBuilder._8051);
p3 = programBuilder3.getProgram();
- programMerge = new ProgramMergeManager(p1, p3, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p3, TaskMonitor.DUMMY);
assertNull(programMerge);
}
catch (ProgramConflictException e) {
@@ -124,7 +124,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
@Test
public void testCompareSameMemory() throws Exception {
try {
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
assertTrue("Memory in program 1 and program 2 should have been the same.",
programMerge.memoryMatches());
}
@@ -146,7 +146,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemory("d4", "0x400", 0x100);
try {
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
assertTrue("Memory in program 1 and program 2 should have been different.",
!programMerge.memoryMatches());
}
@@ -160,7 +160,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
*/
@Test
public void testDiffFilter() throws Exception {
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
// Check that default filter has all difference types set.
assertEquals(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS),
programMerge.getDiffFilter());
@@ -183,7 +183,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
*/
@Test
public void testMergeFilter() throws Exception {
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
// Check that default filter has all difference types set.
assertEquals(new ProgramMergeFilter(), programMerge.getMergeFilter());
@@ -213,7 +213,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
*/
@Test
public void testGetPrograms() throws Exception {
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
assertEquals(p1, programMerge.getProgramOne());
assertEquals(p2, programMerge.getProgramTwo());
}
@@ -231,7 +231,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemory("d1", "0x100", 0x100, null, (byte) 0xAF);
programBuilder2.createMemory("d4", "0x400", 0x100);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSetView as = programMerge.getAddressesOnlyInOne();
AddressSet as1 = new AddressSet();
as1.add(new AddressRangeImpl(addr(0x200), addr(0x2ff)));
@@ -251,7 +251,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemory("d1", "0x100", 0x100, null, (byte) 0xAF);
programBuilder2.createMemory("d4", "0x400", 0x100);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSetView as = programMerge.getAddressesOnlyInTwo();
AddressSet as2 = new AddressSet();
as2.add(new AddressRangeImpl(addr(0x400), addr(0x4ff)));
@@ -271,7 +271,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemory("d1", "0x100", 0x100, null, (byte) 0xAF);
programBuilder2.createMemory("d4", "0x400", 0x100);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as1 = new AddressSet();
as1.add(new AddressRangeImpl(addr(0x100), addr(0x1ff)));
as1.add(new AddressRangeImpl(addr(0x200), addr(0x2ff)));
@@ -298,7 +298,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemory("d1", "0x100", 0x100, null, (byte) 0xAF);
programBuilder2.createMemory("d4", "0x400", 0x100);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as1 = new AddressSet();
as1.add(new AddressRangeImpl(addr(0x100), addr(0x1ff)));
as1.add(new AddressRangeImpl(addr(p1, 0x01001000), addr(p1, 0x010075ff)));
@@ -325,25 +325,25 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createLabel("0x01006420", "Function2");
programBuilder2.createComment("0x010059a3", "There you have it.", CodeUnit.EOL_COMMENT);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS));
AddressSetView diffs;
// before limiting it should detect diffs.
- diffs = programMerge.getFilteredDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programMerge.getFilteredDifferences(TaskMonitor.DUMMY);
assertTrue(diffs.contains(addr(p1, 0x01006420)));
assertTrue(diffs.contains(addr(p1, 0x010059a3)));
// Program Diff only determines differences within the limited set.
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x01002239), addr(0x0100248c)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x01002239), addr(0x0100248c)), TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS));
AddressSet as = new AddressSet();
as.addRange(addr(0x01002239), addr(0x0100248c));
assertEquals(as, programMerge.getLimitedAddressSet());
// limited set is used by the Diff.
- diffs = programMerge.getFilteredDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programMerge.getFilteredDifferences(TaskMonitor.DUMMY);
assertTrue(!diffs.contains(addr(0x01006420)) && !diffs.contains(addr(0x010059a3)));
}
@@ -362,12 +362,12 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createLabel("0x01006420", "Function2");
programBuilder2.createComment("0x010059a3", "There you have it.", CodeUnit.EOL_COMMENT);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS));
AddressSetView diffs;
// before ignore it should detect diffs.
- diffs = programMerge.getFilteredDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programMerge.getFilteredDifferences(TaskMonitor.DUMMY);
assertTrue(diffs.contains(addr(0x01006420)));
assertTrue(diffs.contains(addr(0x010059a3)));
@@ -383,7 +383,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
assertEquals(as, programMerge.getIgnoreAddressSet());
// ignore set is used by the Diff.
- diffs = programMerge.getFilteredDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programMerge.getFilteredDifferences(TaskMonitor.DUMMY);
assertTrue(!diffs.contains(addr(0x01006420)) && !diffs.contains(addr(0x010059a3)));
}
@@ -403,12 +403,12 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createLabel("0x01006420", "Function2");
programBuilder2.createComment("0x010059a3", "There you have it.", CodeUnit.EOL_COMMENT);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS));
AddressSetView diffs;
// before restricting it should detect diffs.
- diffs = programMerge.getFilteredDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programMerge.getFilteredDifferences(TaskMonitor.DUMMY);
assertTrue(diffs.contains(addr(0x01006420)));
assertTrue(diffs.contains(addr(0x010059a3)));
@@ -423,7 +423,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// restricted set is used by the Diff.
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.ALL_DIFFS));
- diffs = programMerge.getFilteredDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ diffs = programMerge.getFilteredDifferences(TaskMonitor.DUMMY);
assertTrue(!diffs.contains(addr(0x01006420)) && diffs.contains(addr(0x010059a3)));
// restricted set can be cleared.
@@ -518,7 +518,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder1.createComment("0x100415a", "Plate Comment", CodeUnit.PLATE_COMMENT);
programBuilder2.createComment("0x100415a", "Plate Comment", CodeUnit.PLATE_COMMENT);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.REPLACE));
@@ -543,7 +543,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// printAddressSet(as);
// printAddressSet(diffAs);
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -552,7 +552,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// 0x100248f: p1 has function comment.
programBuilder1.createFunctionComment("0x100248f", "Sample function comment.");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.REPLACE));
@@ -560,7 +560,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x0100248f), addr(0x0100248f));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -569,7 +569,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// 0x100248f: p2 has function comment.
programBuilder2.createFunctionComment("0x100248f", "Other function comment.");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.REPLACE));
@@ -577,7 +577,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x0100248f), addr(0x0100248f));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -587,7 +587,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder1.createFunctionComment("0x100248f", "Sample function comment.");
programBuilder2.createFunctionComment("0x100248f", "Sample function comment.");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.REPLACE));
@@ -595,7 +595,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x0100248f), addr(0x0100248f));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(new AddressSet(), diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -605,7 +605,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder1.createFunctionComment("0x100248f", "Sample function comment.");
programBuilder2.createFunctionComment("0x100248f", "Other function comment.");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.REPLACE));
@@ -613,7 +613,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x0100248f), addr(0x0100248f));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -713,7 +713,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder1.createComment("0x100415a", "Plate Comment", CodeUnit.PLATE_COMMENT);
programBuilder2.createComment("0x100415a", "Plate Comment", CodeUnit.PLATE_COMMENT);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.MERGE));
@@ -738,7 +738,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
diffAs = programMerge.getFilteredDifferences();
as = new AddressSet();
as.addRange(addr(0x01002040), addr(0x01002040));
@@ -764,7 +764,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// 0x100248f: p1 has function comment.
programBuilder1.createFunctionComment("0x100248f", "Sample function comment.");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.MERGE));
@@ -772,7 +772,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x0100248f), addr(0x0100248f));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x0100248f), addr(0x0100248f)),
programMerge.getFilteredDifferences());
}
@@ -782,7 +782,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// 0x100248f: p2 has function comment.
programBuilder2.createFunctionComment("0x100248f", "Other function comment.");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.MERGE));
@@ -790,7 +790,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x0100248f), addr(0x0100248f));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -800,7 +800,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder1.createFunctionComment("0x100248f", "Sample function comment.");
programBuilder2.createFunctionComment("0x100248f", "Sample function comment.");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.MERGE));
@@ -808,7 +808,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x0100248f), addr(0x0100248f));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(new AddressSet(), diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -818,7 +818,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder1.createFunctionComment("0x100248f", "Sample function comment.");
programBuilder2.createFunctionComment("0x100248f", "Other function comment.");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.COMMENT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.COMMENTS, ProgramMergeFilter.MERGE));
@@ -826,7 +826,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x0100248f), addr(0x0100248f));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x0100248f), addr(0x0100248f)),
programMerge.getFilteredDifferences());
}
@@ -843,14 +843,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createExternalReference("0x0100102c", "ADVAPI32.dll", "IsTextUnicode", 0);
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x0100102c), addr(0x0100102f));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -865,14 +865,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createExternalReference("0x01001034", "myGDI32.dll", "SomePlace", 0);
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x01001034), addr(0x01001037));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -887,14 +887,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createExternalReference("0x01001038", "GDI32.dll", "ABC12345", 0);
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x01001038), addr(0x0100103b));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -909,14 +909,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createExternalReference("0x0100103c", "GDI32.dll", "XYZ", "0x77f4abcd", 0);
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x0100103c), addr(0x0100103f));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -930,14 +930,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createExternalReference("0x01001044", "GDI32.dll", "MNM", 0);
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x01001044), addr(0x01001047));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -968,7 +968,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createStackReference("0x1006480", RefType.READ, -0x6c,
SourceType.USER_DEFINED, 0);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
AddressSet as = new AddressSet();
as.addRange(addr(0x1006443), addr(0x1006445));
as.addRange(addr(0x1006446), addr(0x100644c));
@@ -980,7 +980,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// printAddressSet(as);
// printAddressSet(programMerge.getFilteredDifferences());
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
// printAddressSet(programMerge.getFilteredDifferences());
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1032,7 +1032,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
as.addRange(addr(0x01002cf5), addr(0x01002d0c));
as.addRange(addr(0x01002950), addr(0x0100295c));
as.addRange(addr(0x010033f6), addr(0x010033fe));
- programMerge = new ProgramMergeManager(p1, p2, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, as, TaskMonitor.DUMMY);
AddressSet expectedDiffs = new AddressSet();
expectedDiffs.addRange(addr(0x010018a6), addr(0x010018a6));
expectedDiffs.addRange(addr(0x0100295a), addr(0x0100295a));
@@ -1043,7 +1043,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// printAddressSet(expectedDiffs);
// printAddressSet(programMerge.getFilteredDifferences());
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
- programMerge.merge(expectedDiffs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(expectedDiffs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1080,7 +1080,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.setStringProperty("0x10039f1", "testColor", "BLACK");
programBuilder2.setStringProperty("0x10039f8", "testColor", "BLACK");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet();
as.addRange(addr(0x10018ae), addr(0x10018ae));
as.addRange(addr(0x10018ce), addr(0x10018ce));
@@ -1095,7 +1095,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
AddressSetView diffSet = programMerge.getFilteredDifferences();
assertEquals(expectedSet, diffSet);
assertEquals(expectedSet, programMerge.getFilteredDifferences());
- programMerge.merge(expectedSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(expectedSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1147,7 +1147,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createLabel("1002d25", "junk", p2.getGlobalNamespace().getName());
p2.endTransaction(transactionID, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet expectedDiffs = new AddressSet();
expectedDiffs.addRange(addr(0x1002d16), addr(0x1002d16));
expectedDiffs.addRange(addr(0x1002d18), addr(0x1002d18));
@@ -1159,7 +1159,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.SYMBOLS, ProgramMergeFilter.REPLACE));
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
- programMerge.merge(programMerge.getFilteredDifferences(), TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(programMerge.getFilteredDifferences(), TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1187,13 +1187,13 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createLabel("1002d1d", "Foo", namespaceStr);
p2.endTransaction(transactionID, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x1002d1d), addr(0x1002d1d));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.SYMBOLS, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1209,14 +1209,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function1.insertParameter(0, var1, SourceType.USER_DEFINED);
p1.endTransaction(transactionID1, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1243,14 +1243,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function2.insertParameter(0, var2, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x1002cf5), addr(0x1002cf5));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1266,14 +1266,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function2.insertParameter(0, var2, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1308,14 +1308,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function2.addParameter(var2C, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1351,14 +1351,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function2.addParameter(var2C, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1394,14 +1394,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function2.addParameter(var2C, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1436,14 +1436,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
assertEquals(3, function2.getParameterCount());
p2.endTransaction(transactionID, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1459,14 +1459,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function1.addParameter(var1, SourceType.USER_DEFINED);
p1.endTransaction(transactionID1, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1482,14 +1482,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function2.addParameter(var2, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1516,14 +1516,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function2.insertParameter(0, var2, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x1002cf5), addr(0x1002cf5));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1532,14 +1532,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// no params in program 1 or 2
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1556,14 +1556,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function2.insertParameter(0, var2, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x1002cf5), addr(0x1002cf5));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1580,14 +1580,14 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
function1.insertParameter(0, var1, SourceType.USER_DEFINED);
p1.endTransaction(transactionID1, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x1002cf5), addr(0x1002cf5));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1653,7 +1653,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder1.setRegisterValue(DR0_REGISTER, "0x1005e7b", "0x1005e83", 0x85678);
AddressSet as;
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
as = new AddressSet();
as.addRange(addr(0x010022d4), addr(0x010022e5));
@@ -1680,7 +1680,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
// System.out.println("ProgramContext: as="+as.toString());
// System.out.println("ProgramContext: diffAs="+diffAs.toString());
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1700,7 +1700,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
symtab2.createLabel(addr(0x1002969), "ONE", SourceType.USER_DEFINED);
AddressSet limitedAddrSet = new AddressSet(addr(0x1002950), addr(0x100299b));
programMerge =
- new ProgramMergeManager(p1, p2, limitedAddrSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, limitedAddrSet, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x100295d));
AddressSet as2 = new AddressSet(addr(0x1002969));
@@ -1711,7 +1711,7 @@ public class ProgramMerge1Test extends AbstractGhidraHeadedIntegrationTest {
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as.union(as2), diffAs);
- programMerge.merge(as2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as2, TaskMonitor.DUMMY);
assertEquals(as, programMerge.getFilteredDifferences());
Symbol[] symbols = symtab1.getSymbols(addr(0x1002969));
assertEquals(1, symbols.length);
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge2Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge2Test.java
index 25b165fcad..26aab55fb0 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge2Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge2Test.java
@@ -157,7 +157,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x10058f6"), addr(p1, "0x10058fa"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -168,7 +168,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x10058f7"), addr(p1, "0x10058f8"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -243,7 +243,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x10058f6"), addr(p1, "0x10058fa"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -254,7 +254,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x10058f7"), addr(p1, "0x10058f8"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -329,7 +329,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x10058f6"), addr(p1, "0x10058fa"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -340,7 +340,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x10058f7"), addr(p1, "0x10058f8"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -418,7 +418,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x10058f6"), addr(p1, "0x10058fa"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(new ProgramMergeFilter(
@@ -430,7 +430,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x10058f7"), addr(p1, "0x10058f8"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -491,7 +491,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -502,7 +502,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x1004c1d"), addr(p1, "0x1004c1d"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// assertEquals(new AddressSet(p1.getAddressFactory()),
// programMerge.getFilteredDifferences());
@@ -561,7 +561,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
@@ -572,7 +572,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x1004c1d"), addr(p1, "0x1004c1d"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -650,7 +650,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -662,7 +662,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x1002cf5"), addr(p1, "0x1002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -724,7 +724,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x1002998"), addr(p1, "0x1002a0c"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
@@ -735,7 +735,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x0100299e"), addr(p1, "0x0100299e"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// P1 should now have function in namespace and no diffs.
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -805,7 +805,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x1002998"), addr(p1, "0x1002a0c"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
@@ -816,7 +816,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x0100299e"), addr(p1, "0x0100299e"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// P1 should now have a label with the old function name and a diff.
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -899,7 +899,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.FUNCTION_DIFFS | ProgramDiffFilter.SYMBOL_DIFFS));
@@ -913,7 +913,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// P1 should now have function in namespace and no diffs.
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -997,7 +997,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.FUNCTION_DIFFS | ProgramDiffFilter.SYMBOL_DIFFS));
@@ -1012,7 +1012,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// P1 should now have function in namespace and no diffs.
AddressSet diffSet = new AddressSet(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
@@ -1103,7 +1103,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.FUNCTION_DIFFS | ProgramDiffFilter.SYMBOL_DIFFS));
@@ -1118,7 +1118,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// P1 should now have function in namespace and no diffs.
AddressSet diffSet = new AddressSet(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
@@ -1208,7 +1208,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
ProgramMergeFilter filter = new ProgramMergeFilter();
@@ -1222,7 +1222,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// P1 should now have function in namespace and no diffs.
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -1306,7 +1306,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
ProgramMergeFilter filter = new ProgramMergeFilter();
@@ -1320,7 +1320,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// P1 should now have function in namespace and no diffs.
AddressSet diffSet = new AddressSet(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
@@ -1410,7 +1410,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
ProgramMergeFilter filter = new ProgramMergeFilter();
@@ -1424,7 +1424,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
// P1 should now have function in namespace and no diffs.
AddressSet diffSet = new AddressSet(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
@@ -1515,7 +1515,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -1529,7 +1529,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
mergeSet.addRange(addr(p1, "0x010058f7"), addr(p1, "0x010058f7"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(p1, "0x010058f7"), addr(p1, "0x010058f7")),
programMerge.getFilteredDifferences());
@@ -1608,7 +1608,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -1620,7 +1620,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -1698,7 +1698,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -1711,7 +1711,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -1789,7 +1789,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -1801,7 +1801,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -1883,7 +1883,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -1896,7 +1896,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -1976,7 +1976,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -1989,7 +1989,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -2069,7 +2069,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -2082,7 +2082,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01002cf5"), addr(p1, "0x01002cf5"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -2180,7 +2180,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
int txId = p1.startTransaction("Merge into Program 1");
boolean commit = false;
try {
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -2198,7 +2198,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.add(expectedDiffs);
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -2316,7 +2316,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
int txId = p1.startTransaction("Merge into Program 1");
boolean commit = false;
try {
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -2332,7 +2332,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.add(expectedDiffs);
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(mergeSet, programMerge.getFilteredDifferences());
@@ -2430,7 +2430,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -2442,7 +2442,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -2519,7 +2519,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -2531,7 +2531,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -2611,7 +2611,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -2623,7 +2623,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -2700,7 +2700,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -2712,7 +2712,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -2792,7 +2792,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -2804,7 +2804,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -2881,7 +2881,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -2893,7 +2893,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -2971,7 +2971,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.FUNCTION_TAG_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -2983,7 +2983,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
Function f = fm1.getFunctionAt(entryPoint1);
assertEquals("FUN_01004132", f.getName());
@@ -3062,7 +3062,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.FUNCTION_TAG_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -3074,7 +3074,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
Function f = fm1.getFunctionAt(entryPoint1);
assertEquals("FUN_01004132", f.getName());
@@ -3154,7 +3154,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -3182,7 +3182,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -3293,7 +3293,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -3321,7 +3321,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -3432,7 +3432,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -3460,7 +3460,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -3547,7 +3547,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
setToDiff.addRange(addr(p1, "TextOverlay::01001630"),
addr(p1, "TextOverlay::0100182f"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -3559,7 +3559,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "TextOverlay::01001630"), addr(p1, "TextOverlay::0100182f"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr1630, addr1630), programMerge.getFilteredDifferences());
commit = true;
@@ -3646,7 +3646,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
setToDiff.addRange(addr(p1, "TextOverlay::01001630"),
addr(p1, "TextOverlay::0100182f"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -3660,7 +3660,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "TextOverlay::01001630"), addr(p1, "TextOverlay::01001630"));
mergeSet.addRange(addr(p1, "TextOverlay::01001646"), addr(p1, "TextOverlay::01001646"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -3745,7 +3745,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
setToDiff.addRange(addr(p1, "TextOverlay::01001630"),
addr(p1, "TextOverlay::0100182f"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -3758,7 +3758,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "TextOverlay::01001630"), addr(p1, "TextOverlay::0100182f"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -3851,7 +3851,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
int txId = p1.startTransaction("Merge into Program 1");
boolean commit = false;
try {
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -3945,7 +3945,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
int txId = p1.startTransaction("Merge into Program 1");
boolean commit = false;
try {
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -3969,7 +3969,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
mergeSet.addRange(addr(p1, "Foo::0x0100017f"), addr(p1, "Foo::0x0100017f"));
mergeSet.addRange(addr(p1, "Foo::0x01000180"), addr(p1, "Foo::0x01000180"));
mergeSet.addRange(addr(p1, "Foo::0x010001ff"), addr(p1, "Foo::0x010001ff"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
@@ -4086,7 +4086,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
int txId = p1.startTransaction("Merge into Program 1");
boolean commit = false;
try {
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.SYMBOL_DIFFS | ProgramDiffFilter.FUNCTION_DIFFS));
@@ -4110,7 +4110,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
mergeSet.addRange(addr(p1, "Foo::0x0100017f"), addr(p1, "Foo::0x0100017f"));
mergeSet.addRange(addr(p1, "Foo::0x01000180"), addr(p1, "Foo::0x01000180"));
mergeSet.addRange(addr(p1, "Foo::0x010001ff"), addr(p1, "Foo::0x010001ff"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
AddressSet newDiffs = new AddressSet();
newDiffs.addRange(addr(p1, "Foo::0x01000030"), addr(p1, "Foo::0x01000030"));
@@ -4234,7 +4234,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
int txId = p1.startTransaction("Merge into Program 1");
boolean commit = false;
try {
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
@@ -4247,7 +4247,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01001e4f"), addr(p1, "0x01001efc"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
AddressSet newDiffs = new AddressSet();
assertEquals(newDiffs, programMerge.getFilteredDifferences());
@@ -4342,7 +4342,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -4355,7 +4355,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
mergeSet.addRange(addr(p1, "0x01004136"), addr(p1, "0x01004136"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
expectedDiffs.deleteRange(addr(p1, "0x01004136"), addr(p1, "0x01004136"));
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -4444,7 +4444,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -4459,7 +4459,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
mergeSet.addRange(addr(p1, "0x01004132"), addr(p1, "0x01004132"));
mergeSet.addRange(addr(p1, "0x01004136"), addr(p1, "0x01004136"));
mergeSet.addRange(addr(p1, "0x01004140"), addr(p1, "0x01004140"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -4553,7 +4553,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x01001a00"), addr(p1, "0x01006500"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -4566,7 +4566,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x1004130"), addr(p1, "0x1004160"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
@@ -4629,7 +4629,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x8080"), addr(p1, "0x80d0"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
//programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
programMerge.setMergeFilter(
@@ -4640,7 +4640,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
expectedDiffs.addRange(addr(p1, "0x80b4"), addr(p1, "0x80b7"));
assertEquals(expectedDiffs, programMerge.getFilteredDifferences());
- assertTrue(programMerge.merge(expectedDiffs, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(programMerge.merge(expectedDiffs, TaskMonitor.DUMMY));
}
finally {
@@ -4758,7 +4758,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x1000"), addr(p1, "0x1000"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
@@ -4769,7 +4769,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x1000"), addr(p1, "0x1000"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
AddressSet expectedDiffsAfter = new AddressSet();
assertEquals(expectedDiffsAfter, programMerge.getFilteredDifferences());
@@ -4856,7 +4856,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x1000"), addr(p1, "0x1000"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
@@ -4867,7 +4867,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x1000"), addr(p1, "0x1000"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
AddressSet expectedDiffsAfter = new AddressSet();
assertEquals(expectedDiffsAfter, programMerge.getFilteredDifferences());
@@ -4968,7 +4968,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x1002249"), addr(p1, "0x1002249"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
@@ -4979,7 +4979,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x1002249"), addr(p1, "0x1002249"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
AddressSet expectedDiffsAfter = new AddressSet();
assertEquals(expectedDiffsAfter, programMerge.getFilteredDifferences());
@@ -5078,7 +5078,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet setToDiff = new AddressSet();
setToDiff.addRange(addr(p1, "0x1002249"), addr(p1, "0x1002249"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
@@ -5089,7 +5089,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet mergeSet = new AddressSet();
mergeSet.addRange(addr(p1, "0x1002249"), addr(p1, "0x1002249"));
- programMerge.merge(mergeSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(mergeSet, TaskMonitor.DUMMY);
AddressSet expectedDiffsAfter = new AddressSet();
assertEquals(expectedDiffsAfter, programMerge.getFilteredDifferences());
@@ -5180,7 +5180,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
setToDiff.addRange(addr(p1, "OtherOverlay::01001630"),
addr(p1, "OtherOverlay::0100192f"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
AddressSet expectedDiffs = new AddressSet();
@@ -5194,7 +5194,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.SYMBOLS, ProgramMergeFilter.MERGE));
- programMerge.merge(expectedDiffs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(expectedDiffs, TaskMonitor.DUMMY);
AddressSet expectedPostMergeDiffs = new AddressSet();
expectedPostMergeDiffs.addRange(addr(p1, "SomeOverlay::01001630"),
@@ -5299,7 +5299,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
setToDiff.addRange(addr(p1, "OtherOverlay::01001630"),
addr(p1, "OtherOverlay::0100192f"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
AddressSet expectedDiffs = new AddressSet();
@@ -5313,7 +5313,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.SYMBOLS, ProgramMergeFilter.REPLACE));
- programMerge.merge(expectedDiffs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(expectedDiffs, TaskMonitor.DUMMY);
AddressSet expectedPostMergeDiffs = new AddressSet();
expectedPostMergeDiffs.addRange(addr(p1, "OtherOverlay::01001866"),
@@ -5415,7 +5415,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
setToDiff.addRange(addr(p1, "OtherOverlay::01001630"),
addr(p1, "OtherOverlay::0100192f"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
AddressSet expectedDiffs = new AddressSet();
@@ -5427,7 +5427,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.SYMBOLS, ProgramMergeFilter.MERGE));
- programMerge.merge(expectedDiffs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(expectedDiffs, TaskMonitor.DUMMY);
AddressSet expectedPostMergeDiffs = new AddressSet();
expectedPostMergeDiffs.addRange(addr(p1, "SomeOverlay::01001630"),
@@ -5529,7 +5529,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
setToDiff.addRange(addr(p1, "OtherOverlay::01001630"),
addr(p1, "OtherOverlay::0100192f"));
programMerge =
- new ProgramMergeManager(p1, p2, setToDiff, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, setToDiff, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.SYMBOL_DIFFS));
AddressSet expectedDiffs = new AddressSet();
@@ -5541,7 +5541,7 @@ public class ProgramMerge2Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.SYMBOLS, ProgramMergeFilter.REPLACE));
- programMerge.merge(expectedDiffs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(expectedDiffs, TaskMonitor.DUMMY);
AddressSet expectedPostMergeDiffs = new AddressSet();
assertEquals(expectedPostMergeDiffs, programMerge.getFilteredDifferences());
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge3Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge3Test.java
index 11dfaaa4ed..951c448aac 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge3Test.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge3Test.java
@@ -24,10 +24,10 @@ import ghidra.program.model.data.*;
import ghidra.program.model.listing.*;
import ghidra.program.model.mem.MemoryAccessException;
import ghidra.program.model.symbol.*;
-import ghidra.test.ClassicSampleX86ProgramBuilder;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
+import ghidra.test.ClassicSampleX86ProgramBuilder;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import junit.framework.TestCase;
/**
@@ -99,13 +99,13 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet addrSet = new AddressSet(addr(0x1002488), addr(0x1002492));
addrSet.addRange(addr(0x01002428), addr(0x0100242c));
- programMerge = new ProgramMergeManager(p1, p2, addrSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, addrSet, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x100248c), addr(0x100248e));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.USER_DEFINED_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.PROPERTIES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -147,7 +147,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createBookmark("0x1002323", BookmarkType.INFO, "stuff", "My bookmark");
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x1002306), addr(0x100232f)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x1002306), addr(0x100232f)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x100230b), addr(0x100231c));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.BOOKMARK_DIFFS));
programMerge.setMergeFilter(
@@ -155,7 +155,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
// printAddressSet(as);
// printAddressSet(programMerge.getFilteredDifferences());
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -174,7 +174,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.setBytes("0x01002cf8", "3b 74 24 0c", true);
// p1 & p2 differ at byte at 0x01002cfb.
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.BYTE_DIFFS | ProgramDiffFilter.CODE_UNIT_DIFFS));
programMerge.setMergeFilter(new ProgramMergeFilter(
@@ -182,7 +182,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet as = new AddressSet();
as.addRange(addr(0x01002cf8), addr(0x01002cfb));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
AddressSet unMergableByteAddresses = new AddressSet();// None that can't merge.
assertEquals(unMergableByteAddresses, programMerge.getFilteredDifferences());
@@ -211,7 +211,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.setBytes("0x1002b45", "8b");
programBuilder2.setBytes("0x1002b49", "57");
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.BYTE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.BYTES, ProgramMergeFilter.REPLACE));
@@ -224,7 +224,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
// Add the blocks that are in program2 and not program1 that are compatible.
as.addRange(addr(0x00000400), addr(0x000004ff));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
AddressSet unMergableByteAddresses = new AddressSet();
// Add the bytes for the blocks that are in program1 and not in program2.
@@ -266,7 +266,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet as = new AddressSet();
as.addRange(addr(0x1001000), addr(0x1003abf));
as.addRange(addr(0x1003bed), addr(0x10075ff));
- programMerge = new ProgramMergeManager(p1, p2, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, as, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.CODE_UNIT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.CODE_UNITS, ProgramMergeFilter.REPLACE));
@@ -278,7 +278,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(addrSet, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -309,7 +309,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
union_a2.add(struct_b1);
programBuilder2.applyDataType("0x01003b02", union_a2, 1);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.CODE_UNIT_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.CODE_UNITS, ProgramMergeFilter.REPLACE));
@@ -333,7 +333,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
assertEquals("union_1", u2.getName());
assertEquals(false, u1.isEquivalent(u2));
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(as, programMerge.getFilteredDifferences());
cu1 = p1.getListing().getCodeUnitAt(addr(0x01003b02));
@@ -355,7 +355,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
stripConflictDtSuffixes(u2.getPathName()));
// Try to apply it again. Should get same result.
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(as, programMerge.getFilteredDifferences());
cu1 = p1.getListing().getCodeUnitAt(addr(0x01003b02));
@@ -392,7 +392,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
struct_a2.add(new DWordDataType());
programBuilder2.applyDataType("0x01003ac8", struct_a2, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003ac8), addr(0x01003acc)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003ac8, 0x01003acc);
@@ -410,7 +410,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.applyDataType("0x01003b29", new PointerDataType(new ByteDataType()), 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003b29), addr(0x01003b2c)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003b29, 0x01003b2c);
@@ -430,7 +430,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.applyDataType("0x01003b31", new ArrayDataType(new ByteDataType(), 5, 1), 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003b31), addr(0x01003b35)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003b31, 0x01003b35);
@@ -444,7 +444,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.applyDataType("0x1003b3a", new DoubleDataType(), 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003b3a), addr(0x01003b41)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003b3a, 0x01003b41);
@@ -468,7 +468,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.applyDataType("0x01003b45", outer, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -486,7 +486,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
struct_a2.add(new DWordDataType());
programBuilder2.applyDataType("0x01003b5e", struct_a2, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003b5e), addr(0x01003b62)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003b5e, 0x01003b62);
@@ -508,7 +508,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
struct_b2.add(new PointerDataType(new CharDataType()));
programBuilder2.applyDataType("0x01003ad5", struct_b2, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003ad5), addr(0x01003ad9)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003ad5, 0x01003ad9);
@@ -533,7 +533,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
union_c2.add(new DWordDataType());
programBuilder2.applyDataType("0x01003ae1", union_c2, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003ae1), addr(0x01003ae6)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003ae1, 0x01003ae6);
@@ -552,7 +552,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.applyDataType("0x1003aed", struct_a1, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003aec), addr(0x01003af1)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003aec, 0x01003af1);
@@ -575,7 +575,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
struct_altName_a1.add(new DWordDataType());
programBuilder2.applyDataType("0x1003af7", struct_altName_a1, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003af7), addr(0x01003afb)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003af7, 0x01003afb);
@@ -597,7 +597,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
struct_sub1_a1.add(new DWordDataType());
programBuilder2.applyDataType("0x1003b02", struct_sub1_a1, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003b02), addr(0x01003b06)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003b02, 0x01003b06);
@@ -613,7 +613,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.applyDataType("0x1003b0d", new ByteDataType(), 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003b0d), addr(0x01003b0e)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003b0d, 0x01003b0e);
@@ -629,7 +629,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.applyDataType("0x1003b14", new ByteDataType(), 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003b14), addr(0x01003b14)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003b14, 0x01003b14);
@@ -645,7 +645,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.applyDataType("0x1003b1c", new UnicodeDataType(), 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
assertEquals(new AddressSet(addr(0x01003b1c), addr(0x01003b1d)),
programMerge.getFilteredDifferences());
mergeCodeUnitDifference(0x01003b1c, 0x01003b1d);
@@ -677,7 +677,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createEquate("0x100643d", "Four", 0x4, 2);
programBuilder2.createEquate("0x10064ee", "MY_EQUATE", 0x14, 2);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet();
as.addRange(addr(0x100643d), addr(0x100643d));
as.addRange(addr(0x100644d), addr(0x100644d));
@@ -688,7 +688,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.CODE_UNITS, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -704,14 +704,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
SourceType.DEFAULT);
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x01001000), addr(0x010017ff)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x01001028), addr(0x0100102b));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -726,13 +726,13 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
p2.endTransaction(transactionID, true);
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x0100299e), addr(0x01002a90)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x0100299e), addr(0x01002a90)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x0100299e), addr(0x0100299e));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -748,14 +748,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
Function function2 = p2.getFunctionManager().getFunctionAt(addr(p2, 0x010048a3));
programBuilder2.createLocalVariable(function2, null, DataType.DEFAULT, 0x1);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x010048a3), addr(0x010048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -773,14 +773,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
function.addParameter(var, SourceType.USER_DEFINED);
p2.endTransaction(transactionID, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x1002cf5), addr(0x1002cf5));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -801,14 +801,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
localVariables[4].setName("numAvailable", SourceType.USER_DEFINED);
p1.endTransaction(transactionID1, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10059a3), addr(0x10059a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -829,14 +829,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
function1.removeVariable(localVariables[4]);
p1.endTransaction(transactionID1, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10059a3), addr(0x10059a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -865,14 +865,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
localVariables2[0].setDataType(new PointerDataType(), SourceType.DEFAULT);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10059a3), addr(0x10059a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -904,7 +904,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
function2.setName("Function2239", SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x10048a3), addr(0x10048a3));
programMerge.setDiffFilter(new ProgramDiffFilter(
@@ -912,7 +912,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(new ProgramMergeFilter(
ProgramMergeFilter.FUNCTIONS | ProgramMergeFilter.SYMBOLS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -928,13 +928,13 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
p2.endTransaction(transactionID, true);
programMerge = new ProgramMergeManager(p1, p2,
- new AddressSet(addr(0x10030d2), addr(0x10030d7)), TaskMonitorAdapter.DUMMY_MONITOR);
+ new AddressSet(addr(0x10030d2), addr(0x10030d7)), TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x10030d2), addr(0x10030d2));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -949,13 +949,13 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
p1.getFunctionManager().removeFunction(addr(0x10030d2));
p1.endTransaction(transactionID, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x10030d2), addr(0x10030d2));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -972,14 +972,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
function.getParameter(0).setName("value", SourceType.USER_DEFINED);
p1.endTransaction(transactionID, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x01002cf5), addr(0x01002cf5));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -994,7 +994,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet as = new AddressSet();
as.addRange(addr(0x010032d5), addr(0x010033f5));
- programMerge = new ProgramMergeManager(p1, p2, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, as, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
// For now, we are not allowing you to set the parameter offset or local size outright.
// diffAs.addRange(addr(0x010032d5), addr(0x010032d5));
@@ -1002,7 +1002,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1019,14 +1019,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
function.removeParameter(0);
p1.endTransaction(transactionID, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x01002cf5), addr(0x01002cf5));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1054,14 +1054,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
f2p0.setDataType(DataType.DEFAULT, SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x010059a3), addr(0x010059a3));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1102,7 +1102,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
function2.setReturnType(new CharDataType(), SourceType.USER_DEFINED);
p2.endTransaction(transactionID2, true);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(0x010048a3), addr(0x010048a3));
diffAs.addRange(addr(0x010059a3), addr(0x010059a3));
@@ -1110,7 +1110,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.FUNCTIONS, ProgramMergeFilter.REPLACE));
assertEquals(diffAs, programMerge.getFilteredDifferences());
- programMerge.merge(diffAs, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(diffAs, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1135,7 +1135,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet as;
AddressSet limitedAddrSet = new AddressSet(addr(0x1002950), addr(0x100299b));
programMerge =
- new ProgramMergeManager(p1, p2, limitedAddrSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(p1, p2, limitedAddrSet, TaskMonitor.DUMMY);
as = new AddressSet();
as.addRange(addr(0x100295d), addr(0x100295d));
@@ -1146,7 +1146,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
new ProgramMergeFilter(ProgramMergeFilter.SYMBOLS, ProgramMergeFilter.REPLACE));
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(as, diffAs);
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1164,14 +1164,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemoryReference("0x1002d0f", "0x1006488", RefType.READ,
SourceType.USER_DEFINED, 1);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet();
as.addRange(addr(0x1002d0f), addr(0x1002d10));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1189,14 +1189,14 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemoryReference("0x1002d03", "0x1006488", RefType.READ,
SourceType.USER_DEFINED, -1);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x1002cfc), addr(0x1002cfc));
as.add(addr(0x1002d03), addr(0x1002d03));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1211,13 +1211,13 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemoryReference("0x1002d25", "0x1006488", RefType.READ,
SourceType.USER_DEFINED, 1);
- programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, null, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x1002d25), addr(0x1002d26));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1239,13 +1239,13 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemoryReference("0x1002cfc", "0x1006488", RefType.READ,
SourceType.USER_DEFINED, 0);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x1002cfc), addr(0x1002cfc));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1263,13 +1263,13 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemoryReference("0x1002cfc", "0x1006488", RefType.READ,
SourceType.USER_DEFINED, 0);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x1002cfc), addr(0x1002cfc));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1286,13 +1286,13 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.createMemoryReference("0x1002cfc", "0x1006488", RefType.READ,
SourceType.USER_DEFINED, 0);
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
AddressSet as = new AddressSet(addr(0x1002cfc), addr(0x1002cfc));
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.REFERENCE_DIFFS));
programMerge.setMergeFilter(
new ProgramMergeFilter(ProgramMergeFilter.REFERENCES, ProgramMergeFilter.REPLACE));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
assertEquals(new AddressSet(), programMerge.getFilteredDifferences());
}
@@ -1310,7 +1310,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.setBytes("0x01002cf8", "3b 74 24 0c", true);
// p1 & p2 differ at byte at 0x01002cfb.
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.BYTE_DIFFS | ProgramDiffFilter.CODE_UNIT_DIFFS));
programMerge.setMergeFilter(
@@ -1318,7 +1318,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet as = new AddressSet();
as.addRange(addr(0x01002cf8), addr(0x01002cfb));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
AddressSet unMergableByteAddresses = new AddressSet();// None that can't merge.
assertEquals(unMergableByteAddresses, programMerge.getFilteredDifferences());
@@ -1339,7 +1339,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
programBuilder2.setBytes("0x01002cf8", "3b 74 24 0c", true);
// p1 & p2 differ at byte at 0x01002cfb.
- programMerge = new ProgramMergeManager(p1, p2, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge = new ProgramMergeManager(p1, p2, TaskMonitor.DUMMY);
programMerge.setDiffFilter(new ProgramDiffFilter(
ProgramDiffFilter.BYTE_DIFFS | ProgramDiffFilter.CODE_UNIT_DIFFS));
programMerge.setMergeFilter(
@@ -1347,7 +1347,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSet as = new AddressSet();
as.addRange(addr(0x01002cf8), addr(0x01002cfb));
assertEquals(as, programMerge.getFilteredDifferences());
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
AddressSet unMergableByteAddresses = new AddressSet();// None that can't merge.
assertEquals(unMergableByteAddresses, programMerge.getFilteredDifferences());
@@ -1384,7 +1384,7 @@ public class ProgramMerge3Test extends AbstractGhidraHeadedIntegrationTest {
AddressSetView diffAs = programMerge.getFilteredDifferences();
assertEquals(addrSet, diffAs);
- programMerge.merge(addrSet, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(addrSet, TaskMonitor.DUMMY);
}
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ThunkFunctionDiffTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ThunkFunctionDiffTest.java
index e2909cf789..fa1f76e765 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ThunkFunctionDiffTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ThunkFunctionDiffTest.java
@@ -27,7 +27,7 @@ import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
@@ -159,11 +159,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
AddressSet expectedDifferences = new AddressSet();
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -229,11 +229,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -280,11 +280,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -331,11 +331,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -408,12 +408,12 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter functionFilter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(functionFilter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(functionFilter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -488,12 +488,12 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
addr(latestProgram, "0100199b"));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter functionFilter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(functionFilter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(functionFilter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -581,11 +581,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -655,11 +655,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -729,11 +729,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -804,12 +804,12 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter functionFilter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(functionFilter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(functionFilter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -906,11 +906,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -1022,11 +1022,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
AddressSet expectedDifferences = new AddressSet();
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -1140,11 +1140,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -1257,11 +1257,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
@@ -1374,11 +1374,11 @@ public class ThunkFunctionDiffTest extends AbstractGhidraHeadedIntegrationTest {
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
// Perform the Diff and check the differences.
ProgramDiff programDiff = new ProgramDiff(latestProgram, myProgram);
- AddressSetView differences = programDiff.getDifferences(TaskMonitorAdapter.DUMMY_MONITOR);
+ AddressSetView differences = programDiff.getDifferences(TaskMonitor.DUMMY);
assertEquals(expectedDifferences, differences);
ProgramDiffFilter filter = new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS);
AddressSetView functionDifferences =
- programDiff.getDifferences(filter, TaskMonitorAdapter.DUMMY_MONITOR);
+ programDiff.getDifferences(filter, TaskMonitor.DUMMY);
assertEquals(expectedDifferences, functionDifferences);
}
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ThunkFunctionMergeTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ThunkFunctionMergeTest.java
index a8576715d8..cc69e442ed 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ThunkFunctionMergeTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ThunkFunctionMergeTest.java
@@ -25,7 +25,7 @@ import ghidra.program.model.address.*;
import ghidra.program.model.listing.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest {
@@ -155,7 +155,7 @@ public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest
AddressSetView as = latestProgram.getMemory();
ProgramMergeManager programMerge =
- new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
programMerge.setDiffFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
@@ -234,7 +234,7 @@ public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest
AddressSetView as = latestProgram.getMemory();
ProgramMergeManager programMerge =
- new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitor.DUMMY);
AddressSet diffAs =
new AddressSet(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
@@ -295,7 +295,7 @@ public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest
AddressSetView as = latestProgram.getMemory();
ProgramMergeManager programMerge =
- new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
@@ -354,7 +354,7 @@ public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest
AddressSetView as = latestProgram.getMemory();
ProgramMergeManager programMerge =
- new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
@@ -443,7 +443,7 @@ public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest
AddressSetView as = latestProgram.getMemory();
ProgramMergeManager programMerge =
- new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
@@ -536,7 +536,7 @@ public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest
AddressSetView as = latestProgram.getMemory();
ProgramMergeManager programMerge =
- new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(latestProgram, "01001984"), addr(latestProgram, "01001984"));
@@ -631,7 +631,7 @@ public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest
AddressSetView as = latestProgram.getMemory();
ProgramMergeManager programMerge =
- new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitorAdapter.DUMMY_MONITOR);
+ new ProgramMergeManager(latestProgram, myProgram, as, TaskMonitor.DUMMY);
AddressSet diffAs = new AddressSet();
diffAs.addRange(addr(latestProgram, THUNK_A_ENTRY), addr(latestProgram, THUNK_A_ENTRY));
@@ -667,7 +667,7 @@ public class ThunkFunctionMergeTest extends AbstractGhidraHeadedIntegrationTest
boolean success = false;
int latestId = latestProgram.startTransaction("Merge To Latest");
try {
- programMerge.merge(as, TaskMonitorAdapter.DUMMY_MONITOR);
+ programMerge.merge(as, TaskMonitor.DUMMY);
success = true;
}
catch (Exception e) {
diff --git a/Ghidra/Features/Base/src/test/java/ghidra/app/merge/listing/VariableStorageConflictsTest.java b/Ghidra/Features/Base/src/test/java/ghidra/app/merge/listing/VariableStorageConflictsTest.java
index 250c4dc14f..cb84a45309 100644
--- a/Ghidra/Features/Base/src/test/java/ghidra/app/merge/listing/VariableStorageConflictsTest.java
+++ b/Ghidra/Features/Base/src/test/java/ghidra/app/merge/listing/VariableStorageConflictsTest.java
@@ -15,8 +15,7 @@
*/
package ghidra.app.merge.listing;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import java.util.*;
@@ -32,7 +31,7 @@ import ghidra.program.model.listing.*;
import ghidra.program.model.listing.Function.FunctionUpdateType;
import ghidra.program.model.symbol.RefType;
import ghidra.program.model.symbol.SourceType;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class VariableStorageConflictsTest extends AbstractGenericTest {
@@ -111,7 +110,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
SourceType.DEFAULT);
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func1,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("No conflict expected", !vsc.hasOverlapConflict());
}
@@ -163,7 +162,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
// Since these are params all params should be lumped together
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func2,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("Parameter conflict expected", vsc.hasOverlapConflict());
List, List>> overlappingVariables =
@@ -202,7 +201,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
SourceType.DEFAULT);
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func2,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("Parameter conflict expected", vsc.hasOverlapConflict());
List, List>> overlappingVariables =
@@ -242,7 +241,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
bxReg.getParentRegister(), program), SourceType.DEFAULT);
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func2,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("Local conflict expected", vsc.hasOverlapConflict());
List, List>> overlappingVariables =
@@ -286,7 +285,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
bxReg.getParentRegister(), program), SourceType.DEFAULT);
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func2,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("Local conflict expected", vsc.hasOverlapConflict());
List, List>> overlappingVariables =
@@ -335,7 +334,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
SourceType.DEFAULT);
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func2,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("Local conflict expected", vsc.hasOverlapConflict());
List, List>> overlappingVariables =
@@ -374,7 +373,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
SourceType.DEFAULT);
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func2,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("Local conflict expected", vsc.hasOverlapConflict());
List, List>> overlappingVariables =
@@ -419,7 +418,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
SourceType.DEFAULT);
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func2,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("Local conflict expected", vsc.hasOverlapConflict());
List, List>> overlappingVariables =
@@ -464,7 +463,7 @@ public class VariableStorageConflictsTest extends AbstractGenericTest {
SourceType.DEFAULT);
FunctionVariableStorageConflicts vsc = new FunctionVariableStorageConflicts(func1, func2,
- false, TaskMonitorAdapter.DUMMY_MONITOR);
+ false, TaskMonitor.DUMMY);
assertTrue("Local conflict expected", vsc.hasOverlapConflict());
List, List>> overlappingVariables =
diff --git a/Ghidra/Features/Base/src/test/java/ghidra/program/database/MergeProgram.java b/Ghidra/Features/Base/src/test/java/ghidra/program/database/MergeProgram.java
index 35e8d2e15d..45cc02fa11 100644
--- a/Ghidra/Features/Base/src/test/java/ghidra/program/database/MergeProgram.java
+++ b/Ghidra/Features/Base/src/test/java/ghidra/program/database/MergeProgram.java
@@ -20,7 +20,7 @@ import ghidra.program.model.data.DataType;
import ghidra.program.model.listing.*;
import ghidra.program.model.mem.Memory;
import ghidra.program.model.symbol.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* A special test 'program-like' class that allows clients to *easily* make changes one
@@ -113,7 +113,7 @@ public class MergeProgram {
try {
memory.createInitializedBlock(name, startAddress, size, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
catch (Exception e) {
throw new RuntimeException("Exception building memory", e);
diff --git a/Ghidra/Features/Base/src/test/java/ghidra/program/database/ProgramOverlaysTest.java b/Ghidra/Features/Base/src/test/java/ghidra/program/database/ProgramOverlaysTest.java
index 143979f170..11a54356c7 100644
--- a/Ghidra/Features/Base/src/test/java/ghidra/program/database/ProgramOverlaysTest.java
+++ b/Ghidra/Features/Base/src/test/java/ghidra/program/database/ProgramOverlaysTest.java
@@ -27,7 +27,7 @@ import ghidra.program.model.listing.Program;
import ghidra.program.model.mem.Memory;
import ghidra.program.model.mem.MemoryBlock;
import ghidra.program.model.symbol.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class ProgramOverlaysTest extends AbstractGenericTest {
@@ -119,7 +119,7 @@ public class ProgramOverlaysTest extends AbstractGenericTest {
assertNotNull(block);
int id = p.startTransaction("");
- memory.removeBlock(block, TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.removeBlock(block, TaskMonitor.DUMMY);
p.endTransaction(id, true);
assertEquals(2, p.getAddressFactory().getNumAddressSpaces()); // ram, OTHER
diff --git a/Ghidra/Features/Base/src/test/java/ghidra/program/database/code/CodeManager64Test.java b/Ghidra/Features/Base/src/test/java/ghidra/program/database/code/CodeManager64Test.java
index f8d55d5522..16f8ba0c9d 100644
--- a/Ghidra/Features/Base/src/test/java/ghidra/program/database/code/CodeManager64Test.java
+++ b/Ghidra/Features/Base/src/test/java/ghidra/program/database/code/CodeManager64Test.java
@@ -194,7 +194,7 @@ public class CodeManager64Test extends AbstractGenericTest {
// }
// }
// fis3.close();
-// TaskMonitor m = TaskMonitorAdapter.DUMMY_MONITOR;
+// TaskMonitor m = TaskMonitor.DUMMY;
// mem.createInitializedBlock("B1", addr(1000), new ByteArrayInputStream(bytesOne),
// bytesOne.length, m, false);
// mem.createInitializedBlock("B2", addr(10000), new ByteArrayInputStream(bytesTwo),
diff --git a/Ghidra/Features/Base/src/test/java/ghidra/program/database/code/CodeManagerTest.java b/Ghidra/Features/Base/src/test/java/ghidra/program/database/code/CodeManagerTest.java
index 81a1da1f66..d3eaf0dc80 100644
--- a/Ghidra/Features/Base/src/test/java/ghidra/program/database/code/CodeManagerTest.java
+++ b/Ghidra/Features/Base/src/test/java/ghidra/program/database/code/CodeManagerTest.java
@@ -674,7 +674,7 @@ public class CodeManagerTest extends AbstractGenericTest {
@Test
public void testGetDataContaining() throws Exception {
mem.createInitializedBlock("test", addr(0x0), 100, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
StringDataType s = new StringDataType();
listing.createData(addr(0x0), s, 10);
@@ -717,7 +717,7 @@ public class CodeManagerTest extends AbstractGenericTest {
@Test
public void testGetDataBefore() throws Exception {
mem.createInitializedBlock("test", addr(0x0), 200, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
StringDataType s = new StringDataType();
listing.createData(addr(0x0), s, 10);
@@ -739,7 +739,7 @@ public class CodeManagerTest extends AbstractGenericTest {
@Test
public void testGetDataBefore2() throws Exception {
mem.createInitializedBlock("test", addr(0x0), 200, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
StringDataType s = new StringDataType();
listing.createData(addr(0x0), s, 0x10);
@@ -826,31 +826,31 @@ public class CodeManagerTest extends AbstractGenericTest {
@Test
public void testGetUndefinedDataAfter() throws Exception {
mem.createInitializedBlock("bk1", addr(0x0), 0x200, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
parseStatic(addr(0x1100), addr(0x1500));
Instruction inst = listing.getInstructionContaining(addr(0x1500));
- Data data = listing.getUndefinedDataAfter(addr(0x100), TaskMonitorAdapter.DUMMY_MONITOR);
+ Data data = listing.getUndefinedDataAfter(addr(0x100), TaskMonitor.DUMMY);
assertNotNull(data);
assertEquals(addr(0x101), data.getMinAddress());
- data = listing.getUndefinedDataAfter(addr(0x1499), TaskMonitorAdapter.DUMMY_MONITOR);
+ data = listing.getUndefinedDataAfter(addr(0x1499), TaskMonitor.DUMMY);
assertNotNull(data);
Address expectedAddr = inst.getMaxAddress().addNoWrap(1);
assertEquals(expectedAddr, data.getMinAddress());
- data = listing.getUndefinedDataAfter(expectedAddr, TaskMonitorAdapter.DUMMY_MONITOR);
+ data = listing.getUndefinedDataAfter(expectedAddr, TaskMonitor.DUMMY);
assertNotNull(data);
assertEquals(expectedAddr.addNoWrap(1), data.getMinAddress());
parseStatic(addr(0x1700), addr(0x1705));
inst = listing.getInstructionContaining(addr(0x1705));
- data = listing.getUndefinedDataAfter(addr(0x16ff), TaskMonitorAdapter.DUMMY_MONITOR);
+ data = listing.getUndefinedDataAfter(addr(0x16ff), TaskMonitor.DUMMY);
expectedAddr = inst.getMaxAddress().next();
assertEquals(expectedAddr, data.getMinAddress());
listing.clearCodeUnits(addr(0x1390), addr(0x1400), false);
- data = listing.getUndefinedDataAfter(addr(0x1300), TaskMonitorAdapter.DUMMY_MONITOR);
+ data = listing.getUndefinedDataAfter(addr(0x1300), TaskMonitor.DUMMY);
assertNotNull(data);
assertEquals(addr(0x1390), data.getMinAddress());
}
@@ -858,37 +858,37 @@ public class CodeManagerTest extends AbstractGenericTest {
@Test
public void testGetFirstUndefinedData() throws Exception {
mem.createInitializedBlock("bk1", addr(0x0), 0x200, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
parseStatic(addr(0x1100), addr(0x1500));
Instruction inst = listing.getInstructionContaining(addr(0x1500));
Data data = listing.getFirstUndefinedData(new AddressSet(addr(0x101), addr(0x500)),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
assertNotNull(data);
assertEquals(addr(0x101), data.getMinAddress());
data = listing.getFirstUndefinedData(new AddressSet(addr(0x1500), addr(0x2000)),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
assertNotNull(data);
Address expectedAddr = inst.getMaxAddress().addNoWrap(1);
assertEquals(expectedAddr, data.getMinAddress());
data = listing.getFirstUndefinedData(
new AddressSet(expectedAddr.add(1), expectedAddr.add(500)),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
assertNotNull(data);
assertEquals(expectedAddr.addNoWrap(1), data.getMinAddress());
parseStatic(addr(0x1700), addr(0x1705));
inst = listing.getInstructionContaining(addr(0x1705));
data = listing.getFirstUndefinedData(new AddressSet(addr(0x1700), addr(0x5000)),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
expectedAddr = inst.getMaxAddress().addNoWrap(1);
assertEquals(expectedAddr, data.getMinAddress());
listing.clearCodeUnits(addr(0x1390), addr(0x1400), false);
data = listing.getFirstUndefinedData(new AddressSet(addr(0x1300), addr(0x5000)),
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
assertNotNull(data);
assertEquals(addr(0x1390), data.getMinAddress());
}
@@ -897,12 +897,12 @@ public class CodeManagerTest extends AbstractGenericTest {
public void testGetUndefinedDataBefore() throws Exception {
parseStatic(addr(0x1100), addr(0x1500));
- Data data = listing.getUndefinedDataBefore(addr(0x1400), TaskMonitorAdapter.DUMMY_MONITOR);
+ Data data = listing.getUndefinedDataBefore(addr(0x1400), TaskMonitor.DUMMY);
assertNotNull(data);
assertEquals(addr(0x10ff), data.getMinAddress());
listing.clearCodeUnits(addr(0x1495), addr(0x1500), false);
- data = listing.getUndefinedDataBefore(addr(0x1600), TaskMonitorAdapter.DUMMY_MONITOR);
+ data = listing.getUndefinedDataBefore(addr(0x1600), TaskMonitor.DUMMY);
assertNotNull(data);
assertEquals(addr(0x15ff), data.getMinAddress());
}
@@ -910,7 +910,7 @@ public class CodeManagerTest extends AbstractGenericTest {
@Test
public void testClearProperties() throws Exception {
mem.createInitializedBlock("bk1", addr(0x0), 0x200, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
// addresses 10-19
for (int i = 0; i < 20; i++) {
CodeUnit cu = listing.getCodeUnitAt(addr(i + 10));
@@ -923,7 +923,7 @@ public class CodeManagerTest extends AbstractGenericTest {
cu.setProperty("Name", "codeUnit_" + i);
assertNotNull(cu.getStringProperty("Name"));
}
- listing.clearProperties(addr(0x0), addr(0x15), TaskMonitorAdapter.DUMMY_MONITOR);
+ listing.clearProperties(addr(0x0), addr(0x15), TaskMonitor.DUMMY);
CodeUnit cu = listing.getCodeUnitAt(addr(0x10));
try {
cu.getIntProperty("Numbers");
@@ -936,7 +936,7 @@ public class CodeManagerTest extends AbstractGenericTest {
cu = listing.getCodeUnitAt(addr(0x18));
cu.getIntProperty("Numbers");
- listing.clearProperties(addr(0x16), addr(0x200), TaskMonitorAdapter.DUMMY_MONITOR);
+ listing.clearProperties(addr(0x16), addr(0x200), TaskMonitor.DUMMY);
cu = listing.getCodeUnitAt(addr(0x16));
try {
cu.getIntProperty("Numbers");
@@ -957,7 +957,7 @@ public class CodeManagerTest extends AbstractGenericTest {
parseStatic(addr(0x1500), addr(0x1600));
assertNotNull(listing.getInstructionAt(addr(0x1500)));
- listing.clearAll(false, TaskMonitorAdapter.DUMMY_MONITOR);
+ listing.clearAll(false, TaskMonitor.DUMMY);
assertNull(listing.getInstructionAt(addr(0x1500)));
assertEquals(0, listing.getNumInstructions());
diff --git a/Ghidra/Features/Base/src/test/java/ghidra/util/search/trie/ByteTrieTest.java b/Ghidra/Features/Base/src/test/java/ghidra/util/search/trie/ByteTrieTest.java
index b7f9abed5b..c784242ea0 100644
--- a/Ghidra/Features/Base/src/test/java/ghidra/util/search/trie/ByteTrieTest.java
+++ b/Ghidra/Features/Base/src/test/java/ghidra/util/search/trie/ByteTrieTest.java
@@ -22,7 +22,7 @@ import java.util.*;
import org.junit.*;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class ByteTrieTest {
@@ -201,7 +201,7 @@ public class ByteTrieTest {
add(trie, "caa", true);
List> result =
- trie.search("abccab".getBytes(), TaskMonitorAdapter.DUMMY_MONITOR);
+ trie.search("abccab".getBytes(), TaskMonitor.DUMMY);
assertEquals("wrong size result list", 7, result.size());
expect(result, 0, "a");
@@ -221,7 +221,7 @@ public class ByteTrieTest {
add(trie, "hers", true);
List> result =
- trie.search("they shelled this hershey".getBytes(), TaskMonitorAdapter.DUMMY_MONITOR);
+ trie.search("they shelled this hershey".getBytes(), TaskMonitor.DUMMY);
assertEquals("wrong size result list", 8, result.size());
expect(result, 1, "he");
@@ -245,7 +245,7 @@ public class ByteTrieTest {
add(trie, "tables", true);
List> result =
- trie.search("unstoppable tables".getBytes(), TaskMonitorAdapter.DUMMY_MONITOR);
+ trie.search("unstoppable tables".getBytes(), TaskMonitor.DUMMY);
assertEquals("wrong size result list", 8, result.size());
expect(result, 0, "unstoppable");
@@ -288,7 +288,7 @@ public class ByteTrieTest {
*/
private static Iterator iterator(ByteTrieIfc trie) throws CancelledException {
final ArrayList list = new ArrayList();
- trie.inorder(TaskMonitorAdapter.DUMMY_MONITOR, new Op() {
+ trie.inorder(TaskMonitor.DUMMY, new Op() {
@Override
public void op(ByteTrieNodeIfc node) {
if (node.isTerminal()) {
@@ -307,7 +307,7 @@ public class ByteTrieTest {
*/
private static Iterator iterator2(ByteTrieIfc trie) throws CancelledException {
final ArrayList list = new ArrayList();
- trie.inorder(TaskMonitorAdapter.DUMMY_MONITOR, new Op() {
+ trie.inorder(TaskMonitor.DUMMY, new Op() {
@Override
public void op(ByteTrieNodeIfc node) {
if (node.isTerminal()) {
diff --git a/Ghidra/Features/Base/src/test/java/ghidra/util/search/trie/CaseInsensitiveByteTrieTest.java b/Ghidra/Features/Base/src/test/java/ghidra/util/search/trie/CaseInsensitiveByteTrieTest.java
index d69c5ac094..10a84eaebb 100644
--- a/Ghidra/Features/Base/src/test/java/ghidra/util/search/trie/CaseInsensitiveByteTrieTest.java
+++ b/Ghidra/Features/Base/src/test/java/ghidra/util/search/trie/CaseInsensitiveByteTrieTest.java
@@ -22,7 +22,7 @@ import java.util.*;
import org.junit.*;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class CaseInsensitiveByteTrieTest {
@@ -217,7 +217,7 @@ public class CaseInsensitiveByteTrieTest {
add(trie, "cAa", true);
List> result =
- trie.search("abccab".getBytes(), TaskMonitorAdapter.DUMMY_MONITOR);
+ trie.search("abccab".getBytes(), TaskMonitor.DUMMY);
assertEquals("wrong size result list", 7, result.size());
expect(result, 0, "a");
@@ -237,7 +237,7 @@ public class CaseInsensitiveByteTrieTest {
add(trie, "Hers", true);
List> result =
- trie.search("they shelled this hershey".getBytes(), TaskMonitorAdapter.DUMMY_MONITOR);
+ trie.search("they shelled this hershey".getBytes(), TaskMonitor.DUMMY);
assertEquals("wrong size result list", 8, result.size());
expect(result, 1, "hE");
@@ -261,7 +261,7 @@ public class CaseInsensitiveByteTrieTest {
add(trie, "tAblEs", true);
List> result =
- trie.search("unstoppable tables".getBytes(), TaskMonitorAdapter.DUMMY_MONITOR);
+ trie.search("unstoppable tables".getBytes(), TaskMonitor.DUMMY);
assertEquals("wrong size result list", 8, result.size());
expect(result, 0, "unStoppable");
@@ -304,7 +304,7 @@ public class CaseInsensitiveByteTrieTest {
*/
private static Iterator iterator(ByteTrieIfc trie) throws CancelledException {
final ArrayList list = new ArrayList();
- trie.inorder(TaskMonitorAdapter.DUMMY_MONITOR, new Op() {
+ trie.inorder(TaskMonitor.DUMMY, new Op() {
@Override
public void op(ByteTrieNodeIfc node) {
if (node.isTerminal()) {
@@ -323,7 +323,7 @@ public class CaseInsensitiveByteTrieTest {
*/
private static Iterator iterator2(ByteTrieIfc trie) throws CancelledException {
final ArrayList list = new ArrayList();
- trie.inorder(TaskMonitorAdapter.DUMMY_MONITOR, new Op() {
+ trie.inorder(TaskMonitor.DUMMY, new Op() {
@Override
public void op(ByteTrieNodeIfc node) {
if (node.isTerminal()) {
diff --git a/Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FuncRecord.java b/Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FuncRecord.java
index 6228aa2e86..8cf70c21af 100644
--- a/Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FuncRecord.java
+++ b/Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FuncRecord.java
@@ -27,7 +27,7 @@ import ghidra.program.model.lang.Register;
import ghidra.program.model.listing.*;
import ghidra.program.model.mem.MemoryAccessException;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import ghidra.util.xml.SpecXmlUtils;
import ghidra.xml.XmlElement;
import ghidra.xml.XmlPullParser;
@@ -124,7 +124,7 @@ public class FuncRecord implements Comparable {
}
digest.reset();
- digest.update(totalToHash, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(totalToHash, TaskMonitor.DUMMY);
//Finally, update the hash signature.
this.hashValue = digest.digestLong();
diff --git a/Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin2Test.java b/Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin2Test.java
index a0962a6022..aea45705a2 100644
--- a/Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin2Test.java
+++ b/Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin2Test.java
@@ -54,7 +54,7 @@ import ghidra.program.model.mem.MemoryBlock;
import ghidra.program.util.ProgramLocation;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* Test editing in the Byte Viewer.
@@ -854,7 +854,7 @@ public class ByteViewerPlugin2Test extends AbstractGhidraHeadedIntegrationTest {
MemoryBlock block = memory.getBlock(addr);
Address newStart = getAddr(0x500);
transactionID = program.startTransaction("Test");
- memory.moveBlock(block, newStart, TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.moveBlock(block, newStart, TaskMonitor.DUMMY);
program.endTransaction(transactionID, true);
program.flushEvents();
@@ -966,7 +966,7 @@ public class ByteViewerPlugin2Test extends AbstractGhidraHeadedIntegrationTest {
assertEquals(getFieldLocation(addr), loc);
int transactionID = program.startTransaction("Test");
- memory.removeBlock(block, TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.removeBlock(block, TaskMonitor.DUMMY);
program.endTransaction(transactionID, true);
program.flushEvents();
@@ -997,7 +997,7 @@ public class ByteViewerPlugin2Test extends AbstractGhidraHeadedIntegrationTest {
MemoryBlock block = memory.getBlock(getAddr(0x01001000));
int transactionID = program.startTransaction("Test");
- memory.removeBlock(block, TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.removeBlock(block, TaskMonitor.DUMMY);
program.endTransaction(transactionID, true);
program.flushEvents();
@@ -1061,7 +1061,7 @@ public class ByteViewerPlugin2Test extends AbstractGhidraHeadedIntegrationTest {
MemoryBlock block = null;
try {
block = memory.createInitializedBlock(".test", getAddr(0), 500, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, false);
+ TaskMonitor.DUMMY, false);
}
finally {
program.endTransaction(transactionID, true);
@@ -1087,7 +1087,7 @@ public class ByteViewerPlugin2Test extends AbstractGhidraHeadedIntegrationTest {
// now remove the block
transactionID = program.startTransaction("test");
try {
- memory.removeBlock(block, TaskMonitorAdapter.DUMMY_MONITOR);
+ memory.removeBlock(block, TaskMonitor.DUMMY);
}
finally {
program.endTransaction(transactionID, true);
diff --git a/Ghidra/Features/DebugUtils/src/main/java/db/DbViewer.java b/Ghidra/Features/DebugUtils/src/main/java/db/DbViewer.java
index e084d01ae6..80659e175c 100644
--- a/Ghidra/Features/DebugUtils/src/main/java/db/DbViewer.java
+++ b/Ghidra/Features/DebugUtils/src/main/java/db/DbViewer.java
@@ -39,7 +39,7 @@ import ghidra.framework.store.db.PackedDatabase;
import ghidra.util.Msg;
import ghidra.util.filechooser.ExtensionFileFilter;
import ghidra.util.layout.PairLayout;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import utility.application.ApplicationLayout;
/**
@@ -134,8 +134,8 @@ public class DbViewer extends JFrame {
catch (IOException e) {
try {
PackedDatabase pdb = PackedDatabase.getPackedDatabase(selectedFile,
- TaskMonitorAdapter.DUMMY_MONITOR);
- dbh = pdb.open(TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
+ dbh = pdb.open(TaskMonitor.DUMMY);
tables = dbh.getTables();
Arrays.sort(tables, new TableNameComparator());
}
diff --git a/Ghidra/Features/FunctionGraph/src/test.slow/java/ghidra/app/plugin/core/functiongraph/FunctionGraphPlugin1Test.java b/Ghidra/Features/FunctionGraph/src/test.slow/java/ghidra/app/plugin/core/functiongraph/FunctionGraphPlugin1Test.java
index c30e7044b1..1eac8cd1cd 100644
--- a/Ghidra/Features/FunctionGraph/src/test.slow/java/ghidra/app/plugin/core/functiongraph/FunctionGraphPlugin1Test.java
+++ b/Ghidra/Features/FunctionGraph/src/test.slow/java/ghidra/app/plugin/core/functiongraph/FunctionGraphPlugin1Test.java
@@ -87,7 +87,7 @@ public class FunctionGraphPlugin1Test extends AbstractFunctionGraphTest {
// long startTime = System.nanoTime();
// BasicBlockModel blockModel = new BasicBlockModel(cppProgram, false);
// CodeBlockIterator iterator =
-// blockModel.getCodeBlocksContaining(function.getBody(), TaskMonitorAdapter.DUMMY_MONITOR);
+// blockModel.getCodeBlocksContaining(function.getBody(), TaskMonitor.DUMMY);
// while (iterator.hasNext()) {
// iterator.next();
// }
diff --git a/Ghidra/Features/FunctionID/ghidra_scripts/RepackFid.java b/Ghidra/Features/FunctionID/ghidra_scripts/RepackFid.java
index 35efc67826..39ef3ca978 100644
--- a/Ghidra/Features/FunctionID/ghidra_scripts/RepackFid.java
+++ b/Ghidra/Features/FunctionID/ghidra_scripts/RepackFid.java
@@ -18,16 +18,12 @@
import java.io.File;
import java.io.IOException;
-import db.DBHandle;
-import db.DBRecord;
-import db.RecordIterator;
-import db.Schema;
-import db.Table;
+import db.*;
import ghidra.app.script.GhidraScript;
import ghidra.framework.store.db.PackedDBHandle;
import ghidra.framework.store.db.PackedDatabase;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class RepackFid extends GhidraScript {
@@ -61,8 +57,8 @@ public class RepackFid extends GhidraScript {
protected void run() throws Exception {
File file = askFile("Select FID database file to repack","OK");
PackedDatabase pdb;
- pdb = PackedDatabase.getPackedDatabase(file, false, TaskMonitorAdapter.DUMMY_MONITOR);
- DBHandle handle = pdb.open(TaskMonitorAdapter.DUMMY_MONITOR);
+ pdb = PackedDatabase.getPackedDatabase(file, false, TaskMonitor.DUMMY);
+ DBHandle handle = pdb.open(TaskMonitor.DUMMY);
File saveFile = askFile("Select name for copy","OK");
PackedDBHandle newHandle = new PackedDBHandle(pdb.getContentType());
@@ -72,7 +68,7 @@ public class RepackFid extends GhidraScript {
copyTable(tables[i],newHandle);
newHandle.endTransaction(transactionID, true);
}
- newHandle.saveAs(pdb.getContentType(), saveFile.getParentFile(),saveFile.getName(), TaskMonitorAdapter.DUMMY_MONITOR);
+ newHandle.saveAs(pdb.getContentType(), saveFile.getParentFile(),saveFile.getName(), TaskMonitor.DUMMY);
newHandle.close();
}
}
diff --git a/Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FidDB.java b/Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FidDB.java
index 21780bbeb0..73f0cc311b 100644
--- a/Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FidDB.java
+++ b/Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FidDB.java
@@ -132,11 +132,11 @@ public class FidDB implements Closeable {
private DBHandle openPackedDatabase() throws IOException {
try {
PackedDatabase pdb = PackedDatabase.getPackedDatabase(fidFile.getFile(), false,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
if (openForUpdate) {
- return pdb.openForUpdate(TaskMonitorAdapter.DUMMY_MONITOR);
+ return pdb.openForUpdate(TaskMonitor.DUMMY);
}
- return pdb.open(TaskMonitorAdapter.DUMMY_MONITOR);
+ return pdb.open(TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// using dummy monitor - can't happen
diff --git a/Ghidra/Features/ProgramDiff/src/test.slow/java/ghidra/app/plugin/core/diff/DiffOverlayApplyTest.java b/Ghidra/Features/ProgramDiff/src/test.slow/java/ghidra/app/plugin/core/diff/DiffOverlayApplyTest.java
index 25b5a22204..b290f37eec 100644
--- a/Ghidra/Features/ProgramDiff/src/test.slow/java/ghidra/app/plugin/core/diff/DiffOverlayApplyTest.java
+++ b/Ghidra/Features/ProgramDiff/src/test.slow/java/ghidra/app/plugin/core/diff/DiffOverlayApplyTest.java
@@ -28,7 +28,7 @@ import ghidra.program.model.mem.Memory;
import ghidra.program.model.mem.MemoryBlock;
import ghidra.program.util.DiffUtility;
import ghidra.test.ClassicSampleX86ProgramBuilder;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class DiffOverlayApplyTest extends DiffApplyTestAdapter {
@@ -50,7 +50,7 @@ public class DiffOverlayApplyTest extends DiffApplyTestAdapter {
MemoryBlock dataBlock1 = memory1.getBlock(".data");
MemoryBlock overlayBlock1 =
memory1.createInitializedBlock("OVL1", dataBlock1.getStart(), 0x20L, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, true);
+ TaskMonitor.DUMMY, true);
assertEquals(3, p1.getAddressFactory().getNumAddressSpaces()); // ram, OTHER, OVL1
AddressSet addressSet1 = new AddressSet(overlayBlock1.getStart(), overlayBlock1.getEnd());
@@ -77,7 +77,7 @@ public class DiffOverlayApplyTest extends DiffApplyTestAdapter {
MemoryBlock dataBlock2 = memory2.getBlock(".data");
MemoryBlock overlayBlock2 =
memory2.createInitializedBlock("OVL1", dataBlock2.getStart(), 0x20L, (byte) 0,
- TaskMonitorAdapter.DUMMY_MONITOR, true);
+ TaskMonitor.DUMMY, true);
assertEquals(3, p2.getAddressFactory().getNumAddressSpaces());
AddressSet addressSet2 = DiffUtility.getCompatibleAddressSet(addressSet1, p2);
diff --git a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/MarkupItemImpl.java b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/MarkupItemImpl.java
index 9e3e21b4ff..7a3bc379b3 100644
--- a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/MarkupItemImpl.java
+++ b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/MarkupItemImpl.java
@@ -17,6 +17,9 @@ package ghidra.feature.vt.api.impl;
import static ghidra.feature.vt.api.main.VTMarkupItemDestinationAddressEditStatus.*;
import static ghidra.feature.vt.api.main.VTMarkupItemStatus.*;
+
+import java.util.Collection;
+
import ghidra.feature.vt.api.db.VTAssociationDB;
import ghidra.feature.vt.api.db.VTSessionDB;
import ghidra.feature.vt.api.main.*;
@@ -29,9 +32,7 @@ import ghidra.program.model.address.Address;
import ghidra.program.util.ProgramLocation;
import ghidra.util.SystemUtilities;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
-
-import java.util.Collection;
+import ghidra.util.task.TaskMonitor;
public class MarkupItemImpl implements VTMarkupItem {
private VTMarkupType markupType;
@@ -128,7 +129,7 @@ public class MarkupItemImpl implements VTMarkupItem {
gettingStatus = true;
boolean conflictsWithOtherMarkup =
getMarkupType().conflictsWithOtherMarkup(this,
- getAssociation().getMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR));
+ getAssociation().getMarkupItems(TaskMonitor.DUMMY));
if (conflictsWithOtherMarkup) {
return CONFLICT;
}
@@ -309,7 +310,7 @@ public class MarkupItemImpl implements VTMarkupItem {
VTAssociationStatus associationStatus = association.getStatus();
try {
Collection markupItems =
- association.getMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ association.getMarkupItems(TaskMonitor.DUMMY);
return associationStatus.canApply() && getStatus().isAppliable() &&
!markupType.conflictsWithOtherMarkup(this, markupItems);
}
@@ -352,7 +353,7 @@ public class MarkupItemImpl implements VTMarkupItem {
VTAssociation association = markupItemStorage.getAssociation();
Collection markupItems;
try {
- markupItems = association.getMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ markupItems = association.getMarkupItems(TaskMonitor.DUMMY);
for (VTMarkupItem currentMarkupItem : markupItems) {
if (currentMarkupItem == this) {
continue;
diff --git a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/MarkupItemManagerImpl.java b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/MarkupItemManagerImpl.java
index c363851d68..d1f1778b69 100644
--- a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/MarkupItemManagerImpl.java
+++ b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/MarkupItemManagerImpl.java
@@ -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.
@@ -91,7 +90,7 @@ public class MarkupItemManagerImpl {
// will be speedy. If this is found to be false, then we need to take a
// monitor into this method.
Collection databaseMarkupItems =
- associationDBM.getAppliedMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR, association);
+ associationDBM.getAppliedMarkupItems(TaskMonitor.DUMMY, association);
for (MarkupItemStorageDB appliedItem : databaseMarkupItems) {
VTMarkupItemStatus status = appliedItem.getStatus();
if (status.isUnappliable()) {
diff --git a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/markuptype/CommentMarkupType.java b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/markuptype/CommentMarkupType.java
index ba598d4863..c71c0e9692 100644
--- a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/markuptype/CommentMarkupType.java
+++ b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/markuptype/CommentMarkupType.java
@@ -34,7 +34,7 @@ import ghidra.program.util.ProgramLocation;
import ghidra.util.StringUtilities;
import ghidra.util.SystemUtilities;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public abstract class CommentMarkupType extends VTMarkupType {
@@ -206,7 +206,7 @@ public abstract class CommentMarkupType extends VTMarkupType {
Stringable appliedMarkupOriginalValue = null;
try {
appliedMarkupOriginalValue = getOriginalDestinationValueForAppliedMarkupOfThisType(
- association, destinationAddress, TaskMonitorAdapter.DUMMY_MONITOR);
+ association, destinationAddress, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// For now this shouldn't get a cancel.
diff --git a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/markuptype/LabelMarkupType.java b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/markuptype/LabelMarkupType.java
index fb614c0cf5..e784d2afe8 100644
--- a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/markuptype/LabelMarkupType.java
+++ b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/markuptype/LabelMarkupType.java
@@ -35,7 +35,7 @@ import ghidra.program.util.LabelFieldLocation;
import ghidra.program.util.ProgramLocation;
import ghidra.util.SystemUtilities;
import ghidra.util.exception.*;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class LabelMarkupType extends VTMarkupType {
@@ -346,7 +346,7 @@ public class LabelMarkupType extends VTMarkupType {
Stringable appliedMarkupOriginalValue = null;
try {
appliedMarkupOriginalValue = getOriginalDestinationValueForAppliedMarkupOfThisType(
- association, destinationAddress, TaskMonitorAdapter.DUMMY_MONITOR);
+ association, destinationAddress, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// For now this shouldn't get a cancel.
diff --git a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/provider/impliedmatches/MatchStatusUpdaterAssociationHook.java b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/provider/impliedmatches/MatchStatusUpdaterAssociationHook.java
index 8ce010405d..b8cf7cb128 100644
--- a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/provider/impliedmatches/MatchStatusUpdaterAssociationHook.java
+++ b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/provider/impliedmatches/MatchStatusUpdaterAssociationHook.java
@@ -15,6 +15,9 @@
*/
package ghidra.feature.vt.gui.provider.impliedmatches;
+import java.util.Collection;
+import java.util.List;
+
import ghidra.feature.vt.api.main.*;
import ghidra.feature.vt.gui.plugin.VTController;
import ghidra.feature.vt.gui.plugin.VTControllerListener;
@@ -22,10 +25,7 @@ import ghidra.feature.vt.gui.util.MatchInfo;
import ghidra.framework.model.DomainObjectChangedEvent;
import ghidra.framework.options.Options;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
-
-import java.util.Collection;
-import java.util.List;
+import ghidra.util.task.TaskMonitor;
public class MatchStatusUpdaterAssociationHook implements AssociationHook, VTControllerListener {
@@ -82,12 +82,12 @@ public class MatchStatusUpdaterAssociationHook implements AssociationHook, VTCon
// MatchInfo matchInfo = controller.getMatchInfo(matches.get(0));
// Collection markupItems =
-// matchInfo.getAppliableMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+// matchInfo.getAppliableMarkupItems(TaskMonitor.DUMMY);
Collection markupItems;
try {
markupItems =
- matches.get(0).getAssociation().getMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ matches.get(0).getAssociation().getMarkupItems(TaskMonitor.DUMMY);
VTAssociationMarkupStatus markupItemsStatus = getAppliedMarkupStatus(markupItems);
association.setMarkupStatus(markupItemsStatus);
}
diff --git a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/util/MatchInfo.java b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/util/MatchInfo.java
index 3b02a00a9e..72e06a3f72 100644
--- a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/util/MatchInfo.java
+++ b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/util/MatchInfo.java
@@ -212,7 +212,7 @@ public class MatchInfo {
try {
correlatedDestinationRange =
addressTranslator.getCorrelatedDestinationRange(sourceAddress,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// check for null below
diff --git a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/VTMatchApplyFunctionSignatureTest.java b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/VTMatchApplyFunctionSignatureTest.java
index 2a266b7417..8441f88566 100644
--- a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/VTMatchApplyFunctionSignatureTest.java
+++ b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/VTMatchApplyFunctionSignatureTest.java
@@ -105,7 +105,7 @@ public class VTMatchApplyFunctionSignatureTest extends AbstractGhidraHeadedInteg
// try {
// correlator =
// vtTestEnv.correlate(new ExactMatchInstructionsProgramCorrelatorFactory(), null,
-// TaskMonitorAdapter.DUMMY_MONITOR);
+// TaskMonitor.DUMMY);
// }
// catch (Exception e) {
// Assert.fail(e.getMessage());
@@ -1637,7 +1637,7 @@ public class VTMatchApplyFunctionSignatureTest extends AbstractGhidraHeadedInteg
private VTMarkupItem getFunctionSignatureMarkup(VTMatch match) {
MatchInfo matchInfo = controller.getMatchInfo(match);
Collection appliableMarkupItems =
- matchInfo.getAppliableMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ matchInfo.getAppliableMarkupItems(TaskMonitor.DUMMY);
for (VTMarkupItem vtMarkupItem : appliableMarkupItems) {
if (vtMarkupItem.getMarkupType() instanceof FunctionSignatureMarkupType) {
return vtMarkupItem;
@@ -1744,7 +1744,7 @@ public class VTMatchApplyFunctionSignatureTest extends AbstractGhidraHeadedInteg
}
}
assertNotNull(compilerSpecID);
- program.setLanguage(language, compilerSpecID, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ program.setLanguage(language, compilerSpecID, true, TaskMonitor.DUMMY);
}
finally {
program.endTransaction(transaction, true);
diff --git a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/VTMatchApplyTest.java b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/VTMatchApplyTest.java
index 875845305e..3a4bb2f60e 100644
--- a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/VTMatchApplyTest.java
+++ b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/VTMatchApplyTest.java
@@ -433,7 +433,7 @@ public class VTMatchApplyTest extends AbstractGhidraHeadedIntegrationTest {
// Now test the unapply
//
ClearMatchTask unapplyTask = new ClearMatchTask(controller, matches);
- unapplyTask.run(TaskMonitorAdapter.DUMMY_MONITOR);
+ unapplyTask.run(TaskMonitor.DUMMY);
newSymbols = symbolTable.getSymbols(labelAddress);
expectedSymbols = new Symbol[] { destinationSymbol1 };
assertTrue("New label does not match the source label",
@@ -1064,7 +1064,7 @@ public class VTMatchApplyTest extends AbstractGhidraHeadedIntegrationTest {
MatchInfo matchInfo = controller.getMatchInfo(match);
Collection markupItems =
- matchInfo.getAppliableMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ matchInfo.getAppliableMarkupItems(TaskMonitor.DUMMY);
List itemsToApply = new ArrayList<>();
for (VTMarkupItem item : markupItems) {
diff --git a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/markupitem/ForceApplyOfExcludedMarkupTest.java b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/markupitem/ForceApplyOfExcludedMarkupTest.java
index ccb5701821..7c49e897b2 100644
--- a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/markupitem/ForceApplyOfExcludedMarkupTest.java
+++ b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/markupitem/ForceApplyOfExcludedMarkupTest.java
@@ -32,7 +32,7 @@ import ghidra.framework.options.ToolOptions;
import ghidra.program.model.address.Address;
import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.SourceType;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class ForceApplyOfExcludedMarkupTest extends AbstractFunctionSignatureMarkupTest {
@@ -274,7 +274,7 @@ public class ForceApplyOfExcludedMarkupTest extends AbstractFunctionSignatureMar
protected VTMarkupItem getFunctionNameMarkup(VTMatch match) {
MatchInfo matchInfo = controller.getMatchInfo(match);
Collection appliableMarkupItems =
- matchInfo.getAppliableMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ matchInfo.getAppliableMarkupItems(TaskMonitor.DUMMY);
for (VTMarkupItem vtMarkupItem : appliableMarkupItems) {
if (vtMarkupItem.getMarkupType() instanceof FunctionNameMarkupType) {
return vtMarkupItem;
@@ -296,7 +296,7 @@ public class ForceApplyOfExcludedMarkupTest extends AbstractFunctionSignatureMar
protected VTMarkupItem getCommentMarkup(VTMatch match, int commentType) {
MatchInfo matchInfo = controller.getMatchInfo(match);
Collection appliableMarkupItems =
- matchInfo.getAppliableMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ matchInfo.getAppliableMarkupItems(TaskMonitor.DUMMY);
for (VTMarkupItem vtMarkupItem : appliableMarkupItems) {
switch (commentType) {
case CodeUnit.PLATE_COMMENT:
diff --git a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/markupitem/FunctionSignatureMarkupOptionsTest.java b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/markupitem/FunctionSignatureMarkupOptionsTest.java
index bdcd7948ba..0e21395729 100644
--- a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/markupitem/FunctionSignatureMarkupOptionsTest.java
+++ b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/api/markupitem/FunctionSignatureMarkupOptionsTest.java
@@ -22,7 +22,8 @@ import java.util.List;
import org.junit.Test;
-import ghidra.feature.vt.api.main.*;
+import ghidra.feature.vt.api.main.VTMarkupItem;
+import ghidra.feature.vt.api.main.VTMarkupItemStatus;
import ghidra.feature.vt.api.markuptype.FunctionSignatureMarkupType;
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.*;
import ghidra.framework.options.ToolOptions;
@@ -32,7 +33,7 @@ import ghidra.program.model.lang.*;
import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.SourceType;
import ghidra.program.util.DefaultLanguageService;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class FunctionSignatureMarkupOptionsTest extends AbstractFunctionSignatureMarkupTest {
@@ -795,7 +796,7 @@ private void setLanguage(Program program, String languageID, String compilerSpec
}
}
assertNotNull(compilerSpecID);
- program.setLanguage(language, compilerSpecID, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ program.setLanguage(language, compilerSpecID, true, TaskMonitor.DUMMY);
}
finally {
program.endTransaction(transaction, true);
diff --git a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/gui/provider/AbstractVTCorrelatorTest.java b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/gui/provider/AbstractVTCorrelatorTest.java
index df3f3cd0d2..c778c3fc25 100644
--- a/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/gui/provider/AbstractVTCorrelatorTest.java
+++ b/Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/gui/provider/AbstractVTCorrelatorTest.java
@@ -16,8 +16,7 @@
*/
package ghidra.feature.vt.gui.provider;
-import static ghidra.feature.vt.db.VTTestUtils.createProgramCorrelator;
-import static ghidra.feature.vt.db.VTTestUtils.createRandomMatch;
+import static ghidra.feature.vt.db.VTTestUtils.*;
import static org.junit.Assert.*;
import java.awt.Component;
@@ -56,7 +55,7 @@ import ghidra.util.HTMLUtilities;
import ghidra.util.Msg;
import ghidra.util.table.GhidraTable;
import ghidra.util.task.Task;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* An abstract class for Correlator Tests.
@@ -382,7 +381,7 @@ public abstract class AbstractVTCorrelatorTest extends AbstractGhidraHeadedInteg
*/
protected void runTask(Task task) throws Exception {
- task.run(TaskMonitorAdapter.DUMMY_MONITOR);
+ task.run(TaskMonitor.DUMMY);
destProg.flushEvents();
waitForSwing();
waitForTasks();
diff --git a/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/api/AbstractCorrelatorTest.java b/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/api/AbstractCorrelatorTest.java
index ef6b59aa76..a3ba617cf6 100644
--- a/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/api/AbstractCorrelatorTest.java
+++ b/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/api/AbstractCorrelatorTest.java
@@ -31,7 +31,7 @@ import ghidra.program.model.listing.*;
import ghidra.test.AbstractGhidraHeadedIntegrationTest;
import ghidra.test.TestEnv;
import ghidra.util.Msg;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public abstract class AbstractCorrelatorTest extends AbstractGhidraHeadedIntegrationTest {
@@ -100,7 +100,7 @@ public abstract class AbstractCorrelatorTest extends AbstractGhidraHeadedIntegra
options = factory.createDefaultOptions();
correlator = factory.createCorrelator(serviceProvider, sourceProgram,
sourceAddressSet, destinationProgram, destinationAddressSet, options);
- correlator.correlate(session, TaskMonitorAdapter.DUMMY_MONITOR);
+ correlator.correlate(session, TaskMonitor.DUMMY);
FunctionManager functionManager = sourceProgram.getFunctionManager();
FunctionIterator functions =
@@ -167,7 +167,7 @@ public abstract class AbstractCorrelatorTest extends AbstractGhidraHeadedIntegra
options = factory.createDefaultOptions();
correlator = factory.createCorrelator(serviceProvider, sourceProgram,
sourceAddressSet, destinationProgram, destinationAddressSet, options);
- correlator.correlate(session, TaskMonitorAdapter.DUMMY_MONITOR);
+ correlator.correlate(session, TaskMonitor.DUMMY);
HashMap mapCopy = new HashMap<>(map);
diff --git a/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/api/markupitem/AbstractVTMarkupItemTest.java b/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/api/markupitem/AbstractVTMarkupItemTest.java
index 16d1726a6d..d519225b8b 100644
--- a/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/api/markupitem/AbstractVTMarkupItemTest.java
+++ b/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/api/markupitem/AbstractVTMarkupItemTest.java
@@ -367,7 +367,7 @@ public abstract class AbstractVTMarkupItemTest extends AbstractGhidraHeadedInteg
// Association markupItemManger expects all markups to be generated though it.
// Call it to put it in a good state.
VTAssociation association = addedMatch.getAssociation();
- association.getMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ association.getMarkupItems(TaskMonitor.DUMMY);
return addedMatch;
}
diff --git a/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/db/UnappliedMarkupItemStorageDBTest.java b/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/db/UnappliedMarkupItemStorageDBTest.java
index 8d492c2139..b801595dc6 100644
--- a/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/db/UnappliedMarkupItemStorageDBTest.java
+++ b/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/db/UnappliedMarkupItemStorageDBTest.java
@@ -30,7 +30,7 @@ import ghidra.feature.vt.api.main.*;
import ghidra.feature.vt.api.markupitem.MarkupTypeTestStub;
import ghidra.program.model.address.Address;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class UnappliedMarkupItemStorageDBTest extends VTBaseTestCase {
@@ -236,7 +236,7 @@ public class UnappliedMarkupItemStorageDBTest extends VTBaseTestCase {
VTAssociationDB association = (VTAssociationDB) match.getAssociation();
Collection markupItems =
- association.getMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ association.getMarkupItems(TaskMonitor.DUMMY);
assertEquals(1, markupItems.size());
VTMarkupItem foundItem = markupItems.iterator().next();
Object storage = getInstanceField("markupItemStorage", foundItem);
@@ -257,7 +257,7 @@ public class UnappliedMarkupItemStorageDBTest extends VTBaseTestCase {
VTMarkupItem markupItem = createRandomMarkupItemStub(match);
VTAssociationDB association = (VTAssociationDB) match.getAssociation();
Collection markupItems =
- association.getMarkupItems(TaskMonitorAdapter.DUMMY_MONITOR);
+ association.getMarkupItems(TaskMonitor.DUMMY);
assertEquals(1, markupItems.size());
VTMarkupItem foundItem = markupItems.iterator().next();
Object storage = getInstanceField("markupItemStorage", foundItem);
diff --git a/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/db/VTSessionDBTest.java b/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/db/VTSessionDBTest.java
index 7d19f07a51..003030a648 100644
--- a/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/db/VTSessionDBTest.java
+++ b/Ghidra/Features/VersionTracking/src/test/java/ghidra/feature/vt/db/VTSessionDBTest.java
@@ -71,7 +71,7 @@ public class VTSessionDBTest extends VTBaseTestCase {
//
// GhidraProject project = GhidraProject.createProject( "C:\\Temp\\", "GhidrProject", true );
// DomainFolder rootFolder = project.getRootFolder();
-// DomainFile file = rootFolder.createFile( "foop", db, TaskMonitorAdapter.DUMMY_MONITOR );
+// DomainFile file = rootFolder.createFile( "foop", db, TaskMonitor.DUMMY );
//
// Program sourceProgram = db.getSourceProgram();
// Program destinationProgram = db.getDestinationProgram();
@@ -79,7 +79,7 @@ public class VTSessionDBTest extends VTBaseTestCase {
// db.close();
//
// DomainObject domainObject = file.getDomainObject( null, false, false,
-// TaskMonitorAdapter.DUMMY_MONITOR );
+// TaskMonitor.DUMMY );
// assertTrue( domainObject instanceof VTSessionDB );
// assertEquals( "foop", domainObject.getName() );
//
diff --git a/Ghidra/Framework/DB/src/main/java/db/buffers/LocalManagedBufferFile.java b/Ghidra/Framework/DB/src/main/java/db/buffers/LocalManagedBufferFile.java
index 622106525f..368ccce17f 100644
--- a/Ghidra/Framework/DB/src/main/java/db/buffers/LocalManagedBufferFile.java
+++ b/Ghidra/Framework/DB/src/main/java/db/buffers/LocalManagedBufferFile.java
@@ -607,7 +607,7 @@ public class LocalManagedBufferFile extends LocalBufferFile implements ManagedBu
@Override
public synchronized ManagedBufferFile getSaveFile() throws IOException {
try {
- return getSaveFile(TaskMonitorAdapter.DUMMY_MONITOR);
+ return getSaveFile(TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// unexpected
diff --git a/Ghidra/Framework/DB/src/test/java/db/TableTest.java b/Ghidra/Framework/DB/src/test/java/db/TableTest.java
index 02fa5ca9f6..3b6833d4fd 100644
--- a/Ghidra/Framework/DB/src/test/java/db/TableTest.java
+++ b/Ghidra/Framework/DB/src/test/java/db/TableTest.java
@@ -25,7 +25,7 @@ import org.junit.Before;
import org.junit.Test;
import generic.test.AbstractGenericTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class TableTest extends AbstractGenericTest {
@@ -334,7 +334,7 @@ public class TableTest extends AbstractGenericTest {
verifyRangeDoesNotExist(startKey, endKey);
verifyRecordsBeforeAndAfterExist(startKey, endKey);
- assertTrue(table.isConsistent(TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(table.isConsistent(TaskMonitor.DUMMY));
}
private void verifyRangeDoesNotExist(int startKey, int endKey) throws IOException {
diff --git a/Ghidra/Framework/DB/src/test/java/db/buffers/VersionedLocalBufferFileTest.java b/Ghidra/Framework/DB/src/test/java/db/buffers/VersionedLocalBufferFileTest.java
index f9c227f428..d474ca7168 100644
--- a/Ghidra/Framework/DB/src/test/java/db/buffers/VersionedLocalBufferFileTest.java
+++ b/Ghidra/Framework/DB/src/test/java/db/buffers/VersionedLocalBufferFileTest.java
@@ -23,7 +23,7 @@ import java.util.Arrays;
import org.junit.*;
import generic.test.AbstractGenericTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import utilities.util.FileUtilities;
public class VersionedLocalBufferFileTest extends AbstractGenericTest {
@@ -205,7 +205,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
// Simulate private checkout
pbf = new LocalManagedBufferFile(vbf.getBufferSize(), privateTestFileMgr, PRIVATE);
- LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitor.DUMMY);
assertEquals(indexCnt, pbf.getIndexCount());
assertTrue(Arrays.equals(freeList, pbf.getFreeIndexes()));
@@ -392,7 +392,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
pbf = new LocalManagedBufferFile(privateTestFileMgr, false, -1, PRIVATE);
// Create version-2 using quick update
- pbf.createNewVersion(vbf, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ pbf.createNewVersion(vbf, null, TaskMonitor.DUMMY);
vbf.close();
vbf = null;
@@ -625,7 +625,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
privateTestFileMgr = new PrivateTestFileMgr(2);
vbf = new LocalManagedBufferFile(versionedTestFileMgr, 1, -1);
pbf = new LocalManagedBufferFile(vbf.getBufferSize(), privateTestFileMgr, PRIVATE);
- LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitor.DUMMY);
vbf.close();
vbf = null;
@@ -690,7 +690,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
pbf = new LocalManagedBufferFile(privateTestFileMgr, true, -1, -1);
// Perform quick update of private file to replicate version-2 file - should wipe-out all private changes
- pbf.updateFrom(vbf, 1, TaskMonitorAdapter.DUMMY_MONITOR);
+ pbf.updateFrom(vbf, 1, TaskMonitor.DUMMY);
pbf.close();
pbf = null;
@@ -763,7 +763,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
privateTestFileMgr = new PrivateTestFileMgr(2);
vbf = new LocalManagedBufferFile(versionedTestFileMgr, 1, -1);
pbf = new LocalManagedBufferFile(vbf.getBufferSize(), privateTestFileMgr, PRIVATE);
- LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitor.DUMMY);
vbf.close();
vbf = null;
@@ -833,7 +833,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
pbf = new LocalManagedBufferFile(privateTestFileMgr, true, -1, -1);
// Perform quick update of private file to replicate version-2 file - should wipe-out all private changes
- pbf.updateFrom(vbf, 1, TaskMonitorAdapter.DUMMY_MONITOR);
+ pbf.updateFrom(vbf, 1, TaskMonitor.DUMMY);
pbf.close();
pbf = null;
@@ -906,7 +906,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
privateTestFileMgr = new PrivateTestFileMgr(2);
vbf = new LocalManagedBufferFile(versionedTestFileMgr, 1, -1);
pbf = new LocalManagedBufferFile(vbf.getBufferSize(), privateTestFileMgr, PRIVATE);
- LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitor.DUMMY);
vbf.close();
vbf = null;
@@ -966,7 +966,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
pbf = new LocalManagedBufferFile(privateTestFileMgr, true, -1, -1);
// Perform quick update of private file to replicate version-2 file - should wipe-out all private changes
- pbf.updateFrom(vbf, 1, TaskMonitorAdapter.DUMMY_MONITOR);
+ pbf.updateFrom(vbf, 1, TaskMonitor.DUMMY);
pbf.close();
pbf = null;
@@ -1039,7 +1039,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
privateTestFileMgr = new PrivateTestFileMgr(2);
vbf = new LocalManagedBufferFile(versionedTestFileMgr, 1, -1);
pbf = new LocalManagedBufferFile(vbf.getBufferSize(), privateTestFileMgr, PRIVATE);
- LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ LocalBufferFile.copyFile(vbf, pbf, null, TaskMonitor.DUMMY);
vbf.close();
vbf = null;
@@ -1101,7 +1101,7 @@ public class VersionedLocalBufferFileTest extends AbstractGenericTest {
pbf = new LocalManagedBufferFile(privateTestFileMgr, true, -1, -1);
// Perform quick update of private file to replicate version-3 file - should wipe-out all private changes
- pbf.updateFrom(vbf, 1, TaskMonitorAdapter.DUMMY_MONITOR);
+ pbf.updateFrom(vbf, 1, TaskMonitor.DUMMY);
pbf.close();
pbf = null;
diff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/threaded/ThreadedTableModelUpdateMgr.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/threaded/ThreadedTableModelUpdateMgr.java
index 2aba07f810..84ed1fae66 100644
--- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/threaded/ThreadedTableModelUpdateMgr.java
+++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/threaded/ThreadedTableModelUpdateMgr.java
@@ -70,7 +70,7 @@ class ThreadedTableModelUpdateMgr {
SystemUtilities.assertTrue(this.monitor.isCancelEnabled(),
"In order for this update manager to work correctly " +
"the given task monitor must be cancel enabled (e.g., you cannot use " +
- "the TaskMonitorAdapter.DUMMY_MONITOR, as that is not cancelleable)");
+ "the TaskMonitor.DUMMY, as that is not cancelleable)");
addRemoveUpdater = new SwingUpdateManager(DELAY, MAX_DELAY, () -> processAddRemoveItems());
diff --git a/Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/db/PackedDatabase.java b/Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/db/PackedDatabase.java
index 7c52469008..daad3d8b95 100644
--- a/Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/db/PackedDatabase.java
+++ b/Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/db/PackedDatabase.java
@@ -510,7 +510,7 @@ public class PackedDatabase extends Database {
private static void refreshDatabase(BufferFileManager bfMgr, long checkinId,
ResourceFile packedFile, TaskMonitor monitor) throws IOException, CancelledException {
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
int version = bfMgr.getCurrentVersion() + 1; // should be 1 in most situations
File file = bfMgr.getBufferFile(version);
@@ -668,7 +668,7 @@ public class PackedDatabase extends Database {
TaskMonitor monitor) throws IOException, CancelledException {
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
monitor.setMessage("Packing file...");
@@ -703,7 +703,7 @@ public class PackedDatabase extends Database {
throw new IOException("Update not allowed");
}
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
monitor.setMessage("Waiting...");
if (packedDbLock != null) {
@@ -780,7 +780,7 @@ public class PackedDatabase extends Database {
}
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
if (!refreshUnpacking(monitor)) {
@@ -806,7 +806,7 @@ public class PackedDatabase extends Database {
}
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
lock(updateLock, false, true);
diff --git a/Ghidra/Framework/FileSystem/src/test.slow/java/db/buffers/RecoveryFileTest.java b/Ghidra/Framework/FileSystem/src/test.slow/java/db/buffers/RecoveryFileTest.java
index 98bc473cc4..8a6254dfc0 100644
--- a/Ghidra/Framework/FileSystem/src/test.slow/java/db/buffers/RecoveryFileTest.java
+++ b/Ghidra/Framework/FileSystem/src/test.slow/java/db/buffers/RecoveryFileTest.java
@@ -15,8 +15,7 @@
*/
package db.buffers;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
@@ -27,7 +26,7 @@ import db.DBFileListener;
import db.Database;
import generic.test.AbstractGenericTest;
import ghidra.framework.store.db.PrivateDatabase;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import utilities.util.FileUtilities;
/**
@@ -103,7 +102,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
bufferMgr.releaseBuffer(buf);
}
- bufferMgr.saveAs(bf, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ bufferMgr.saveAs(bf, true, TaskMonitor.DUMMY);
// Grow file if requested
int modCnt = 0;
@@ -118,7 +117,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
System.out.println("Added " + modCnt + " buffers");
bufferMgr.checkpoint();
- bufferMgr.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR);
+ bufferMgr.takeRecoverySnapshot(null, TaskMonitor.DUMMY);
assertTrue(RecoveryMgr.canRecover(bf));
@@ -140,7 +139,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
System.out.println("Modified " + modCnt + " buffers");
bufferMgr.checkpoint();
- bufferMgr.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR);
+ bufferMgr.takeRecoverySnapshot(null, TaskMonitor.DUMMY);
assertTrue(RecoveryMgr.canRecover(bf));
@@ -154,7 +153,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
System.out.println("Modified " + modCnt + " buffers");
bufferMgr.checkpoint();
- assertTrue(bufferMgr.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(bufferMgr.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
assertTrue(RecoveryMgr.canRecover(bf));
@@ -168,7 +167,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
System.out.println("Modified " + modCnt + " buffers");
bufferMgr.checkpoint();
- assertTrue(bufferMgr.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(bufferMgr.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
assertTrue(RecoveryMgr.canRecover(bf));
@@ -209,7 +208,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
bufferMgr2 = new BufferMgr(bf2);
- assertTrue(bufferMgr2.recover(TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(bufferMgr2.recover(TaskMonitor.DUMMY));
assertTrue(bufferMgr2.canSave());
@@ -271,11 +270,11 @@ public class RecoveryFileTest extends AbstractGenericTest {
bufferMgr2 = new BufferMgr(bf2);
- assertTrue(bufferMgr2.recover(TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(bufferMgr2.recover(TaskMonitor.DUMMY));
assertTrue(bufferMgr2.canSave());
- bufferMgr2.save(null, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ bufferMgr2.save(null, null, TaskMonitor.DUMMY);
// Open saved file and check content
@@ -331,7 +330,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
bufferMgr.undo(true);
- assertTrue(bufferMgr.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(bufferMgr.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
PrivateDatabase pdb = new PrivateDatabase(testDir);
pdb.refresh();
@@ -346,7 +345,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
bufferMgr2 = new BufferMgr(bf2);
- assertTrue(bufferMgr2.recover(TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(bufferMgr2.recover(TaskMonitor.DUMMY));
assertTrue(bufferMgr2.canSave());
@@ -402,7 +401,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
bufferMgr.undo(true);
bufferMgr.undo(true);
- assertTrue(bufferMgr.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(bufferMgr.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
PrivateDatabase pdb = new PrivateDatabase(testDir);
pdb.refresh();
@@ -417,7 +416,7 @@ public class RecoveryFileTest extends AbstractGenericTest {
bufferMgr2 = new BufferMgr(bf2);
- assertTrue(bufferMgr2.recover(TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(bufferMgr2.recover(TaskMonitor.DUMMY));
assertTrue(bufferMgr2.canSave());
diff --git a/Ghidra/Framework/FileSystem/src/test/java/db/RecoveryDBTest.java b/Ghidra/Framework/FileSystem/src/test/java/db/RecoveryDBTest.java
index fb447ae6a2..bbd99b5823 100644
--- a/Ghidra/Framework/FileSystem/src/test/java/db/RecoveryDBTest.java
+++ b/Ghidra/Framework/FileSystem/src/test/java/db/RecoveryDBTest.java
@@ -26,7 +26,7 @@ import generic.test.AbstractGenericTest;
import ghidra.framework.store.DatabaseItem;
import ghidra.framework.store.FolderItem;
import ghidra.framework.store.local.LocalFileSystem;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import utilities.util.FileUtilities;
public class RecoveryDBTest extends AbstractGenericTest {
@@ -88,14 +88,14 @@ public class RecoveryDBTest extends AbstractGenericTest {
DBHandle dbh = new DBHandle(BUFFER_SIZE);
BufferFile bf =
fileSystem.createDatabase("/", "testDb", null, "Test", dbh.getBufferSize(), null, null);
- dbh.saveAs(bf, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh.saveAs(bf, true, TaskMonitor.DUMMY);
dbh.close();
bf.dispose();
DatabaseItem dbItem = (DatabaseItem) fileSystem.getItem("/", "testDb");
assertTrue(!dbItem.canRecover());
bf = dbItem.openForUpdate(FolderItem.DEFAULT_CHECKOUT_ID);
- dbh = new DBHandle(bf, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh = new DBHandle(bf, true, TaskMonitor.DUMMY);
long txId = dbh.startTransaction();
Table table1 = dbh.createTable("table1", SCHEMA);
@@ -106,7 +106,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
tableDelete(table1, initialRecCnt, 0, 2);
dbh.endTransaction(txId, true);
- assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
txId = dbh.startTransaction();
Table table2 = dbh.createTable("table2", SCHEMA);
@@ -117,7 +117,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
tableDelete(table2, initialRecCnt, 0, 2);
dbh.endTransaction(txId, true);
- assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
return dbh;
}
@@ -145,7 +145,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
DatabaseItem dbItem = (DatabaseItem) fileSystem.getItem("/", "testDb");
assertTrue(dbItem.canRecover());
BufferFile bf = dbItem.openForUpdate(FolderItem.DEFAULT_CHECKOUT_ID);
- dbh2 = new DBHandle(bf, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh2 = new DBHandle(bf, true, TaskMonitor.DUMMY);
Table table1 = dbh2.getTable("table1");
assertNotNull(table1);
@@ -195,12 +195,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
assertTrue(dbh.undo());
assertTrue(dbh.undo());
- assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
DatabaseItem dbItem = (DatabaseItem) fileSystem.getItem("/", "testDb");
assertTrue(dbItem.canRecover());
BufferFile bf = dbItem.openForUpdate(FolderItem.DEFAULT_CHECKOUT_ID);
- dbh2 = new DBHandle(bf, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh2 = new DBHandle(bf, true, TaskMonitor.DUMMY);
Table table1 = dbh2.getTable("table1");
assertNotNull(table1);
@@ -240,19 +240,19 @@ public class RecoveryDBTest extends AbstractGenericTest {
assertTrue(dbh.undo());
assertTrue(dbh.undo());
- assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
assertTrue(dbh.redo());
assertTrue(dbh.redo());
- assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitorAdapter.DUMMY_MONITOR));
+ assertTrue(dbh.takeRecoverySnapshot(null, TaskMonitor.DUMMY));
assertNotNull(dbh.getTable("table2"));
DatabaseItem dbItem = (DatabaseItem) fileSystem.getItem("/", "testDb");
assertTrue(dbItem.canRecover());
BufferFile bf = dbItem.openForUpdate(FolderItem.DEFAULT_CHECKOUT_ID);
- dbh2 = new DBHandle(bf, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh2 = new DBHandle(bf, true, TaskMonitor.DUMMY);
Table table1 = dbh2.getTable("table1");
assertNotNull(table1);
@@ -301,9 +301,9 @@ public class RecoveryDBTest extends AbstractGenericTest {
DatabaseItem dbItem = (DatabaseItem) fileSystem.getItem("/", "testDb");
assertTrue(dbItem.canRecover());
BufferFile bf = dbItem.openForUpdate(FolderItem.DEFAULT_CHECKOUT_ID);
- dbh2 = new DBHandle(bf, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh2 = new DBHandle(bf, true, TaskMonitor.DUMMY);
- dbh2.save(null, null, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh2.save(null, null, TaskMonitor.DUMMY);
dbh2.close();
assertTrue(!dbItem.canRecover());
diff --git a/Ghidra/Framework/FileSystem/src/test/java/ghidra/framework/store/db/PackedDatabaseTest.java b/Ghidra/Framework/FileSystem/src/test/java/ghidra/framework/store/db/PackedDatabaseTest.java
index 2e789d4519..1452545835 100644
--- a/Ghidra/Framework/FileSystem/src/test/java/ghidra/framework/store/db/PackedDatabaseTest.java
+++ b/Ghidra/Framework/FileSystem/src/test/java/ghidra/framework/store/db/PackedDatabaseTest.java
@@ -27,7 +27,7 @@ import db.buffers.BufferFile;
import db.buffers.LocalBufferFile;
import generic.jar.ResourceFile;
import generic.test.AbstractGenericTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import utilities.util.FileUtilities;
public class PackedDatabaseTest extends AbstractGenericTest {
@@ -107,7 +107,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(packedDbFile.exists());
// Open packed db as read-only and verify content
- db = PackedDatabase.getPackedDatabase(packedDbFile, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(packedDbFile, TaskMonitor.DUMMY);
assertEquals("MyContent", db.getContentType());
dbh = (PackedDBHandle) db.open(null);
@@ -133,7 +133,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
db.dispose();
// open for update
- db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitor.DUMMY);
dbh = (PackedDBHandle) db.openForUpdate(null);
// add record - hold for update
@@ -146,7 +146,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
dbh.save(null);
// Test concurrent access by another user
- db2 = PackedDatabase.getPackedDatabase(packedDbFile, TaskMonitorAdapter.DUMMY_MONITOR);
+ db2 = PackedDatabase.getPackedDatabase(packedDbFile, TaskMonitor.DUMMY);
assertEquals("MyContent", db2.getContentType());
// Second update access should fail
@@ -183,7 +183,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(packedDbFile.exists());
// Open packed db as read-only
- db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitor.DUMMY);
assertEquals("MyContent", db.getContentType());
dbh = (PackedDBHandle) db.open(null);
assertEquals(id, dbh.getDatabaseId());
@@ -205,7 +205,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
db.dispose();
// Open packed db as read-only
- db = PackedDatabase.getPackedDatabase(anotherNewFile, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(anotherNewFile, TaskMonitor.DUMMY);
assertEquals("MyContent", db.getContentType());
dbh = (PackedDBHandle) db.open(null);
assertEquals(newId, dbh.getDatabaseId());
@@ -228,7 +228,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(packedDbFile.exists());
// Open packed db as read-only and verify content
- db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitor.DUMMY);
File dbDir = (File) getInstanceField("dbDir", db);
File tmpDbDir = new File(dbDir.getParentFile(), dbDir.getName() + ".delete");
@@ -252,7 +252,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(packedDbFile.exists());
// Open packed db as read-only and verify content
- db = PackedDatabase.getPackedDatabase(packedDbFile, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(packedDbFile, TaskMonitor.DUMMY);
File dbDir = (File) getInstanceField("dbDir", db);
File tmpDbDir = new File(dbDir.getParentFile(), dbDir.getName() + ".delete");
@@ -276,11 +276,11 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(packedDbFile.exists());
// Open packed db as read-only and verify content
- db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitor.DUMMY);
File dbDir = (File) getInstanceField("dbDir", db);
File tmpDbDir = new File(dbDir.getParentFile(), dbDir.getName() + ".delete");
- dbh = (PackedDBHandle) db.open(TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh = (PackedDBHandle) db.open(TaskMonitor.DUMMY);
assertTrue(dbDir.isDirectory());
assertTrue(!tmpDbDir.exists());
@@ -311,10 +311,10 @@ public class PackedDatabaseTest extends AbstractGenericTest {
try {
// Open packed db as read-only and verify content
- db = PackedDatabase.getPackedDatabase(commaFile, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(commaFile, TaskMonitor.DUMMY);
File dbDir = (File) getInstanceField("dbDir", db);
- dbh = (PackedDBHandle) db.open(TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh = (PackedDBHandle) db.open(TaskMonitor.DUMMY);
assertTrue(dbDir.isDirectory());
assertTrue(cache.isInCache(dbFile));
@@ -325,7 +325,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(dbDir.exists());
assertTrue(cache.isInCache(dbFile));
- PackedDatabase cachedDB = cache.getCachedDB(dbFile, TaskMonitorAdapter.DUMMY_MONITOR);
+ PackedDatabase cachedDB = cache.getCachedDB(dbFile, TaskMonitor.DUMMY);
assertNotNull(cachedDB);
cachedDB.dispose();
@@ -333,8 +333,8 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(cache.isInCache(dbFile));
// reopen
- db = PackedDatabase.getPackedDatabase(commaFile, TaskMonitorAdapter.DUMMY_MONITOR);
- dbh = (PackedDBHandle) db.open(TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(commaFile, TaskMonitor.DUMMY);
+ dbh = (PackedDBHandle) db.open(TaskMonitor.DUMMY);
assertEquals(dbDir, getInstanceField("dbDir", db));
@@ -364,11 +364,11 @@ public class PackedDatabaseTest extends AbstractGenericTest {
try {
// Open packed db as read-only and verify content
- db = PackedDatabase.getPackedDatabase(packedDbFile, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(packedDbFile, TaskMonitor.DUMMY);
File dbDir = (File) getInstanceField("dbDir", db);
File tmpDbDir = new File(dbDir.getParentFile(), dbDir.getName() + ".delete");
- dbh = (PackedDBHandle) db.open(TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh = (PackedDBHandle) db.open(TaskMonitor.DUMMY);
assertTrue(dbDir.isDirectory());
assertTrue(!tmpDbDir.exists());
@@ -394,7 +394,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(packedDbFile.exists());
// Open packed db as read-only and verify content
- db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ db = PackedDatabase.getPackedDatabase(packedDbFile, true, TaskMonitor.DUMMY);
File dbDir = (File) getInstanceField("dbDir", db);
File tmpDbDir = new File(dbDir.getParentFile(), dbDir.getName() + ".delete");
@@ -405,13 +405,13 @@ public class PackedDatabaseTest extends AbstractGenericTest {
BufferFile bf = null;
- dbh = (PackedDBHandle) db.open(TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh = (PackedDBHandle) db.open(TaskMonitor.DUMMY);
assertTrue(dbDir.isDirectory());
assertTrue(!tmpDbDir.exists());
bf = new LocalBufferFile(tmpFile1, dbh.getBufferSize());
- dbh.saveAs(bf, false, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh.saveAs(bf, false, TaskMonitor.DUMMY);
assertTrue(bf.isReadOnly());
bf.dispose();
@@ -422,7 +422,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
assertTrue(tmpFile1.exists()); // still in-use
bf = new LocalBufferFile(tmpFile2, dbh.getBufferSize());
- dbh.saveAs(bf, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ dbh.saveAs(bf, true, TaskMonitor.DUMMY);
assertTrue(bf.isReadOnly());
assertTrue(tmpFile1.exists()); // no longer in-use
diff --git a/Ghidra/Framework/Generic/src/main/java/generic/io/JarWriter.java b/Ghidra/Framework/Generic/src/main/java/generic/io/JarWriter.java
index d6b1381723..1c82596167 100644
--- a/Ghidra/Framework/Generic/src/main/java/generic/io/JarWriter.java
+++ b/Ghidra/Framework/Generic/src/main/java/generic/io/JarWriter.java
@@ -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.
@@ -179,7 +178,7 @@ public class JarWriter {
try {
JarOutputStream jarOut = new JarOutputStream(new FileOutputStream(args[1]));
JarWriter writer = new JarWriter(jarOut);
- writer.outputRecursively(new File(args[0]), "", TaskMonitorAdapter.DUMMY_MONITOR);
+ writer.outputRecursively(new File(args[0]), "", TaskMonitor.DUMMY);
jarOut.close();
}
catch (FileNotFoundException e) {
diff --git a/Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/Algorithms.java b/Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/Algorithms.java
index 1f6abe7ec6..a279684434 100644
--- a/Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/Algorithms.java
+++ b/Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/Algorithms.java
@@ -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.
@@ -64,7 +63,7 @@ public class Algorithms {
public static void bubbleSort(List data, int low, int high, Comparator comparator) {
try {
- doBubbleSort(data, low, high, comparator, TaskMonitorAdapter.DUMMY_MONITOR);
+ doBubbleSort(data, low, high, comparator, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// do nothing--cancelled
diff --git a/Ghidra/Framework/Generic/src/test/java/generic/hash/FNV1a32MessageDigestTest.java b/Ghidra/Framework/Generic/src/test/java/generic/hash/FNV1a32MessageDigestTest.java
index f8ff4f75c0..3467cb7706 100644
--- a/Ghidra/Framework/Generic/src/test/java/generic/hash/FNV1a32MessageDigestTest.java
+++ b/Ghidra/Framework/Generic/src/test/java/generic/hash/FNV1a32MessageDigestTest.java
@@ -15,14 +15,14 @@
*/
package generic.hash;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.*;
import java.util.Random;
import org.junit.Before;
import org.junit.Test;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class FNV1a32MessageDigestTest {
private MessageDigest digest;
@@ -36,19 +36,19 @@ public class FNV1a32MessageDigestTest {
public void testBasicValues() throws Exception {
byte[] input = bytearray(0xcc, 0x24, 0x31, 0xc4);
byte[] target = bytearray(0, 0, 0, 0);
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
byte[] actual = digest.digest();
assertArrayEquals(target, actual);
input = bytearray(0xe0, 0x4d, 0x9f, 0xcb);
target = bytearray(0, 0, 0, 0);
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
actual = digest.digest();
assertArrayEquals(target, actual);
input = bytearray('+', '!', '=', 'y', 'G');
target = bytearray(0, 0, 0, 0);
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
actual = digest.digest();
assertArrayEquals(target, actual);
}
@@ -67,9 +67,9 @@ public class FNV1a32MessageDigestTest {
for (int ii = 0; ii < 10; ++ii) {
byte[] input = new byte[20];
random.nextBytes(input);
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
byte[] bytes = digest.digest();
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
long asLong = digest.digestLong();
long acc = 0;
@@ -84,7 +84,7 @@ public class FNV1a32MessageDigestTest {
@Test
public void testLongerRequests() throws Exception {
byte[] input = bytearray('F', 'o', 'o', 'b', 'a', 'r');
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
byte[] reference = digest.digest();
for (int beforeLength = 0; beforeLength < digest.getDigestLength(); ++beforeLength) {
@@ -97,7 +97,7 @@ public class FNV1a32MessageDigestTest {
for (int ii = 0; ii < output.length; ++ii) {
output[ii] = MARKER;
}
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
digest.digest(output, beforeLength, requestLength);
for (int ii = 0; ii < beforeLength; ++ii) {
assertEquals(
diff --git a/Ghidra/Framework/Generic/src/test/java/generic/hash/FNV1a64MessageDigestTest.java b/Ghidra/Framework/Generic/src/test/java/generic/hash/FNV1a64MessageDigestTest.java
index 6f5fa235bd..96c961b85a 100644
--- a/Ghidra/Framework/Generic/src/test/java/generic/hash/FNV1a64MessageDigestTest.java
+++ b/Ghidra/Framework/Generic/src/test/java/generic/hash/FNV1a64MessageDigestTest.java
@@ -15,14 +15,14 @@
*/
package generic.hash;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.*;
import java.util.Random;
import org.junit.Before;
import org.junit.Test;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class FNV1a64MessageDigestTest {
@@ -37,7 +37,7 @@ public class FNV1a64MessageDigestTest {
public void testBasicValues() throws Exception {
byte[] input = bytearray(0xd5, 0x6b, 0xb9, 0x53, 0x42, 0x87, 0x08, 0x36);
byte[] target = bytearray(0, 0, 0, 0, 0, 0, 0, 0);
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
byte[] actual = digest.digest();
assertArrayEquals(target, actual);
}
@@ -56,9 +56,9 @@ public class FNV1a64MessageDigestTest {
for (int ii = 0; ii < 10; ++ii) {
byte[] input = new byte[20];
random.nextBytes(input);
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
byte[] bytes = digest.digest();
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
long asLong = digest.digestLong();
long acc = 0;
@@ -73,7 +73,7 @@ public class FNV1a64MessageDigestTest {
@Test
public void testLongerRequests() throws Exception {
byte[] input = bytearray('F', 'o', 'o', 'b', 'a', 'r');
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
byte[] reference = digest.digest();
for (int beforeLength = 0; beforeLength < digest.getDigestLength(); ++beforeLength) {
@@ -86,7 +86,7 @@ public class FNV1a64MessageDigestTest {
for (int ii = 0; ii < output.length; ++ii) {
output[ii] = MARKER;
}
- digest.update(input, TaskMonitorAdapter.DUMMY_MONITOR);
+ digest.update(input, TaskMonitor.DUMMY);
digest.digest(output, beforeLength, requestLength);
for (int ii = 0; ii < beforeLength; ++ii) {
assertEquals(
diff --git a/Ghidra/Framework/Generic/src/test/java/ghidra/util/datastruct/AlgorithmsTest.java b/Ghidra/Framework/Generic/src/test/java/ghidra/util/datastruct/AlgorithmsTest.java
index e79e2a1a53..ab6cb4d8b0 100644
--- a/Ghidra/Framework/Generic/src/test/java/ghidra/util/datastruct/AlgorithmsTest.java
+++ b/Ghidra/Framework/Generic/src/test/java/ghidra/util/datastruct/AlgorithmsTest.java
@@ -15,15 +15,14 @@
*/
package ghidra.util.datastruct;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import java.util.*;
import org.junit.Test;
import generic.test.AbstractGenericTest;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class AlgorithmsTest extends AbstractGenericTest {
Comparator comparator;
@@ -68,7 +67,7 @@ public class AlgorithmsTest extends AbstractGenericTest {
@Test
public void testmergeSort() {
List data = getList(new long[] { 5, 8, 10, 2, 10, 3, 3, 7, 10, 23, 0, 15, 22 });
- Algorithms.mergeSort(data, comparator, TaskMonitorAdapter.DUMMY_MONITOR);
+ Algorithms.mergeSort(data, comparator, TaskMonitor.DUMMY);
long[] expected = new long[] { 0, 2, 3, 3, 5, 7, 8, 10, 10, 10, 15, 22, 23 };
for (int i = 0; i < expected.length; i++) {
assertEquals(new Long(expected[i]), data.get(i));
@@ -78,7 +77,7 @@ public class AlgorithmsTest extends AbstractGenericTest {
@Test
public void testmergeSort2() {
List data = getList(new long[] { 0, 1, 2, 3, 4, 0, 0, 0 });
- Algorithms.mergeSort(data, comparator, TaskMonitorAdapter.DUMMY_MONITOR);
+ Algorithms.mergeSort(data, comparator, TaskMonitor.DUMMY);
long[] expected = new long[] { 0, 0, 0, 0, 1, 2, 3, 4 };
for (int i = 0; i < expected.length; i++) {
assertEquals(new Long(expected[i]), data.get(i));
@@ -88,7 +87,7 @@ public class AlgorithmsTest extends AbstractGenericTest {
@Test
public void testmergeSort3() {
List data = getList(new long[] { 0, 1, 2, 3, 4, 4, 4, 4 });
- Algorithms.mergeSort(data, comparator, TaskMonitorAdapter.DUMMY_MONITOR);
+ Algorithms.mergeSort(data, comparator, TaskMonitor.DUMMY);
long[] expected = new long[] { 0, 1, 2, 3, 4, 4, 4, 4 };
for (int i = 0; i < expected.length; i++) {
assertEquals(new Long(expected[i]), data.get(i));
@@ -98,7 +97,7 @@ public class AlgorithmsTest extends AbstractGenericTest {
@Test
public void testmergeSort4() {
List data = getList(new long[] { 1, 1, 1, 1, 1, 1, 1, 1 });
- Algorithms.mergeSort(data, comparator, TaskMonitorAdapter.DUMMY_MONITOR);
+ Algorithms.mergeSort(data, comparator, TaskMonitor.DUMMY);
long[] expected = new long[] { 1, 1, 1, 1, 1, 1, 1, 1 };
for (int i = 0; i < expected.length; i++) {
assertEquals(new Long(expected[i]), data.get(i));
@@ -114,7 +113,7 @@ public class AlgorithmsTest extends AbstractGenericTest {
}
List data = getList(l);
- Algorithms.mergeSort(data, comparator, TaskMonitorAdapter.DUMMY_MONITOR);
+ Algorithms.mergeSort(data, comparator, TaskMonitor.DUMMY);
for (int i = 0; i < l.length - 1; i++) {
assertTrue("i = " + i, data.get(i) <= data.get(i + 1));
}
diff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainObjectAdapterDB.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainObjectAdapterDB.java
index 13ebec5190..46395fa101 100644
--- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainObjectAdapterDB.java
+++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainObjectAdapterDB.java
@@ -559,7 +559,7 @@ public abstract class DomainObjectAdapterDB extends DomainObjectAdapter
if (userData != null && userData.isChanged() && (getDomainFile() instanceof GhidraFile)) {
try {
userData.prepareToSave();
- userData.save(null, TaskMonitorAdapter.DUMMY_MONITOR);
+ userData.save(null, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
}
diff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFileData.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFileData.java
index 6e378c5190..a33d52b986 100644
--- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFileData.java
+++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFileData.java
@@ -1018,7 +1018,7 @@ public class GhidraFileData {
}
verifyRepoUser("checkin");
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
synchronized (fileSystem) {
if (busy) {
@@ -1405,7 +1405,7 @@ public class GhidraFileData {
}
verifyRepoUser("merge");
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
synchronized (fileSystem) {
if (busy) {
diff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFolder.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFolder.java
index 12986ee1e3..93d862df66 100644
--- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFolder.java
+++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFolder.java
@@ -143,7 +143,7 @@ public class GhidraFolder implements DomainFolder {
* @throws IOException
*/
void refreshFolderData() throws IOException {
- getFolderData().refresh(false, true, TaskMonitorAdapter.DUMMY_MONITOR);
+ getFolderData().refresh(false, true, TaskMonitor.DUMMY);
}
@Override
@@ -295,14 +295,14 @@ public class GhidraFolder implements DomainFolder {
public DomainFile createFile(String fileName, DomainObject obj, TaskMonitor monitor)
throws InvalidNameException, IOException, CancelledException {
return createFolderData().createFile(fileName, obj,
- monitor != null ? monitor : TaskMonitorAdapter.DUMMY_MONITOR);
+ monitor != null ? monitor : TaskMonitor.DUMMY);
}
@Override
public DomainFile createFile(String fileName, File packFile, TaskMonitor monitor)
throws InvalidNameException, IOException, CancelledException {
return createFolderData().createFile(fileName, packFile,
- monitor != null ? monitor : TaskMonitorAdapter.DUMMY_MONITOR);
+ monitor != null ? monitor : TaskMonitor.DUMMY);
}
@Override
@@ -336,7 +336,7 @@ public class GhidraFolder implements DomainFolder {
GhidraFolderData folderData = getFolderData();
GhidraFolder newGhidraParent = (GhidraFolder) newParent; // assumes single implementation
return folderData.copyTo(newGhidraParent.getFolderData(),
- monitor != null ? monitor : TaskMonitorAdapter.DUMMY_MONITOR);
+ monitor != null ? monitor : TaskMonitor.DUMMY);
}
/**
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcode/emulate/Emulate.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcode/emulate/Emulate.java
index ec6a2329e1..1e99517515 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcode/emulate/Emulate.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcode/emulate/Emulate.java
@@ -90,7 +90,7 @@ public class Emulate {
// emitterContext = new EmulateDisassemblerContext(lang, s);
pseudoDisassembler =
- Disassembler.getDisassembler(lang, addrFactory, TaskMonitorAdapter.DUMMY_MONITOR, null);
+ Disassembler.getDisassembler(lang, addrFactory, TaskMonitor.DUMMY, null);
initInstuctionStateModifier();
}
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveDB.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveDB.java
index 3acb67f785..6648157c64 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveDB.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveDB.java
@@ -109,17 +109,17 @@ public class DataTypeArchiveDB extends DomainObjectAdapterDB
int id = startTransaction("create data type archive");
createDatabase();
- if (createManagers(CREATE, TaskMonitorAdapter.DUMMY_MONITOR) != null) {
+ if (createManagers(CREATE, TaskMonitor.DUMMY) != null) {
throw new AssertException("Unexpected version exception on create");
}
changeSet = new DataTypeArchiveDBChangeSet(NUM_UNDOS);
- initManagers(CREATE, TaskMonitorAdapter.DUMMY_MONITOR);
+ initManagers(CREATE, TaskMonitor.DUMMY);
propertiesCreate();
endTransaction(id, true);
clearUndo(false);
if (folder != null) {
- folder.createFile(name, this, TaskMonitorAdapter.DUMMY_MONITOR);
+ folder.createFile(name, this, TaskMonitor.DUMMY);
}
success = true;
@@ -155,7 +155,7 @@ public class DataTypeArchiveDB extends DomainObjectAdapterDB
super(dbh, "Untitled", 500, consumer);
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ monitor = TaskMonitor.DUMMY;
}
boolean success = false;
try {
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramUserDataDB.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramUserDataDB.java
index d866d23408..9417193a84 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramUserDataDB.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramUserDataDB.java
@@ -137,7 +137,7 @@ class ProgramUserDataDB extends DomainObjectAdapterDB implements ProgramUserData
if (createManagers(CREATE, program, TaskMonitor.DUMMY) != null) {
throw new AssertException("Unexpected version exception on create");
}
- //initManagers(CREATE, TaskMonitorAdapter.DUMMY_MONITOR);
+ //initManagers(CREATE, TaskMonitor.DUMMY);
endTransaction(id, true);
changed = false;
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockImpl.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockImpl.java
index 059bb9e334..88f0a3671e 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockImpl.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockImpl.java
@@ -138,13 +138,13 @@ public class CodeBlockImpl implements CodeBlock {
List dList = new ArrayList();
try {
- CodeBlockReferenceIterator ri = getSources(TaskMonitorAdapter.DUMMY_MONITOR);
+ CodeBlockReferenceIterator ri = getSources(TaskMonitor.DUMMY);
while (ri.hasNext()) {
CodeBlockReference ref = ri.next();
Address a = ref.getSourceAddress();
sList.add(a);
}
- CodeBlockReferenceIterator di = getDestinations(TaskMonitorAdapter.DUMMY_MONITOR);
+ CodeBlockReferenceIterator di = getDestinations(TaskMonitor.DUMMY);
while (di.hasNext()) {
CodeBlockReference ref = di.next();
Address a = ref.getDestinationAddress();
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockReferenceImpl.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockReferenceImpl.java
index b0b782f650..65837d1756 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockReferenceImpl.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockReferenceImpl.java
@@ -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.
@@ -19,7 +18,7 @@ package ghidra.program.model.block;
import ghidra.program.model.address.Address;
import ghidra.program.model.symbol.FlowType;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
/**
* CodeBlockReferenceImpl implements a CodeBlockReference.
@@ -99,7 +98,7 @@ public class CodeBlockReferenceImpl implements CodeBlockReference {
CodeBlockModel model = blockHave.getModel();
try {
blockNeeded =
- model.getFirstCodeBlockContaining(addrInBlock, TaskMonitorAdapter.DUMMY_MONITOR);
+ model.getFirstCodeBlockContaining(addrInBlock, TaskMonitor.DUMMY);
}
catch (CancelledException e) {
// can't happen, dummy monitor can't be canceled
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/FollowFlow.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/FollowFlow.java
index 72c6f943cd..6d03bc28c7 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/FollowFlow.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/FollowFlow.java
@@ -143,7 +143,7 @@ public class FollowFlow {
boolean forward) {
if (monitor == null) {
- monitor = TaskMonitorAdapter.DUMMY_MONITOR; // create dummy monitor
+ monitor = TaskMonitor.DUMMY; // create dummy monitor
}
// Create a new address set to hold the entire flow.
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/PartitionCodeSubModel.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/PartitionCodeSubModel.java
index bbc0bc012f..e2e0f7675b 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/PartitionCodeSubModel.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/PartitionCodeSubModel.java
@@ -286,7 +286,7 @@ public class PartitionCodeSubModel implements SubroutineBlockModel {
// Determine if block is terminal
try {
CodeBlockReferenceIterator iter =
- new SubroutineDestReferenceIterator(block, TaskMonitorAdapter.DUMMY_MONITOR);
+ new SubroutineDestReferenceIterator(block, TaskMonitor.DUMMY);
while (iter.hasNext()) {
if (!iter.next().getFlowType().isCall()) {
return RefType.FLOW;
diff --git a/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/model/util/AcyclicCallGraphBuilderTest.java b/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/model/util/AcyclicCallGraphBuilderTest.java
index cdd3830a06..bcf849b16d 100644
--- a/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/model/util/AcyclicCallGraphBuilderTest.java
+++ b/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/model/util/AcyclicCallGraphBuilderTest.java
@@ -15,7 +15,7 @@
*/
package ghidra.program.model.util;
-import static ghidra.util.task.TaskMonitorAdapter.DUMMY_MONITOR;
+import static ghidra.util.task.TaskMonitor.*;
import java.util.*;
@@ -102,7 +102,7 @@ public class AcyclicCallGraphBuilderTest extends AbstractGenericTest {
node(3, 4);
AcyclicCallGraphBuilder builder = new AcyclicCallGraphBuilder(program, functions, false);
- AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY_MONITOR);
+ AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY);
Assert.assertEquals(4, graph.size());
@@ -119,7 +119,7 @@ public class AcyclicCallGraphBuilderTest extends AbstractGenericTest {
node(2,3);
AcyclicCallGraphBuilder builder = new AcyclicCallGraphBuilder(program,functions,false);
- AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY_MONITOR);
+ AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY);
Assert.assertEquals(3, graph.size());
@@ -135,7 +135,7 @@ public class AcyclicCallGraphBuilderTest extends AbstractGenericTest {
node(3, 1);
AcyclicCallGraphBuilder builder = new AcyclicCallGraphBuilder(program, functions, false);
- AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY_MONITOR);
+ AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY);
Assert.assertEquals(3, graph.size());
@@ -152,7 +152,7 @@ public class AcyclicCallGraphBuilderTest extends AbstractGenericTest {
node(2, 2);
AcyclicCallGraphBuilder builder = new AcyclicCallGraphBuilder(program, functions, false);
- AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY_MONITOR);
+ AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY);
Assert.assertEquals(3, graph.size());
@@ -168,7 +168,7 @@ public class AcyclicCallGraphBuilderTest extends AbstractGenericTest {
node(3, 1);
AcyclicCallGraphBuilder builder = new AcyclicCallGraphBuilder(program, functions, false);
- AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY_MONITOR);
+ AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY);
Assert.assertEquals(3, graph.size());
@@ -197,7 +197,7 @@ public class AcyclicCallGraphBuilderTest extends AbstractGenericTest {
thunkNode(17, 18, false);
AcyclicCallGraphBuilder builder = new AcyclicCallGraphBuilder(program, functions, false);
- AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY_MONITOR);
+ AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY);
Assert.assertEquals(18, graph.size());
@@ -241,7 +241,7 @@ public class AcyclicCallGraphBuilderTest extends AbstractGenericTest {
thunkNode(17, 18, false);
AcyclicCallGraphBuilder builder = new AcyclicCallGraphBuilder(program, functions, true);
- AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY_MONITOR);
+ AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY);
Assert.assertEquals(8, graph.size());
@@ -265,7 +265,7 @@ public class AcyclicCallGraphBuilderTest extends AbstractGenericTest {
thunkNode(5, 3, true); // Thunk node hits recursion from different point
AcyclicCallGraphBuilder builder = new AcyclicCallGraphBuilder(program, functions, true);
- AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY_MONITOR);
+ AbstractDependencyGraph graph = builder.getDependencyGraph(DUMMY);
Assert.assertEquals(4, graph.size());
assertDependents(graph, 2, 1);
diff --git a/Ghidra/Processors/MIPS/src/test.slow/java/ghidra/app/plugin/core/analysis/MipsPreAnalyzerTest.java b/Ghidra/Processors/MIPS/src/test.slow/java/ghidra/app/plugin/core/analysis/MipsPreAnalyzerTest.java
index c4502b2c35..2d99099295 100644
--- a/Ghidra/Processors/MIPS/src/test.slow/java/ghidra/app/plugin/core/analysis/MipsPreAnalyzerTest.java
+++ b/Ghidra/Processors/MIPS/src/test.slow/java/ghidra/app/plugin/core/analysis/MipsPreAnalyzerTest.java
@@ -320,6 +320,6 @@ public class MipsPreAnalyzerTest extends AbstractGhidraHeadlessIntegrationTest {
}
private TaskMonitor getTaskMonitor() {
- return TaskMonitorAdapter.DUMMY_MONITOR;
+ return TaskMonitor.DUMMY;
}
}
diff --git a/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/BlockModelScreenShots.java b/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/BlockModelScreenShots.java
index a2be1190e3..4e66042e92 100644
--- a/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/BlockModelScreenShots.java
+++ b/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/BlockModelScreenShots.java
@@ -38,7 +38,7 @@ import ghidra.program.model.address.Address;
import ghidra.program.model.address.AddressSet;
import ghidra.program.model.block.*;
import ghidra.util.exception.CancelledException;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class BlockModelScreenShots extends GhidraScreenShotGenerator {
@@ -104,7 +104,7 @@ public class BlockModelScreenShots extends GhidraScreenShotGenerator {
CodeBlockIterator iterator;
try {
iterator = basicBlockModel.getCodeBlocksContaining(addressSet,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
while (iterator.hasNext()) {
CodeBlock block = iterator.next();
diff --git a/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/ProgramManagerPluginScreenShots.java b/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/ProgramManagerPluginScreenShots.java
index 26dd3b18f9..41bcc8bb98 100644
--- a/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/ProgramManagerPluginScreenShots.java
+++ b/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/ProgramManagerPluginScreenShots.java
@@ -49,7 +49,7 @@ import ghidra.program.model.listing.Program;
import ghidra.program.model.symbol.SourceType;
import ghidra.util.exception.CancelledException;
import ghidra.util.task.TaskLauncher;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class ProgramManagerPluginScreenShots extends GhidraScreenShotGenerator
implements CheckinHandler {
@@ -113,7 +113,7 @@ public class ProgramManagerPluginScreenShots extends GhidraScreenShotGenerator
ProjectData projectData = project.getProjectData();
projectData.getRootFolder()
.createFile("WinHelloCpp.exe", program,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
DomainFile df = program.getDomainFile();
@@ -310,7 +310,7 @@ public class ProgramManagerPluginScreenShots extends GhidraScreenShotGenerator
String programName = "Program" + (i + 1) + ".exe";
list.add(projectData.getRootFolder()
.createFile(programName, program,
- TaskMonitorAdapter.DUMMY_MONITOR));
+ TaskMonitor.DUMMY));
}
program.flushEvents();
@@ -350,7 +350,7 @@ public class ProgramManagerPluginScreenShots extends GhidraScreenShotGenerator
TaskLauncher.launchModal(comment, () -> {
try {
domainFile.addToVersionControl(comment, keepItCheckedOut,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
}
catch (CancelledException | IOException e) {
throw new RuntimeException(e);
diff --git a/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/RepositoryScreenShots.java b/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/RepositoryScreenShots.java
index b818842fc7..d53b619e82 100644
--- a/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/RepositoryScreenShots.java
+++ b/Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/RepositoryScreenShots.java
@@ -2237,7 +2237,7 @@ public class RepositoryScreenShots extends AbstractListingMergeManagerTest {
try {
BookmarkManager bookMgr = program.getBookmarkManager();
Address addr = addr(program, "0x004010a0");
- bookMgr.removeBookmarks(new AddressSet(addr), TaskMonitorAdapter.DUMMY_MONITOR);
+ bookMgr.removeBookmarks(new AddressSet(addr), TaskMonitor.DUMMY);
commit = true;
}
finally {
@@ -2567,12 +2567,12 @@ public class RepositoryScreenShots extends AbstractListingMergeManagerTest {
FrontEndTool frontEndTool = env.showFrontEndTool();
DomainFolder rootFolder = frontEndTool.getProject().getProjectData().getRootFolder();
- TaskMonitor dummyMonitor = TaskMonitorAdapter.DUMMY_MONITOR;
+ TaskMonitor dummyMonitor = TaskMonitor.DUMMY;
DomainFile myTestArchiveDF =
env.restoreDataTypeArchive("MyTestArchive.gdt", rootFolder);
final DataTypeArchive myTestArchive =
(DataTypeArchiveDB) myTestArchiveDF.getDomainObject(this, true, false,
- TaskMonitorAdapter.DUMMY_MONITOR);
+ TaskMonitor.DUMMY);
final CategoryPath sourceCatPath = new CategoryPath("/Category1/Category2/Category5");
final DataType floatStruct =
diff --git a/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerLargeSetTest.java b/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerLargeSetTest.java
index 6d986275dc..9bc8f0fc8d 100644
--- a/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerLargeSetTest.java
+++ b/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerLargeSetTest.java
@@ -26,7 +26,7 @@ import ghidra.program.model.listing.Program;
import ghidra.program.model.mem.MemoryBlock;
import ghidra.test.AbstractGhidraHeadlessIntegrationTest;
import ghidra.test.ToyProgramBuilder;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
public class DisassemblerLargeSetTest extends AbstractGhidraHeadlessIntegrationTest {
@@ -61,7 +61,7 @@ public class DisassemblerLargeSetTest extends AbstractGhidraHeadlessIntegrationT
block.putBytes(addr(i * CASESIZE), disBlock);
}
- disassembler = new Disassembler(program, TaskMonitorAdapter.DUMMY_MONITOR, null);
+ disassembler = new Disassembler(program, TaskMonitor.DUMMY, null);
startTime = System.currentTimeMillis();
}
diff --git a/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerTest.java b/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerTest.java
index b97bd93566..6a3d8dce00 100644
--- a/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerTest.java
+++ b/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerTest.java
@@ -30,7 +30,7 @@ import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.SourceType;
import ghidra.test.AbstractGhidraHeadlessIntegrationTest;
import ghidra.test.ToyProgramBuilder;
-import ghidra.util.task.TaskMonitorAdapter;
+import ghidra.util.task.TaskMonitor;
import util.CollectionUtils;
public class DisassemblerTest extends AbstractGhidraHeadlessIntegrationTest {
@@ -71,7 +71,7 @@ public class DisassemblerTest extends AbstractGhidraHeadlessIntegrationTest {
programBuilder.createMemory(".text2", "0x3e0", 0x800).setExecute(true);// initialized
listing = program.getListing();
- disassembler = new Disassembler(program, TaskMonitorAdapter.DUMMY_MONITOR, null);
+ disassembler = new Disassembler(program, TaskMonitor.DUMMY, null);
}
@After
diff --git a/Ghidra/Test/IntegrationTest/src/test/java/ghidra/util/task/CachingSwingWorkerTest.java b/Ghidra/Test/IntegrationTest/src/test/java/ghidra/util/task/CachingSwingWorkerTest.java
index 1ed85f0561..3c4ea1f47e 100644
--- a/Ghidra/Test/IntegrationTest/src/test/java/ghidra/util/task/CachingSwingWorkerTest.java
+++ b/Ghidra/Test/IntegrationTest/src/test/java/ghidra/util/task/CachingSwingWorkerTest.java
@@ -71,7 +71,7 @@ public class CachingSwingWorkerTest extends AbstractDockingTest {
assertNotNull(dialog);
worker.setDone();
- worker.get(TaskMonitorAdapter.DUMMY_MONITOR);
+ worker.get(TaskMonitor.DUMMY);
waitForPostedSwingRunnables();
assertTrue(!dialog.isVisible());
@@ -97,7 +97,7 @@ public class CachingSwingWorkerTest extends AbstractDockingTest {
assertNotNull(dialog);
worker.setDone();
- worker.get(TaskMonitorAdapter.DUMMY_MONITOR);
+ worker.get(TaskMonitor.DUMMY);
r1.join();
assertEquals(ITEM_COUNT, r1.size());
@@ -125,7 +125,7 @@ public class CachingSwingWorkerTest extends AbstractDockingTest {
assertNotNull(dialog);
worker.setDone();
- worker.get(TaskMonitorAdapter.DUMMY_MONITOR);
+ worker.get(TaskMonitor.DUMMY);
r1.join();
assertEquals(ITEM_COUNT, r1.size());
@@ -150,7 +150,7 @@ public class CachingSwingWorkerTest extends AbstractDockingTest {
assertNotNull(dialog);
dialog.cancel();
- worker.get(TaskMonitorAdapter.DUMMY_MONITOR);
+ worker.get(TaskMonitor.DUMMY);
waitForPostedSwingRunnables();
assertTrue(!dialog.isVisible());
@@ -286,7 +286,7 @@ public class CachingSwingWorkerTest extends AbstractDockingTest {
@Override
public void run() {
- result = worker.get(TaskMonitorAdapter.DUMMY_MONITOR);
+ result = worker.get(TaskMonitor.DUMMY);
}
}
}