mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-2974: Fixing warnings
This commit is contained in:
@@ -91,7 +91,7 @@ public class DumpFunctionPatternInfoScript extends GhidraScript {
|
||||
|
||||
AddressSetView initialized = currentProgram.getMemory().getLoadedAndInitializedAddressSet();
|
||||
while (fIter.hasNext()) {
|
||||
monitor.checkCanceled();
|
||||
monitor.checkCancelled();
|
||||
Function func = fIter.next();
|
||||
if (func.isThunk()) {
|
||||
continue;
|
||||
|
||||
@@ -107,7 +107,7 @@ public class PatternStats extends GhidraScript implements PatternFactory {
|
||||
if (exampleFalse.size() >= MAX_EXAMPLE_PER) {
|
||||
return;
|
||||
}
|
||||
exampleFalse.add(new Long(addr.getOffset()));
|
||||
exampleFalse.add(Long.valueOf(addr.getOffset()));
|
||||
}
|
||||
|
||||
public void saveXml(StringBuffer buf) {
|
||||
@@ -140,7 +140,7 @@ public class PatternStats extends GhidraScript implements PatternFactory {
|
||||
while (parser.peek().isStart()) {
|
||||
parser.start("example");
|
||||
long value = SpecXmlUtils.decodeLong(parser.end().getText());
|
||||
exampleFalse.add(new Long(value));
|
||||
exampleFalse.add(Long.valueOf(value));
|
||||
}
|
||||
parser.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user