Skip to content

Commit

Permalink
Replace toLowerCase() with toLowerCase(ROOT)
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Sep 28, 2023
1 parent 8bef1cf commit 950701a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/fusesource/jansi/internal/OSInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static boolean isWindows() {
}

public static boolean isAndroid() {
return System.getProperty("java.runtime.name", "").toLowerCase().contains("android");
return System.getProperty("java.runtime.name", "").toLowerCase(Locale.ROOT).contains("android");
}

public static boolean isAlpine() {
Expand All @@ -135,7 +135,7 @@ public static boolean isAlpine() {

InputStream in = p.getInputStream();
try {
return readFully(in).toLowerCase().contains("alpine");
return readFully(in).toLowerCase(Locale.ROOT).contains("alpine");
} finally {
in.close();
}
Expand Down

0 comments on commit 950701a

Please sign in to comment.