This commit is contained in:
Alexey Kudravtsev
2013-11-22 21:03:33 +04:00
parent 59858a4e87
commit 3cf543e3ca
2 changed files with 5 additions and 4 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2013 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.
@@ -25,7 +25,7 @@ public abstract class BaseActionRunnable<T> {
return mySilentExecution;
}
protected abstract void run(Result<T> result) throws Throwable;
protected abstract void run(@NotNull Result<T> result) throws Throwable;
@NotNull
public abstract RunResult<T> execute();
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2013 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.
@@ -17,6 +17,7 @@ package com.intellij.openapi.application;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProcessCanceledException;
import org.jetbrains.annotations.NotNull;
public class RunResult<T> extends Result<T> {
@@ -28,7 +29,7 @@ public class RunResult<T> extends Result<T> {
protected RunResult() {
}
public RunResult(BaseActionRunnable<T> action) {
public RunResult(@NotNull BaseActionRunnable<T> action) {
myActionRunnable = action;
}