mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
notnull
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user