Skip to content

Commit

Permalink
fixed style violations
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenArzt committed May 24, 2024
1 parent 47ad2a6 commit 249f856
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/main/java/soot/jimple/spark/pag/PAG.java
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,9 @@ public void addCallTarget(Edge e) {
ln = ln.getReplacement();

RefType rt = de.getTargetType();
if (rt == null)
if (rt == null) {
rt = (RefType) ie.getMethodRef().getReturnType();
}

// Fake an allocation node
AllocNode alloc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,12 +596,15 @@ public int hashCode() {

@Override
public boolean equals(Object obj) {
if (this == obj)
if (this == obj) {
return true;
if (obj == null)
}
if (obj == null) {
return false;
if (getClass() != obj.getClass())
}
if (getClass() != obj.getClass()) {
return false;
}
VirtualEdgeTarget other = (VirtualEdgeTarget) obj;
return Objects.equals(targetType, other.targetType);
}
Expand Down Expand Up @@ -712,12 +715,15 @@ public int hashCode() {

@Override
public boolean equals(Object obj) {
if (this == obj)
if (this == obj) {
return true;
if (!super.equals(obj))
}
if (!super.equals(obj)) {
return false;
if (getClass() != obj.getClass())
}
if (getClass() != obj.getClass()) {
return false;
}
InvocationVirtualEdgeTarget other = (InvocationVirtualEdgeTarget) obj;
return argIndex == other.argIndex && Objects.equals(targetMethod, other.targetMethod);
}
Expand Down

0 comments on commit 249f856

Please sign in to comment.