Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ public class JavaClassQualifiedNameReference
psiElement(Keyword.class)
.with(nameCondition(StandardPatterns.string().oneOf(JAVA_CLASS_STRING_TYPES))));

// #api203: remove "@SuppressWarnings({"rawtypes", "RedundantSuppression"})"
@SuppressWarnings({"rawtypes", "RedundantSuppression"})
private static PatternCondition<PsiElementBase> nameCondition(final ElementPattern<?> pattern) {
return new PatternConditionPlus<PsiElementBase, String>("_withPsiName", pattern) {
@Override
public boolean processValues(
PsiElementBase t,
ProcessingContext context,
PairProcessor<String, ProcessingContext> processor) {
// #api203 replace with "PairProcessor<? super String, ? super ProcessingContext>"
PairProcessor processor) {
return processor.process(t.getName(), context);
}
};
Expand Down