This commit is contained in:
Alexey Kudravtsev
2014-04-24 14:43:29 +04:00
parent f2fb07f254
commit 835ce62e1b
2 changed files with 8 additions and 2 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-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.
@@ -45,14 +45,17 @@ public interface GroovyResolveResult extends ResolveResult {
SpreadState getSpreadState();
GroovyResolveResult EMPTY_RESULT = new GroovyResolveResult() {
@Override
public boolean isAccessible() {
return false;
}
@Override
public PsiElement getCurrentFileResolveContext() {
return null;
}
@Override
public boolean isStaticsOK() {
return true;
}
@@ -62,16 +65,19 @@ public interface GroovyResolveResult extends ResolveResult {
return false;
}
@Override
@NotNull
public PsiSubstitutor getSubstitutor() {
return PsiSubstitutor.EMPTY;
}
@Override
@Nullable
public PsiElement getElement() {
return null;
}
@Override
public boolean isValidResult() {
return false;
}
@@ -73,7 +73,7 @@ public class TypesUtil {
@NonNls
public static final Map<String, PsiType> ourQNameToUnboxed = new HashMap<String, PsiType>();
public static final PsiPrimitiveType[] PRIMITIVES = new PsiPrimitiveType[]{
public static final PsiPrimitiveType[] PRIMITIVES = {
PsiType.BYTE,
PsiType.CHAR,
PsiType.DOUBLE,