Branch: refs/heads/main
Home: https://github.com/pmd/pmd
Commit: 1e32029057204c1899ec1f344a43334be0d519a7
https://github.com/pmd/pmd/commit/1e32029057204c1899ec1f344a43334be0d519a7
Author: Dan Halperin <[email protected]>
Date: 2026-07-06 (Mon, 06 Jul 2026)
Changed paths:
M docs/pages/release_notes.md
M
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/internal/TestFrameworksUtil.java
M
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/errorprone/xml/AssertEqualsArgumentOrder.xml
Log Message:
-----------
[java] Fix #6826: AssertEqualsArgumentOrder false positive for double/float
delta (#6827)
The wildcard assertEquals(_,_,_) matchers for org.junit.Assert and
junit.framework.TestCase modeled the 3-arg form as (message?, expected,
actual), so for the delta overload assertEquals(double expected, double
actual, double delta) they read the delta as "actual" and flagged
correctly-ordered calls.
Replace the wildcards with the forms actually in use: (String,_,_) and
(String,_,_,_) for the message variants, (double,double,double) and
(float,float,float) for the deltas. The message + delta form was not
matched at all before, so a swap there went undetected.
Fixes pmd/pmd#6826.
Co-authored-by: Sören Glimm <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/pmd/pmd/settings/notifications
_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits