From 8e2878a6eb3470fb588d7a021d38188a3546eb0b Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Fri, 23 May 2014 14:51:03 +0400 Subject: [PATCH] Minor: annotate parameter --- .../jetbrains/jet/lang/resolve/lazy/KotlinCodeAnalyzer.java | 4 ++-- .../org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java | 2 +- .../jetbrains/jet/plugin/project/ResolveSessionForBodies.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/KotlinCodeAnalyzer.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/KotlinCodeAnalyzer.java index 7049c86544e..ebfcbf34676 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/KotlinCodeAnalyzer.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/KotlinCodeAnalyzer.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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. @@ -53,7 +53,7 @@ public interface KotlinCodeAnalyzer { BindingContext getBindingContext(); @NotNull - DeclarationDescriptor resolveToDescriptor(JetDeclaration declaration); + DeclarationDescriptor resolveToDescriptor(@NotNull JetDeclaration declaration); @NotNull ScopeProvider getScopeProvider(); diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java index 1702c014754..32ce20a87f2 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java @@ -343,7 +343,7 @@ public class ResolveSession implements KotlinCodeAnalyzer { @Override @NotNull - public DeclarationDescriptor resolveToDescriptor(JetDeclaration declaration) { + public DeclarationDescriptor resolveToDescriptor(@NotNull JetDeclaration declaration) { DeclarationDescriptor result = declaration.accept(new JetVisitor() { @Override public DeclarationDescriptor visitClass(@NotNull JetClass klass, Void data) { diff --git a/idea/src/org/jetbrains/jet/plugin/project/ResolveSessionForBodies.java b/idea/src/org/jetbrains/jet/plugin/project/ResolveSessionForBodies.java index 359bd58c5f3..c0340cfa33e 100644 --- a/idea/src/org/jetbrains/jet/plugin/project/ResolveSessionForBodies.java +++ b/idea/src/org/jetbrains/jet/plugin/project/ResolveSessionForBodies.java @@ -78,7 +78,7 @@ public class ResolveSessionForBodies implements KotlinCodeAnalyzer, Modification @NotNull @Override - public DeclarationDescriptor resolveToDescriptor(JetDeclaration declaration) { + public DeclarationDescriptor resolveToDescriptor(@NotNull JetDeclaration declaration) { if (!JetPsiUtil.isLocal(declaration)) { return resolveSession.resolveToDescriptor(declaration); }