Skip to content

Commit

Permalink
Fix DumbMethods brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
JuditKnoll committed Oct 16, 2023
1 parent 0084a18 commit a521e96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Fixed missing null checks ([[#2629](https://github.com/spotbugs/spotbugs/issues/2629)])
- Disabled DontReusePublicIdentifiers due to the high false positives rate ([[#2627](https://github.com/spotbugs/spotbugs/issues/2627)])
- Removed signature of methods using UTF-8 in DefaultEncodingDetector ([[#2634](https://github.com/spotbugs/spotbugs/issues/2634)])
- Fix exception escapes after calling functions of JUnit Assert or Assertions ([[#2640](https://github.com/spotbugs/spotbugs/issues/2640)])

## 4.8.0 - 2023-10-11

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ public void sawOpcode(int seen) {
}

if (seen == Const.INVOKESTATIC && ("junit/framework/Assert".equals(getClassConstantOperand()) || "org/junit/Assert".equals(
getClassConstantOperand()) || "org/junit/jupiter/api/Assertion".equals(getClassConstantOperand())
&& "assertNotNull".equals(getNameConstantOperand()))) {
getClassConstantOperand()) || "org/junit/jupiter/api/Assertion".equals(getClassConstantOperand()))
&& "assertNotNull".equals(getNameConstantOperand())) {

OpcodeStack.Item item = stack.getStackItem(0);
Object o = item.getConstant();
Expand Down

0 comments on commit a521e96

Please sign in to comment.