IDEA-62161 Multi-line TODOs

added nullability annotations (following IDEA-CR-34406)
This commit is contained in:
Dmitry Batrak
2018-07-04 10:43:10 +03:00
parent 134d0069fe
commit 64a674fa98
3 changed files with 4 additions and 3 deletions
@@ -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 ? "*" : "";
}
}
@@ -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 "";
}
}