Skip to content

Commit

Permalink
fix lowercase warning
Browse files Browse the repository at this point in the history
  • Loading branch information
breedx-splk committed Jul 24, 2023
1 parent ffa5cf1 commit a470d06
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import net.ltgt.gradle.errorprone.CheckSeverity
import net.ltgt.gradle.errorprone.errorprone
import net.ltgt.gradle.nullaway.nullaway
import java.util.Locale

plugins {
id("net.ltgt.errorprone")
Expand All @@ -20,7 +21,7 @@ nullaway {
tasks {
withType<JavaCompile>().configureEach {
options.errorprone {
if (name.toLowerCase().contains("test")) {
if (name.lowercase(Locale.getDefault()).contains("test")) {
// just disable all error prone checks for test
isEnabled.set(false);
}
Expand Down

0 comments on commit a470d06

Please sign in to comment.