change signature: no sense to check method return type by default

This commit is contained in:
Kirill.Safonov
2010-09-09 13:02:08 +04:00
parent fba81cce20
commit 96b99ce58e
@@ -199,11 +199,6 @@ public abstract class ChangeSignatureDialogBase<P extends ParameterInfo, M exten
JLabel typePrompt = new JLabel();
panel.add(typePrompt);
final String returnTypeText = myMethod.getReturnTypeText();
if (returnTypeText == null) {
LOG.error(myMethod.getClass().getName());
return panel;
}
myReturnTypeCodeFragment = createReturnTypeCodeFragment();
final Document document = PsiDocumentManager.getInstance(myProject).getDocument(myReturnTypeCodeFragment);
myReturnTypeField = new EditorTextField(document, myProject, getFileType());