cleanup, notnull

GitOrigin-RevId: 8fd77df495ca642a5dfa612ebd94e483510f9600
This commit is contained in:
Alexey Kudravtsev
2020-11-29 23:38:41 +01:00
committed by intellij-monorepo-bot
parent 98820f6db3
commit 94cd9ed863
6 changed files with 72 additions and 124 deletions

View File

@@ -64,7 +64,7 @@ public interface FileProcessingCompiler extends Compiler, ValidityStateFactory {
* @return a non-null array of all items that potentially can be processed at the moment of method call. Even if
* the file is not changed, it should be returned if it _can_ be processed by the compiler implementing the interface.
*/
ProcessingItem @NotNull [] getProcessingItems(CompileContext context);
ProcessingItem @NotNull [] getProcessingItems(@NotNull CompileContext context);
/**
* Compiles the specified items.
@@ -74,6 +74,6 @@ public interface FileProcessingCompiler extends Compiler, ValidityStateFactory {
* {@link #getProcessingItems} method.
* @return successfully processed items.
*/
ProcessingItem[] process(CompileContext context, ProcessingItem[] items);
ProcessingItem[] process(@NotNull CompileContext context, ProcessingItem @NotNull [] items);
}

View File

@@ -17,6 +17,7 @@ package com.intellij.openapi.compiler;
import com.intellij.util.DeprecatedMethodException;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
/**
* An interface for compilers which validate something after the compilation finishes. The validators are disabled by default and can be
@@ -38,6 +39,7 @@ public interface Validator extends FileProcessingCompiler {
/**
* Returns unique ID which can be used in project configuration files.
*/
@NotNull
default @NonNls String getId() {
DeprecatedMethodException.reportDefaultImplementation(getClass(), "getId",
"The default implementation delegates to 'getDescription' which may be localized but return value of this method must not depend on current localization.");

View File

@@ -89,6 +89,7 @@ public abstract class InspectionValidator {
return myInspectionToolProvider.getInspectionClasses();
}
@NotNull
public final String getId() {
return myId;
}