don't extend DynamicBundle

GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
This commit is contained in:
Vladimir Krivosheev
2023-05-05 08:11:48 +02:00
committed by intellij-monorepo-bot
parent b2be1ed69d
commit 227d75a1fc
186 changed files with 968 additions and 1474 deletions

View File

@@ -2,26 +2,26 @@
package org.jetbrains.idea.svn;
import com.intellij.DynamicBundle;
import org.jetbrains.annotations.*;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;
import java.util.function.Supplier;
public final class SvnBundle extends DynamicBundle {
@NonNls public static final String BUNDLE = "messages.SvnBundle";
public final class SvnBundle {
public static final @NonNls String BUNDLE = "messages.SvnBundle";
private static final SvnBundle INSTANCE = new SvnBundle();
private static final DynamicBundle INSTANCE = new DynamicBundle(SvnBundle.class, BUNDLE);
private SvnBundle() {
super(BUNDLE);
}
@NotNull
public static @Nls String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
public static @NotNull @Nls String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
return INSTANCE.getMessage(key, params);
}
@NotNull
public static Supplier<@Nls String> messagePointer(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
public static @NotNull Supplier<@Nls String> messagePointer(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
return INSTANCE.getLazyMessage(key, params);
}
}