WI-40832 java spellchecker should check only declarations and ignore usages

This commit is contained in:
Alexey Gopachenko
2018-02-26 16:46:04 +01:00
parent 8012652699
commit 52c42eb0fd
3 changed files with 9 additions and 9 deletions
@@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull;
*/
public class NamedElementTokenizer<T extends PsiNamedElement> extends Tokenizer<T> {
private final Tokenizer<PsiIdentifier> myIdentifierTokenizer = new PsiIdentifierTokenizer();
private final PsiTypeTokenizer myTypeTokenizer = new PsiTypeTokenizer();
//private final PsiTypeTokenizer myTypeTokenizer = new PsiTypeTokenizer();
@Override
public void tokenize(@NotNull T element, TokenConsumer consumer) {
@@ -51,9 +51,9 @@ public class NamedElementTokenizer<T extends PsiNamedElement> extends Tokenizer<
if (type == null || !type.equalsIgnoreCase(identifier)) {
myIdentifierTokenizer.tokenize(psiIdentifier, consumer);
}
if (psiType != null) {
myTypeTokenizer.tokenize(psiType, consumer);
}
//if (psiType != null) {
// myTypeTokenizer.tokenize(psiType, consumer);
//}
}
}
@@ -1,18 +1,18 @@
class Generic<TYPO descr="Typo: In word 'Testt'">Testt</TYPO> {
public void a( Gen<TYPO descr="Typo: In word 'Testt'">Testt</TYPO><?> obj ) {
public void a( GenTestt<?> obj ) {
}
public void b( AnotherGen<TYPO descr="Typo: In word 'Testt'">Testt</TYPO><?> obj ) {
public void b( AnotherGenTestt<?> obj ) {
}
public void c( <TYPO descr="Typo: In word 'Predicatte'">Predicatte</TYPO><?> obj ) {
public void c( Predicatte<?> obj ) {
}
public void d( Another<TYPO descr="Typo: In word 'Predicatte'">Predicatte</TYPO><?> obj ) {
public void d( AnotherPredicatte<?> obj ) {
}
@@ -3,7 +3,7 @@ class VarArgTest {
public void a(Test first, Test... rest){
}
public void b(<TYPO descr="Typo: In word 'Testt'">Testt</TYPO> first, <TYPO descr="Typo: In word 'Testt'">Testt</TYPO>... rest){
public void b(Testt first, Testt... rest){
}
public class Test {