Skip to content

Ghidra is a software reverse engineering (SRE) framework

remove annotation & clone()

Behrang Fouladid4c7f37fc4bb
diff --git a/Ghidra/Features/Decompiler/ghidra_scripts/ShowConstantUse.java b/Ghidra/Features/Decompiler/ghidra_scripts/ShowConstantUse.java
index 475f808298..7d50f50b5a 100644
--- a/Ghidra/Features/Decompiler/ghidra_scripts/ShowConstantUse.java
+++ b/Ghidra/Features/Decompiler/ghidra_scripts/ShowConstantUse.java
@@ -868,8 +868,7 @@ public class ShowConstantUse extends GhidraScript {
return;
case PcodeOp.MULTIEQUAL:
for (int i = 0; i < def.getNumInputs(); i++) {
- @SuppressWarnings("unchecked")
- ArrayList<PcodeOp> splitUseList = (ArrayList<PcodeOp>) defUseList.clone();
+ ArrayList<PcodeOp> splitUseList = new ArrayList<>(defUseList);
followToParam(constUse, splitUseList, highFunction, def.getInput(i), funcList,
doneSet);
}