mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
IDEA-90860 Reformat Code breaks Copyright/Header
Test fixes
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
class C {
|
||||
{
|
||||
String q = (String) ( (String)"abc" );
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
class C {
|
||||
{
|
||||
String q = (String) ((String) "abc");
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
public class Foo {
|
||||
public void foo(boolean a, int x,
|
||||
int y, int z) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
public class Foo {
|
||||
public void foo(boolean a, int x,
|
||||
int y, int z) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
class X {
|
||||
void Y() {
|
||||
z: for (int i = 0; i < 24; i++) {}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
class X {
|
||||
void Y() {
|
||||
z:
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
public class C {
|
||||
C ourC =
|
||||
new C(
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
public class C {
|
||||
C ourC =
|
||||
new C(
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
class Foo {
|
||||
public void foo(){
|
||||
return _status == EnhancedMemberOrderStatus.EDITING
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
class Foo {
|
||||
public void foo() {
|
||||
return _status == EnhancedMemberOrderStatus.EDITING
|
||||
|
||||
+2
-1
@@ -16,6 +16,7 @@
|
||||
package com.intellij.psi.formatter.java;
|
||||
|
||||
import com.intellij.JavaTestUtil;
|
||||
import com.intellij.codeInsight.actions.ReformatCodeProcessor;
|
||||
import com.intellij.lang.java.JavaLanguage;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.command.CommandProcessor;
|
||||
@@ -153,7 +154,7 @@ public abstract class AbstractJavaFormatterTest extends LightIdeaTestCase {
|
||||
}
|
||||
});
|
||||
}
|
||||
}, "", "");
|
||||
}, action == Action.REFORMAT ? ReformatCodeProcessor.COMMAND_NAME : "", "");
|
||||
|
||||
|
||||
if (document == null) {
|
||||
|
||||
Reference in New Issue
Block a user