mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-62161 Multi-line TODOs
added nullability annotations (following IDEA-CR-34406)
This commit is contained in:
@@ -51,7 +51,7 @@ public class JavaIndexPatternBuilder implements IndexPatternBuilder {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getCharsAllowedInContinuationPrefix(IElementType tokenType) {
|
||||
public String getCharsAllowedInContinuationPrefix(@NotNull IElementType tokenType) {
|
||||
return tokenType == JavaTokenType.C_STYLE_COMMENT || tokenType == JavaDocElementType.DOC_COMMENT ? "*" : "";
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -20,7 +20,8 @@ class IndexPatternOccurrenceImpl implements IndexPatternOccurrence {
|
||||
private final IndexPattern myPattern;
|
||||
private final List<TextRange> myAdditionalRanges;
|
||||
|
||||
public IndexPatternOccurrenceImpl(PsiFile file, int startOffset, int endOffset, IndexPattern pattern, List<TextRange> additionalRanges) {
|
||||
public IndexPatternOccurrenceImpl(@NotNull PsiFile file, int startOffset, int endOffset,
|
||||
@NotNull IndexPattern pattern, @NotNull List<TextRange> additionalRanges) {
|
||||
myFile = file;
|
||||
myStartOffset = startOffset;
|
||||
myEndOffset = endOffset;
|
||||
|
||||
@@ -30,7 +30,7 @@ public interface IndexPatternBuilder {
|
||||
* on subsequent line
|
||||
*/
|
||||
@NotNull
|
||||
default String getCharsAllowedInContinuationPrefix(IElementType tokenType) {
|
||||
default String getCharsAllowedInContinuationPrefix(@NotNull IElementType tokenType) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user