cleanup, notnull master
authorAlexey Kudravtsev <cdr@intellij.com>
Sun, 29 Nov 2020 22:38:41 +0000 (23:38 +0100)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Sun, 29 Nov 2020 22:40:04 +0000 (22:40 +0000)
GitOrigin-RevId: 8fd77df495ca642a5dfa612ebd94e483510f9600

android/src/org/jetbrains/android/compiler/AndroidDexCompiler.java

index 1048e03b1694250c2632b902ce1e8577ca6f42d9..3d08c807a17cebe1441b9bddbb33a74ef840421f 100644 (file)
@@ -52,17 +52,17 @@ public class AndroidDexCompiler implements ClassPostProcessingCompiler {
 
   @Override
   @NotNull
-  public ProcessingItem[] getProcessingItems(CompileContext context) {
+  public ProcessingItem[] getProcessingItems(@NotNull CompileContext context) {
     return ApplicationManager.getApplication().runReadAction(new PrepareAction(context));
   }
 
   @Override
-  public ProcessingItem[] process(CompileContext context, ProcessingItem[] items) {
+  public ProcessingItem[] process(@NotNull CompileContext context, @NotNull ProcessingItem[] items) {
     if (!AndroidCompileUtil.isFullBuild(context)) {
       return ProcessingItem.EMPTY_ARRAY;
     }
 
-    if (items != null && items.length > 0) {
+    if (items.length > 0) {
       context.getProgressIndicator().setText("Generating " + AndroidBuildCommonUtils.CLASSES_FILE_NAME + "...");
       return new ProcessAction(context, items).compute();
     }