GP-2974: Fixing warnings

This commit is contained in:
Ryan Kurtz 2023-04-26 08:03:57 -04:00
parent 113156a19f
commit 7fa3389119
662 changed files with 2198 additions and 2216 deletions

View file

@ -81,10 +81,10 @@ public class GraphClassesScript extends GhidraScript {
private void getClassStructures(Category[] categories) throws CancelledException {
for (Category category : categories) {
monitor.checkCanceled();
monitor.checkCancelled();
DataType[] dataTypes = category.getDataTypes();
for (DataType dataType : dataTypes) {
monitor.checkCanceled();
monitor.checkCancelled();
if (dataType.getName().equals(category.getName()) &&
dataType instanceof Structure) {
@ -125,7 +125,7 @@ public class GraphClassesScript extends GhidraScript {
for (Structure classStructure : classStructures) {
monitor.checkCanceled();
monitor.checkCancelled();
String description = classStructure.getDescription();
@ -270,7 +270,7 @@ public class GraphClassesScript extends GhidraScript {
DataTypeComponent[] components = childStructure.getComponents();
for (DataTypeComponent component : components) {
monitor.checkCanceled();
monitor.checkCancelled();
DataType componentDataType = component.getDataType();
if (componentDataType instanceof Structure &&
componentDataType.getName().equals(parentName)) {
@ -291,7 +291,7 @@ public class GraphClassesScript extends GhidraScript {
List<Structure> parentStructures = new ArrayList<>();
for (Structure classStructure : classStructures) {
monitor.checkCanceled();
monitor.checkCancelled();
if (classStructure.getName().equals(parentName)) {
parentStructures.add(classStructure);