Skip to content

Commit 50c3791

Browse files
develarintellij-monorepo-bot
authored andcommitted
don't extend DynamicBundle
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
1 parent 7935927 commit 50c3791

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/com/jetbrains/php/tools/quality/phpstan/PhpStanBundle.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@
88

99
import java.util.function.Supplier;
1010

11-
public final class PhpStanBundle extends DynamicBundle {
12-
@NonNls public static final String BUNDLE = "messages.PhpStanBundle";
13-
private static final PhpStanBundle INSTANCE = new PhpStanBundle();
11+
public final class PhpStanBundle {
12+
public static final @NonNls String BUNDLE = "messages.PhpStanBundle";
13+
private static final DynamicBundle INSTANCE = new DynamicBundle(PhpStanBundle.class, BUNDLE);
1414

15-
private PhpStanBundle() { super(BUNDLE); }
15+
private PhpStanBundle() {}
1616

17-
@NotNull
18-
public static @Nls String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
17+
public static @NotNull @Nls String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
1918
return INSTANCE.getMessage(key, params);
2019
}
2120

22-
@NotNull
23-
public static Supplier<@Nls String> messagePointer(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
21+
public static @NotNull Supplier<@Nls String> messagePointer(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
2422
return INSTANCE.getLazyMessage(key, params);
2523
}
2624
}

0 commit comments

Comments
 (0)