Reformat with context on postponed formatting: fixed java test data

This commit is contained in:
Yaroslav Lepenkin
2015-07-03 15:11:31 +03:00
parent b4e8c6e38d
commit 6731485cb8
5 changed files with 12 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ import static java.util.Arrays.*;
public class Foo {
{
Block<Integer[]> b2 = Arrays::sort;
sort((byte[]) null);
sort((byte[])null);
}
public interface Block<T> {

View File

@@ -10,6 +10,6 @@ class ReturnTypeCompatibility {
}
public static void main(String[] args) {
call("", i -> "");
call("", i -> "");
}
}

View File

@@ -1,7 +1,5 @@
public class BrokenAlignment {
public BrokenAlignment(String errorMessage) {
if (StringUtils.contains(<caret>errorMessage,
"'UK_ACCOUNT_USERNAME'")
}
if (StringUtils.contains(errorMessage, "'UK_ACCOUNT_USERNAME'") }
}

View File

@@ -3,7 +3,7 @@ import org.jetbrains.annotations.Nullable;
class Test {
@NotNull
public String noNull( @Nullable String text) {
public String noNull(@Nullable String text) {
return text == null ? "" : text;
}
}

View File

@@ -8,14 +8,14 @@ public class Foo {
class Bar {
public static void main(String[] args) {
Foo.bar(new Runnable() {
@Override
public void run() {
doRun();
}
private void doRun() {
// Woo-hoo
}
@Override
public void run() {
doRun();
}
private void doRun() {
// Woo-hoo
}
});
}
}