consume less memory in spellchecker highlighting messages

This commit is contained in:
peter
2016-05-31 13:44:22 +02:00
parent 9638e98265
commit 1c94594b61
2 changed files with 2 additions and 6 deletions
@@ -165,7 +165,7 @@ public class SpellCheckingInspection extends LocalInspectionTool {
}
assert textRange.getStartOffset() >= 0;
final String description = SpellCheckerBundle.message("typo.in.word.ref", wordWithTypo);
final String description = SpellCheckerBundle.message("typo.in.word.ref");
return holder.getManager()
.createProblemDescriptor(element, textRange, description, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, onTheFly, fixes);
}
@@ -4,18 +4,14 @@ rename.to.0=Typo: Rename to ''{0}''
rename.to=Typo: Rename to...
spelling=Spelling
spellchecking.inspection.name=Typo
comments.with.mistakes=Comments with mistakes
typo.in.word.ref=Typo: In word ''{0}''
typo.in.word.ref=Typo: In word '#ref'
add.0.to.dictionary=Typo: Save ''{0}'' to dictionary
add.to.dictionary=Save to dictionary
class.name.with.mistakes=Class name with mistakes
method.name.with.mistakes=Method name with mistakes
field.name.with.mistakes=Field name with mistakes
xml.with.mistakes=XML with mistakes
property.value.with.mistakes=Property value with mistakes
string.value.with.mistakes=Literal expression with mistakes
local.variable.name.with.mistakes=Local variable name with mistakes
doccomment.with.mistakes=Doc comment with mistake
user.dictionary=User Dictionary
ignored.words=Ignored Words
enter.simple.word=Enter word: