mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
cleanup, notnull
GitOrigin-RevId: 8fd77df495ca642a5dfa612ebd94e483510f9600
This commit is contained in:
committed by
intellij-monorepo-bot
parent
98820f6db3
commit
94cd9ed863
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -89,6 +89,7 @@ public abstract class InspectionValidator {
|
||||
return myInspectionToolProvider.getInspectionClasses();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public final String getId() {
|
||||
return myId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user