mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] get rid of duplicate code
This commit is contained in:
+1
-6
@@ -485,12 +485,7 @@ public class GrCodeReferenceElementImpl extends GrReferenceElementImpl<GrCodeRef
|
||||
@Override
|
||||
@NotNull
|
||||
public GroovyResolveResult[] multiResolve(boolean incompleteCode) {
|
||||
final ResolveResult[] results = TypeInferenceHelper.getCurrentContext().multiResolve(this, incompleteCode, RESOLVER);
|
||||
if (results.length == 0) {
|
||||
return GroovyResolveResult.EMPTY_ARRAY;
|
||||
}
|
||||
|
||||
return (GroovyResolveResult[])results;
|
||||
return TypeInferenceHelper.getCurrentContext().multiResolve(this, incompleteCode, RESOLVER);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user