IDEA-141450 Incorrect typo generated by "attribute's"

This commit is contained in:
Maxim.Mossienko
2015-06-16 19:25:03 +02:00
parent 60cda6aee6
commit f2a3b18b16
2 changed files with 6 additions and 2 deletions
@@ -257,7 +257,11 @@ public class SpellCheckingInspection extends LocalInspectionTool {
@Override
public void consume(TextRange textRange) {
final String word = textRange.substring(myText);
String word = textRange.substring(myText);
int aposIndex = word.indexOf('\'');
if (aposIndex != -1) {
word = word.substring(0, aposIndex); // IdentifierSplitter.WORD leaves '
}
if (myHolder.isOnTheFly() && myAlreadyChecked.contains(word)) {
return;
}
@@ -17,7 +17,7 @@ package testData.inspection.commentsWithMistakes.data.java.src;
/*
@author shkate@jetbrains.com
<li style="color;">some context</li>
<li style="color;">some context</li> attribute's
*/
class SPITest1 {
/* boolean is Java keyword