projects
/
idea
/
community.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/master' into develar/is
[idea/community.git]
/
platform
/
analysis-impl
/
src
/
com
/
intellij
/
codeInsight
/
daemon
/
QuickFixBundle.java
diff --git
a/platform/analysis-impl/src/com/intellij/codeInsight/daemon/QuickFixBundle.java
b/platform/analysis-impl/src/com/intellij/codeInsight/daemon/QuickFixBundle.java
index 508aa95cbd89beb62be770e1f6281c0e83303625..fbcef3ca6a3f83862cb31617915ef9f424e8c59d 100644
(file)
--- a/
platform/analysis-impl/src/com/intellij/codeInsight/daemon/QuickFixBundle.java
+++ b/
platform/analysis-impl/src/com/intellij/codeInsight/daemon/QuickFixBundle.java
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 2000-20
09
JetBrains s.r.o.
+ * Copyright 2000-20
13
JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-17,6
+17,7
@@
package com.intellij.codeInsight.daemon;
import com.intellij.CommonBundle;
import org.jetbrains.annotations.NonNls;
import com.intellij.CommonBundle;
import org.jetbrains.annotations.NonNls;
+import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;
import java.lang.ref.Reference;
import org.jetbrains.annotations.PropertyKey;
import java.lang.ref.Reference;
@@
-34,13
+35,12
@@
public class QuickFixBundle {
private QuickFixBundle() {
}
private QuickFixBundle() {
}
- public static String message(@No
nNls @PropertyKey(resourceBundle = BUNDLE)String key,
Object... params) {
+ public static String message(@No
tNull @NonNls @PropertyKey(resourceBundle = BUNDLE)String key, @NotNull
Object... params) {
return CommonBundle.message(getBundle(), key, params);
}
private static ResourceBundle getBundle() {
return CommonBundle.message(getBundle(), key, params);
}
private static ResourceBundle getBundle() {
- ResourceBundle bundle = null;
- if (ourBundle != null) bundle = ourBundle.get();
+ ResourceBundle bundle = com.intellij.reference.SoftReference.dereference(ourBundle);
if (bundle == null) {
bundle = ResourceBundle.getBundle(BUNDLE);
ourBundle = new SoftReference<ResourceBundle>(bundle);
if (bundle == null) {
bundle = ResourceBundle.getBundle(BUNDLE);
ourBundle = new SoftReference<ResourceBundle>(bundle);