mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
correct caching mixins to metaclass
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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -237,10 +237,10 @@ public class GdkMethodUtil {
|
|||||||
GrMethodCall call = (GrMethodCall)statement;
|
GrMethodCall call = (GrMethodCall)statement;
|
||||||
|
|
||||||
Pair<PsiClassType, GrReferenceExpression> original = getTypeToMixIn(call);
|
Pair<PsiClassType, GrReferenceExpression> original = getTypeToMixIn(call);
|
||||||
if (original == null) return null;
|
if (original == null) return Result.create(null, PsiModificationTracker.MODIFICATION_COUNT);
|
||||||
|
|
||||||
PsiClass mix = getTypeToMix(call);
|
PsiClass mix = getTypeToMix(call);
|
||||||
if (mix == null) return null;
|
if (mix == null) return Result.create(null, PsiModificationTracker.MODIFICATION_COUNT);
|
||||||
|
|
||||||
return Result.create(new Trinity<PsiClassType, GrReferenceExpression, PsiClass>(original.first, original.second, mix),
|
return Result.create(new Trinity<PsiClassType, GrReferenceExpression, PsiClass>(original.first, original.second, mix),
|
||||||
PsiModificationTracker.MODIFICATION_COUNT);
|
PsiModificationTracker.MODIFICATION_COUNT);
|
||||||
|
|||||||
Reference in New Issue
Block a user