LexerTestCase: add missing @NotNull annotations to improve interoperability with Kotlin

GitOrigin-RevId: e98b6523585f4659687abca687c8b42618dfd8bc
This commit is contained in:
Piotr Tomiak
2023-07-12 15:44:52 +02:00
committed by intellij-monorepo-bot
parent 7616e0109a
commit 1d3e210cc4
14 changed files with 80 additions and 70 deletions

View File

@@ -3,6 +3,7 @@ package org.intellij.lang.regexp;
import com.intellij.lexer.Lexer;
import com.intellij.testFramework.LexerTestCase;
import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.util.EnumSet;
@@ -860,12 +861,12 @@ public class RegExpLexerTest extends LexerTestCase {
}
@Override
protected Lexer createLexer() {
protected @NotNull Lexer createLexer() {
return null;
}
@Override
protected String getDirPath() {
protected @NotNull String getDirPath() {
if (new File(getHomePath(), "community/RegExpSupport").isDirectory()) {
return "/community/RegExpSupport/testData/lexer";
}