Skip to content

Commit

Permalink
Fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed May 12, 2024
1 parent 65f7253 commit c5f1d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BitCounterTest {
@BeforeAll
static void getLocale() {
defaultLocale = Locale.getDefault();
Locale.setDefault(new Locale("de", "CH"));
Locale.setDefault(Locale.forLanguageTag("de-CH"));
}

@AfterAll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class UnitUtilitiesTest {
@BeforeAll
static void getLocale() {
defaultLocale = Locale.getDefault();
Locale.setDefault(new Locale("de", "CH"));
Locale.setDefault(Locale.forLanguageTag("de-CH"));
}

@AfterAll
Expand Down

0 comments on commit c5f1d4c

Please sign in to comment.