Minor code editings

This commit is contained in:
Valentin Kipyatkov
2014-10-06 21:49:41 +04:00
parent 41c4c3befd
commit cc3ca57b75
3 changed files with 5 additions and 2 deletions
@@ -38,6 +38,7 @@ public class JetMultiDeclarationEntry extends JetNamedDeclarationNotStubbed impl
return TypeRefHelpersPackage.getTypeRef(this);
}
@Override
@Nullable
public JetTypeReference setTypeRef(@Nullable JetTypeReference typeRef) {
return TypeRefHelpersPackage.setTypeRef(this, getNameIdentifier(), typeRef);
@@ -149,6 +149,7 @@ public class JetProperty extends JetTypeParameterListOwnerStub<PsiJetPropertyStu
return TypeRefHelpersPackage.getTypeRef(this);
}
@Override
@Nullable
public JetTypeReference setTypeRef(@Nullable JetTypeReference typeRef) {
return TypeRefHelpersPackage.setTypeRef(this, getNameIdentifier(), typeRef);
@@ -29,6 +29,7 @@ import com.intellij.util.PlatformIcons;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.lang.descriptors.FunctionDescriptor;
import org.jetbrains.jet.lang.psi.JetNamedFunction;
import org.jetbrains.jet.lang.psi.JetParameterList;
import org.jetbrains.jet.lang.psi.JetPsiFactory;
import org.jetbrains.jet.lang.psi.JetTypeReference;
import org.jetbrains.jet.plugin.JetBundle;
@@ -143,8 +144,8 @@ public class JetChangeFunctionSignatureAction implements QuestionAction {
ShortenReferences.INSTANCE$.process(newTypeRef);
}
function.getValueParameterList().replace(patternFunction.getValueParameterList());
ShortenReferences.INSTANCE$.process(function.getValueParameterList());
JetParameterList newParameterList = (JetParameterList) function.getValueParameterList().replace(patternFunction.getValueParameterList());
ShortenReferences.INSTANCE$.process(newParameterList);
}
});
}