Skip to content

Commit 249f856

Browse files
committed
fixed style violations
1 parent 47ad2a6 commit 249f856

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/main/java/soot/jimple/spark/pag/PAG.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1123,8 +1123,9 @@ public void addCallTarget(Edge e) {
11231123
ln = ln.getReplacement();
11241124

11251125
RefType rt = de.getTargetType();
1126-
if (rt == null)
1126+
if (rt == null) {
11271127
rt = (RefType) ie.getMethodRef().getReturnType();
1128+
}
11281129

11291130
// Fake an allocation node
11301131
AllocNode alloc

src/main/java/soot/jimple/toolkits/callgraph/VirtualEdgesSummaries.java

+12-6
Original file line numberDiff line numberDiff line change
@@ -596,12 +596,15 @@ public int hashCode() {
596596

597597
@Override
598598
public boolean equals(Object obj) {
599-
if (this == obj)
599+
if (this == obj) {
600600
return true;
601-
if (obj == null)
601+
}
602+
if (obj == null) {
602603
return false;
603-
if (getClass() != obj.getClass())
604+
}
605+
if (getClass() != obj.getClass()) {
604606
return false;
607+
}
605608
VirtualEdgeTarget other = (VirtualEdgeTarget) obj;
606609
return Objects.equals(targetType, other.targetType);
607610
}
@@ -712,12 +715,15 @@ public int hashCode() {
712715

713716
@Override
714717
public boolean equals(Object obj) {
715-
if (this == obj)
718+
if (this == obj) {
716719
return true;
717-
if (!super.equals(obj))
720+
}
721+
if (!super.equals(obj)) {
718722
return false;
719-
if (getClass() != obj.getClass())
723+
}
724+
if (getClass() != obj.getClass()) {
720725
return false;
726+
}
721727
InvocationVirtualEdgeTarget other = (InvocationVirtualEdgeTarget) obj;
722728
return argIndex == other.argIndex && Objects.equals(targetMethod, other.targetMethod);
723729
}

0 commit comments

Comments
 (0)