Skip to content

Commit

Permalink
Update ScopeFinderTarget.java
Browse files Browse the repository at this point in the history
The key issue here is the use of @nullable with void. This is problematic because:

1. The @nullable annotation is meant to indicate that a method can return null
2. However, void means the method doesn't return anything at all
3. Therefore, @nullable on a void method is meaningless and incorrect

In most IDEs, this would likely trigger a warning because it's a nonsensical combination. The method itself (printing "in method") would work fine, but the annotation serves no purpose and is technically incorrect.
  • Loading branch information
DannyGooo authored Dec 2, 2024
1 parent 1388b67 commit ae92664
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/systemTest/targets/soot/asm/ScopeFinderTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public ScopeFinderTarget() {
field = new Object();
}

@Nullable
public void method() {
System.out.println("in method");
}
Expand Down

0 comments on commit ae92664

Please sign in to comment.