Skip to content

Commit 310266b

Browse files
committed
Stop using deprecated Locale constructor
1 parent ff2fa83 commit 310266b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/util/LocaleUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2008 IBM Corporation and others.
2+
* Copyright (c) 2008, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -51,7 +51,7 @@ public static String expandLocaleName(String name) {
5151
variant = tokenizer.nextToken();
5252
}
5353

54-
Locale locale = new Locale(language, country, variant);
54+
Locale locale = Locale.of(language, country, variant);
5555
return locale.toString() + " - " + locale.getDisplayName(); //$NON-NLS-1$
5656
}
5757

0 commit comments

Comments
 (0)