Ghidra is a software reverse engineering (SRE) framework
Fixed comments to pull request
sethcg281ce0ab91a0
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/EntryPointAnalyzer.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/EntryPointAnalyzer.javaindex 408da77d46..5d75c72cf5 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/EntryPointAnalyzer.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/EntryPointAnalyzer.java@@ -297,7 +297,7 @@ public class EntryPointAnalyzer extends AbstractAnalyzer {Listing listing = program.getListing();SymbolTable symbolTable = program.getSymbolTable();- Set<Address> indirectSet = new HashSet<Address>();+ Set<Address> indirectSet = new HashSet<>();Iterator<Address> iter = doNowSet.iterator();while (iter.hasNext()) {diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/attribs/DWARFAttributeDef.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/attribs/DWARFAttributeDef.javaindex 4f93cd57c0..e1d1dde653 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/attribs/DWARFAttributeDef.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/attribs/DWARFAttributeDef.java@@ -148,10 +148,9 @@ public class DWARFAttributeDef<E extends Enum<E>> {if (this == obj) {return true;}- if (!(obj instanceof DWARFAttributeDef)) {+ if (!(obj instanceof DWARFAttributeDef other)) {return false;}- DWARFAttributeDef<?> other = (DWARFAttributeDef<?>) obj;return attributeForm == other.attributeForm &&Objects.equals(attributeId, other.attributeId) &&implicitValue == other.implicitValue && rawAttributeId == other.rawAttributeId;diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/cparser/CPP/DefineTable.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/cparser/CPP/DefineTable.javaindex 34f58c2a2e..11ece4ed2c 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/cparser/CPP/DefineTable.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/cparser/CPP/DefineTable.java@@ -787,7 +787,7 @@ public class DefineTable {//String strValue = getValue(defName);- ArrayList<String> list = new ArrayList<String>();+ ArrayList<String> list = new ArrayList<>();list.add(defName);String strExpanded = expand(strValue, true, list);