mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
logging for IDEA-94673
This commit is contained in:
@@ -34,7 +34,6 @@ import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.ConcurrentModificationException;
|
||||
import java.util.List;
|
||||
@@ -144,7 +143,14 @@ public class ProblemsHolder {
|
||||
String message;
|
||||
if (reference instanceof EmptyResolveMessageProvider) {
|
||||
String pattern = ((EmptyResolveMessageProvider)reference).getUnresolvedMessagePattern();
|
||||
message = BundleBase.format(pattern, reference.getCanonicalText()); // avoid double formatting
|
||||
try {
|
||||
message = BundleBase.format(pattern, reference.getCanonicalText()); // avoid double formatting
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
// unresolvedMessage provided by third-party reference contains wrong format string (e.g. {}), tolerate it
|
||||
message = pattern;
|
||||
LOG.info(pattern);
|
||||
}
|
||||
}
|
||||
else {
|
||||
message = CodeInsightBundle.message("error.cannot.resolve.default.message", reference.getCanonicalText());
|
||||
|
||||
Reference in New Issue
Block a user