mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-21 11:32:28 +08:00
GP-2974: Fixing warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user