From 9a3f955a519b8b4c99720dafbcf2856a3bb6aec3 Mon Sep 17 00:00:00 2001 From: Alexey Gopachenko Date: Mon, 9 Nov 2009 20:26:32 +0300 Subject: [PATCH] Spellchecker fix string duplication --- .../com/intellij/spellchecker/inspections/SpellCheckingInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java b/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java index 5133c872ad..1a5badd5b1 100644 --- a/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java +++ b/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java @@ -201,7 +201,7 @@ public class SpellCheckingInspection extends LocalInspectionTool { TextRange textRange, Collection fixes) { //TODO: these descriptions eat LOTS of HEAP on batch run - need either to make them constant or evaluate template dynamically // ( add something like #text substitution) - final String defaultDescription = SpellCheckerBundle.message("word.0.1.is.misspelled", token.getElement().getLanguage()); + final String defaultDescription = SpellCheckerBundle.message("word.0.1.is.misspelled"); final String tokenDescription = token.getDescription(); final String description = tokenDescription == null ? defaultDescription : tokenDescription; final TextRange highlightRange = TextRange.from(token.getOffset() + textRange.getStartOffset(), textRange.getLength()); -- 2.11.4.GIT