mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 01:39:21 +02:00
GP-0: Fixing unnecessary semicolon warnings
This commit is contained in:
parent
5fe25f1cfd
commit
2e0c098c25
21 changed files with 43 additions and 72 deletions
|
@ -540,7 +540,7 @@ public interface LogicalBreakpoint {
|
|||
Mode mode = this.mode.sameAddress(that.mode);
|
||||
Consistency consistency = this.consistency.sameAddress(that.consistency);
|
||||
return fromFields(mode, consistency);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* For logical breakpoints which appear at the same address, compose their state
|
||||
|
|
|
@ -498,7 +498,7 @@ public class DebuggerEmulationServicePlugin extends Plugin implements DebuggerEm
|
|||
/*TraceMemoryRegion region = current.getTrace()
|
||||
.getMemoryManager()
|
||||
.getRegionContaining(current.getSnap(), traceLoc.getAddress());
|
||||
return region != null && region.isExecute()*/;
|
||||
return region != null && region.isExecute();*/
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ public abstract class AbstractBaseDBTraceDefinedUnitsView<T extends AbstractDBTr
|
|||
ensureInCachedRange(key.snap, key.addr);
|
||||
return getFirstInRangeCacheContaining(key);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache for optimizing {@link AbstractBaseDBTraceDefinedUnitsView#getFloor(long, Address)} and
|
||||
|
|
|
@ -52,7 +52,7 @@ public abstract class AbstractDBTraceAddressSnapRangePropertyMapOcclusionIterabl
|
|||
return new PeekableIterator<>() {
|
||||
protected Address address = within.getX1();
|
||||
protected boolean soughtNext = false;
|
||||
protected Entry<TraceAddressSnapRange, T> next = null;;
|
||||
protected Entry<TraceAddressSnapRange, T> next = null;
|
||||
|
||||
private void checkSeekNext() {
|
||||
if (soughtNext) {
|
||||
|
|
|
@ -680,7 +680,7 @@ public class DBTraceProgramView implements TraceProgramView {
|
|||
protected final DomainObjectEventQueues eventQueues;
|
||||
protected EventTranslator eventTranslator;
|
||||
private volatile boolean allAddressesValid;
|
||||
private volatile AddressSetView allAddresses;;
|
||||
private volatile AddressSetView allAddresses;
|
||||
|
||||
protected final DBTraceProgramViewBookmarkManager bookmarkManager;
|
||||
protected final DBTraceProgramViewEquateTable equateTable;
|
||||
|
|
|
@ -117,7 +117,7 @@ public interface PathFilter {
|
|||
|
||||
<T> ListIterator<T> iterator(T[] arr) {
|
||||
return iterator(Arrays.asList(arr));
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static boolean keyMatches(String pat, String key) {
|
||||
|
|
|
@ -24,4 +24,4 @@ import ghidra.program.model.address.Address;
|
|||
* @param numAgreements number of agreeing trees
|
||||
*/
|
||||
public record SimilarStartRowObject(Address funcStart, int numAgreements) {
|
||||
};
|
||||
}
|
||||
|
|
|
@ -634,7 +634,6 @@ public class VarnodeContext implements ProcessorContext {
|
|||
stateLayer = null;
|
||||
layer--;
|
||||
}
|
||||
;
|
||||
|
||||
if (stateLayer == null) {
|
||||
return null;
|
||||
|
|
|
@ -62,7 +62,7 @@ public class ClosedPatternTableModel extends ThreadedTableModelStub<ClosedPatter
|
|||
Component component = super.getTableCellRendererComponent(data);
|
||||
component.setFont(Gui.getFont(FONT_ID));
|
||||
return component;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFilterString(String t, Settings settings) {
|
||||
|
|
|
@ -47,7 +47,7 @@ public class ImageSections_Oreo extends ArtImageSections {
|
|||
kSectionClassTable,
|
||||
kSectionImageBitmap,
|
||||
kSectionCount, // Number of elements in enum.
|
||||
};
|
||||
}
|
||||
|
||||
public ImageSections_Oreo(BinaryReader reader, ArtHeader header) {
|
||||
super(reader, header);
|
||||
|
|
|
@ -20,12 +20,8 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
import ghidra.app.util.bin.BinaryReader;
|
||||
import ghidra.file.formats.android.fbpk.FBPK;
|
||||
import ghidra.file.formats.android.fbpk.FBPK_Constants;
|
||||
import ghidra.file.formats.android.fbpk.FBPK_Partition;
|
||||
import ghidra.program.model.data.DataType;
|
||||
import ghidra.program.model.data.Structure;
|
||||
import ghidra.program.model.data.StructureDataType;
|
||||
import ghidra.file.formats.android.fbpk.*;
|
||||
import ghidra.program.model.data.*;
|
||||
import ghidra.util.exception.DuplicateNameException;
|
||||
|
||||
public class FBPKv2 implements FBPK {
|
||||
|
@ -98,7 +94,7 @@ public class FBPKv2 implements FBPK {
|
|||
|
||||
public String getString2() {
|
||||
return string2;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||
|
|
|
@ -30,7 +30,7 @@ public interface OatBundle {
|
|||
|
||||
public enum HeaderType {
|
||||
ART, CDEX, DEX, VDEX,
|
||||
};
|
||||
}
|
||||
|
||||
public static final String APK = ".apk";
|
||||
public static final String ART = ".art";
|
||||
|
|
|
@ -364,7 +364,7 @@ public abstract class AbstractEmuUnixSyscallUseropLibrary<T>
|
|||
types("int", "void *", "size_t"));
|
||||
/** "Extern" declaration of {@code unix_write} */
|
||||
final UseropDecl unix_write = userop(type("size_t"), "unix_write",
|
||||
types("int", "void *", "size_t"));;
|
||||
types("int", "void *", "size_t"));
|
||||
|
||||
/**
|
||||
* Inline the gather or scatter pattern for an iovec syscall
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
*/
|
||||
package ghidra.pcode.struct.sub;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.lang.invoke.MethodHandles.Lookup;
|
||||
|
@ -82,7 +81,7 @@ public class StructuredSleighTest extends AbstractGhidraHeadlessIntegrationTest
|
|||
@Test
|
||||
public void testUseRegister() throws Exception {
|
||||
StructuredSleigh ss = new TestStructuredSleigh() {
|
||||
final Var vR0 = reg(r0, type("int"));;
|
||||
final Var vR0 = reg(r0, type("int"));
|
||||
|
||||
@StructuredUserop(type = "int")
|
||||
public void my_userop() {
|
||||
|
|
|
@ -15,16 +15,7 @@
|
|||
*/
|
||||
package ghidra.feature.vt.gui.util;
|
||||
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.CallingConventionChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.CommentChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.FunctionNameChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.FunctionSignatureChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.HighestSourcePriorityChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.LabelChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.ParameterDataTypeChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.ReplaceChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.ReplaceDataChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.SourcePriorityChoices;
|
||||
import ghidra.feature.vt.gui.util.VTMatchApplyChoices.*;
|
||||
import ghidra.framework.options.Options;
|
||||
|
||||
public class VTOptionDefines {
|
||||
|
@ -200,7 +191,7 @@ public class VTOptionDefines {
|
|||
"Duplicate Function Correlator Minimum Function Length";
|
||||
public static final String DUPE_FUNCTION_CORRELATOR_MIN_LEN_OPTION =
|
||||
AUTO_VT_OPTIONS_NAME + "." + AUTO_VT_DUPLICATE_FUNCTION_CORRELATOR +
|
||||
"." + DUPE_FUNCTION_CORRELATOR_MIN_LEN_OPTION_TEXT;;
|
||||
"." + DUPE_FUNCTION_CORRELATOR_MIN_LEN_OPTION_TEXT;
|
||||
|
||||
public static final String REF_CORRELATOR_MIN_SCORE_OPTION_TEXT =
|
||||
"Reference Correlators Minimum Score";
|
||||
|
|
|
@ -72,7 +72,6 @@ public interface PcodeMachine<T> {
|
|||
private AccessKind(boolean trapsRead, boolean trapsWrite) {
|
||||
this.trapsRead = trapsRead;
|
||||
this.trapsWrite = trapsWrite;
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -77,7 +77,7 @@ public class DecoderForOneStride {
|
|||
private final AddrCtx start;
|
||||
|
||||
final List<Instruction> instructions = new ArrayList<>();
|
||||
final List<PcodeOp> opsForStride = new ArrayList<>();;
|
||||
final List<PcodeOp> opsForStride = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Construct a stride decoder
|
||||
|
|
|
@ -31,7 +31,7 @@ public class PathKey {
|
|||
}
|
||||
|
||||
public PathKey(String path) {
|
||||
Objects.requireNonNull(path, "Path cannot be null");;
|
||||
Objects.requireNonNull(path, "Path cannot be null");
|
||||
this.path = path.replace('\\', '/');
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ public class ArmBranchReturnDetectionTest extends AbstractGhidraHeadedIntegratio
|
|||
builder.disassemble("0x00015d9c", 27, true);
|
||||
|
||||
builder.createFunction("0x00015d9c");
|
||||
builder.createLabel("0x00015d9c", "func1");;
|
||||
builder.createLabel("0x00015d9c", "func1");
|
||||
|
||||
program = builder.getProgram();
|
||||
|
||||
|
|
|
@ -655,7 +655,6 @@ public class JavaMethodsTest extends AbstractJavaTraceRmiTest {
|
|||
txPut(conn, "Frames");
|
||||
waitForValuesPass("VMs[].Threads[main].Stack[0]._display",
|
||||
pcs -> assertContainsString("checkAccess", pcs.get(0).getValue().toString()));
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,22 +16,10 @@
|
|||
package ghidra.doclets.typestubs;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
import javax.lang.model.element.Modifier;
|
||||
import javax.lang.model.element.Name;
|
||||
import javax.lang.model.element.PackageElement;
|
||||
import javax.lang.model.element.QualifiedNameable;
|
||||
import javax.lang.model.element.TypeElement;
|
||||
import javax.lang.model.type.ArrayType;
|
||||
import javax.lang.model.type.DeclaredType;
|
||||
import javax.lang.model.type.TypeMirror;
|
||||
import javax.lang.model.type.WildcardType;
|
||||
import javax.lang.model.element.*;
|
||||
import javax.lang.model.type.*;
|
||||
|
||||
/**
|
||||
* Base class providing access to sanitized names (Python safe).
|
||||
|
@ -313,7 +301,7 @@ abstract class PythonTypeStubElement<T extends Element> {
|
|||
static void addNeededTypes(Set<TypeElement> imports, TypeMirror type) {
|
||||
switch (type.getKind()) {
|
||||
case DECLARED:
|
||||
DeclaredType dt = (DeclaredType) type;;
|
||||
DeclaredType dt = (DeclaredType) type;
|
||||
imports.add((TypeElement) dt.asElement());
|
||||
for (TypeMirror genericType : dt.getTypeArguments()) {
|
||||
addNeededTypes(imports, genericType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue