Skip to content

Commit

Permalink
style: specify default locale for lowercase method
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Jul 26, 2018
1 parent 3697131 commit 36df875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/src/main/java/com/bugsnag/android/StrictModeHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.text.TextUtils;

import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

class StrictModeHandler {
Expand Down Expand Up @@ -57,7 +58,7 @@ boolean isStrictModeThrowable(Throwable throwable) {
Throwable cause = getRootCause(throwable);
Class<? extends Throwable> causeClass = cause.getClass();
String simpleName = causeClass.getName();
return simpleName.toLowerCase().startsWith(STRICT_MODE_CLZ_NAME);
return simpleName.toLowerCase(Locale.US).startsWith(STRICT_MODE_CLZ_NAME);
}

@Nullable
Expand Down

0 comments on commit 36df875

Please sign in to comment.