Skip to content

Commit 78d98b4

Browse files
daniel-beckolivergondza
authored andcommitted
[FIX JENKINS-35381] Restrict ResourceBundleUtil (#2393)
(cherry picked from commit 9657629)
1 parent 95c3f27 commit 78d98b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/jenkins/util/ResourceBundleUtil.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
* @author <a href="mailto:[email protected]">[email protected]</a>
4040
* @since 2.0
4141
*/
42+
@Restricted(NoExternalUse.class)
4243
public class ResourceBundleUtil {
4344

4445
private static final Map<String, JSONObject> bundles = new ConcurrentHashMap<>();
@@ -52,7 +53,6 @@ private ResourceBundleUtil() {
5253
* @return The bundle JSON.
5354
* @throws MissingResourceException Missing resource bundle.
5455
*/
55-
@Restricted(NoExternalUse.class)
5656
public static @Nonnull JSONObject getBundle(@Nonnull String baseName) throws MissingResourceException {
5757
return getBundle(baseName, Locale.getDefault());
5858
}
@@ -64,7 +64,6 @@ private ResourceBundleUtil() {
6464
* @return The bundle JSON.
6565
* @throws MissingResourceException Missing resource bundle.
6666
*/
67-
@Restricted(NoExternalUse.class)
6867
public static @Nonnull JSONObject getBundle(@Nonnull String baseName, @Nonnull Locale locale) throws MissingResourceException {
6968
String bundleKey = baseName + ":" + locale.toString();
7069
JSONObject bundleJSON = bundles.get(bundleKey);

0 commit comments

Comments
 (0)