Ghidra is a software reverse engineering (SRE) framework
GT-2724 - review fixes
dragonmacherc65c60a04223
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserDialog.java b/Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserDialog.javaindex 0678716791..f47db591e0 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserDialog.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserDialog.java@@ -51,7 +51,7 @@ import resources.ResourceManager;* to perform the action defined by the executor.** <p>Each button press will use the selected items as the items to be processed. While the- * items are schedule to be processed, they will still be in the table, painted light gray.+ * items are scheduled to be processed, they will still be in the table, painted light gray.* Attempting to reschedule any of these pending items will have no effect. Each time the* button is pressed, a new {@link SwingWorker} is created, which will put the processing into* a background thread. Further, by using multiple workers, the work will be performed in@@ -115,7 +115,7 @@ public class TableChooserDialog extends DialogComponentProvidere -> setOkEnabled(table.getSelectedRowCount() > 0));GhidraTableFilterPanel<AddressableRowObject> filterPanel =- new GhidraTableFilterPanel<AddressableRowObject>(table, model);+ new GhidraTableFilterPanel<>(table, model);panel.add(tablePanel, BorderLayout.CENTER);panel.add(filterPanel, BorderLayout.SOUTH);return panel;@@ -270,7 +270,7 @@ public class TableChooserDialog extends DialogComponentProviderprivate List<AddressableRowObject> doProcessRowObjects(List<AddressableRowObject> rowObjects,TaskMonitor monitor) {- List<AddressableRowObject> deleted = new ArrayList<AddressableRowObject>();+ List<AddressableRowObject> deleted = new ArrayList<>();for (AddressableRowObject rowObject : rowObjects) {if (monitor.isCancelled()) {break;diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserTableModel.java b/Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserTableModel.javaindex ff13222f5b..93bb78659c 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserTableModel.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserTableModel.java@@ -30,7 +30,7 @@ import ghidra.util.task.TaskMonitor;public class TableChooserTableModel extends AddressBasedTableModel<AddressableRowObject> {// we maintain this list so that any future reload operations can load the original user data- // (this downside of this is that two lists are maintained)+ // (the downside of this is that two lists are maintained)Set<AddressableRowObject> myPrivateList = new HashSet<AddressableRowObject>();public TableChooserTableModel(String title, ServiceProvider serviceProvider, Program program,