mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-40832 java spellchecker should check only declarations and ignore usages
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user