@Nullable/@NotNull added to various classes
This commit is contained in:
@@ -18,6 +18,7 @@ package org.jetbrains.jet.plugin;
|
||||
|
||||
import com.intellij.CommonBundle;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.PropertyKey;
|
||||
|
||||
import java.lang.ref.Reference;
|
||||
@@ -33,6 +34,7 @@ public class JetBundle {
|
||||
private JetBundle() {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static String message(@NonNls @PropertyKey(resourceBundle = BUNDLE)String key, Object... params) {
|
||||
return CommonBundle.message(getBundle(), key, params);
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ public final class AnalyzerFacadeWithCache {
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static BindingContext getContextForElement(@NotNull JetElement jetElement) {
|
||||
CancelableResolveSession cancelableResolveSession = getLazyResolveSessionForFile((JetFile) jetElement.getContainingFile());
|
||||
return cancelableResolveSession.resolveToElement(jetElement);
|
||||
|
||||
@@ -58,6 +58,7 @@ public class CancelableResolveSession implements KotlinCodeAnalyzer, Modificatio
|
||||
this.resolveElementCache = new ResolveElementCache(resolveSession, project);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public BindingContext resolveToElement(final JetElement element) {
|
||||
return computableWithProcessingCancel(new Computable<BindingContext>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user