comparing_string_references_inspection: InspectionBundle prefer delegation

This commit is contained in:
Yann Cébron 2024-04-09 14:56:05 +02:00
parent 7c806a6e11
commit 17b90f2728

View File

@ -1,4 +1,4 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.intellij.sdk.codeInspection;
@ -8,15 +8,14 @@ import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;
public final class InspectionBundle extends DynamicBundle {
private static final InspectionBundle ourInstance = new InspectionBundle();
public final class InspectionBundle {
@NonNls
public static final String BUNDLE = "messages.InspectionBundle";
private static final DynamicBundle ourInstance = new DynamicBundle(InspectionBundle.class, BUNDLE);
private InspectionBundle() {
super(BUNDLE);
}
public static @Nls String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key,