mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
don't extend DynamicBundle
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b2be1ed69d
commit
227d75a1fc
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user