mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
[Extract Method] generate method with newline between braces, since otherwise with enabled "Keep simple methods in one line" formatter will keep extracted method in one line
This commit is contained in:
@@ -251,7 +251,7 @@ public class PsiElementFactoryImpl extends PsiJavaParserFacadeImpl implements Ps
|
||||
}
|
||||
|
||||
final String canonicalText = returnType.getCanonicalText(true);
|
||||
final PsiJavaFile aFile = createDummyJavaFile("class _Dummy_ { public " + canonicalText + " " + name + "() {} }");
|
||||
final PsiJavaFile aFile = createDummyJavaFile("class _Dummy_ { public " + canonicalText + " " + name + "() {\n} }");
|
||||
final PsiClass[] classes = aFile.getClasses();
|
||||
if (classes.length < 1) {
|
||||
throw new IncorrectOperationException("Class was not created. Method name: " + name + "; return type: " + canonicalText);
|
||||
|
||||
Reference in New Issue
Block a user