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();
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public class ByteSequenceRowObject {
|
||||
numTotalSeqs++;
|
||||
}
|
||||
else {
|
||||
byteSeqCounts.put(currentFilteredByteString, new Integer(1));
|
||||
byteSeqCounts.put(currentFilteredByteString, Integer.valueOf(1));
|
||||
numTotalSeqs++;
|
||||
}
|
||||
}
|
||||
@@ -327,7 +327,7 @@ public class ByteSequenceRowObject {
|
||||
bytesAndDisCount.put(bytesAndDisassembly, count + 1);
|
||||
}
|
||||
else {
|
||||
bytesAndDisCount.put(bytesAndDisassembly, new Integer(1));
|
||||
bytesAndDisCount.put(bytesAndDisassembly, Integer.valueOf(1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ public class FunctionBitPatternInfo {
|
||||
currentFlowType.equals(RefType.CONDITIONAL_CALL_TERMINATOR) ||
|
||||
currentFlowType.equals(RefType.CONDITIONAL_TERMINATOR)) {
|
||||
returnsToSizes.put(currentInstruction.getAddress(),
|
||||
new Integer(currentInstruction.getLength()));
|
||||
Integer.valueOf(currentInstruction.getLength()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ public class ProjectedDatabase {
|
||||
|
||||
Integer count = frequentItemBag.get(globalItem);
|
||||
if (count == null) {
|
||||
frequentItemBag.put(globalItem, new Integer(fullSequence.getCount()));
|
||||
frequentItemBag.put(globalItem, Integer.valueOf(fullSequence.getCount()));
|
||||
}
|
||||
else {
|
||||
frequentItemBag.put(globalItem, count + fullSequence.getCount());
|
||||
@@ -231,7 +231,7 @@ public class ProjectedDatabase {
|
||||
String symbol = firstSequence.getSequenceAsString().substring(dittedPosition,
|
||||
dittedPosition + 1);
|
||||
//System.out.println("adding " + symbol + " at position " + dittedPosition);
|
||||
positionsToSymbols.put(new Integer(dittedPosition), symbol);
|
||||
positionsToSymbols.put(Integer.valueOf(dittedPosition), symbol);
|
||||
dittedPosition++;
|
||||
}
|
||||
dittedPosition++;//advance past fixedPosition
|
||||
|
||||
@@ -92,7 +92,7 @@ public class SequenceDatabase {
|
||||
SequenceItem fItem = new SequenceItem(seq.getSequenceAsString().substring(i, i + 1), i);
|
||||
Integer count = itemBag.get(fItem);
|
||||
if (count == null) {
|
||||
itemBag.put(fItem, new Integer(seq.getCount()));
|
||||
itemBag.put(fItem, Integer.valueOf(seq.getCount()));
|
||||
}
|
||||
else {
|
||||
itemBag.put(fItem, count + seq.getCount());
|
||||
|
||||
Reference in New Issue
Block a user