mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
Reformat with context on postponed formatting: fixed java test data
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -10,6 +10,6 @@ class ReturnTypeCompatibility {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
call("", i -> "");
|
||||
call("", i -> "");
|
||||
}
|
||||
}
|
||||
@@ -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'") }
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user