Cleanup (missing annotations)

This commit is contained in:
Roman Shevchenko
2016-09-29 15:55:12 +02:00
parent 07a47c9f9e
commit ce56e331b3
2 changed files with 4 additions and 3 deletions
@@ -48,6 +48,7 @@ import com.intellij.util.ArrayUtil;
import com.intellij.util.indexing.FileBasedIndex;
import com.intellij.util.ui.UIUtil;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.util.ArrayList;
@@ -95,7 +96,7 @@ public class UpdateCacheTest extends PsiTestCase {
final PsiFile finalFile = file;
file = new WriteAction<PsiFile>() {
@Override
protected void run(Result<PsiFile> result) throws Throwable {
protected void run(@NotNull Result<PsiFile> result) throws Throwable {
PsiFile res = (PsiFile)root.add(finalFile);
result.setResult(res);
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -168,7 +168,7 @@ public class LibraryTest extends ModuleRootManagerTestCase {
LibraryTable table = getLibraryTable();
Library library = new WriteAction<Library>() {
@Override
protected void run(Result<Library> result) throws Throwable {
protected void run(@NotNull Result<Library> result) throws Throwable {
Library res = table.createLibrary("native");
result.setResult(res);
}