mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-141450 Incorrect typo generated by "attribute's"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user