org.sonar.l10n.java.rules.squid.S2701.html Maven / Gradle / Ivy
There's no reason to use literal boolean values in assertions. Doing so is at best confusing for maintainers, and at worst a bug.
Noncompliant Code Example
Assert.assertTrue(true); // Noncompliant
assertThat(true).isTrue(); // Noncompliant
© 2015 - 2025 Weber Informatics LLC | Privacy Policy