From 3df58b681b161c40c452aa778a3f2b4f56650ee5 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 7 Mar 2011 10:46:05 +0100 Subject: [PATCH] extract method dialog: cosmetics: space between (IDEA-66099) --- .../refactoring/extractMethod/ExtractMethodDialog.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodDialog.java b/java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodDialog.java index c5637ed8a6ce..a935d6046c5a 100644 --- a/java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodDialog.java +++ b/java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodDialog.java @@ -373,8 +373,11 @@ public class ExtractMethodDialog extends AbstractExtractDialog { buffer.append("static "); } if (myTypeParameterList != null) { - buffer.append(myTypeParameterList.getText()); - buffer.append(" "); + final String typeParamsText = myTypeParameterList.getText(); + if (!typeParamsText.isEmpty()) { + buffer.append(typeParamsText); + buffer.append(" "); + } } if (isChainedConstructor()) {