Lines Matching refs:verifyFormat
46 static void verifyFormat(
54 verifyFormat("someObject.and();");
58 verifyFormat("a[b >> 1] = (byte) (c() << 4);");
63 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n"
67 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa instanceof\n"
70 verifyFormat("return aaaaaaaaaaaaaaaaaaa instanceof bbbbbbbbbbbbbbbbbbbbbbb\n"
75 verifyFormat("class SomeClass {\n"
90 verifyFormat("public some.package.Type someFunction( // comment\n"
95 verifyFormat("SomeClass.class.getName();");
96 verifyFormat("Class c = SomeClass.class;");
100 verifyFormat("public class SomeClass {\n"
104 verifyFormat("public class A {\n"
112 verifyFormat("public class A extends B.C {}");
114 verifyFormat("abstract class SomeClass\n"
117 verifyFormat("abstract class SomeClass extends SomeOtherClass\n"
120 verifyFormat("abstract class SomeClass\n"
124 verifyFormat("abstract class SomeClass\n"
129 verifyFormat("abstract class SomeClass\n"
132 verifyFormat("@SomeAnnotation()\n"
136 verifyFormat("@SomeAnnotation()\n"
140 verifyFormat("interface SomeInterface<A> extends Foo, Bar {\n"
144 verifyFormat("public interface SomeInterface {\n"
148 verifyFormat("@interface SomeInterface {\n"
152 verifyFormat("public @interface SomeInterface {\n"
159 verifyFormat("return new A() {\n"
164 verifyFormat("A a = new A() {\n"
172 verifyFormat("enum SomeThing { ABC, CDE }");
173 verifyFormat("enum SomeThing {\n"
177 verifyFormat("public class SomeClass {\n"
181 verifyFormat("public class SomeClass implements SomeInterface {\n"
185 verifyFormat("enum SomeThing {\n"
190 verifyFormat("enum SomeThing {\n"
195 verifyFormat("enum SomeThing {\n"
200 verifyFormat("public enum SomeThing {\n"
214 verifyFormat("private enum SomeEnum implements Foo<?, B> {\n"
231 verifyFormat("new int[] {1, 2, 3, 4};");
232 verifyFormat("new int[] {\n"
238 verifyFormat(
245 verifyFormat("public void doSooooooooooooooooooooooooooomething()\n"
247 verifyFormat("public void doSooooooooooooooooooooooooooomething()\n"
252 verifyFormat("@Override\n"
254 verifyFormat("@Override\n"
257 verifyFormat("@Override // comment\n"
260 verifyFormat("@java.lang.Override // comment\n"
264 verifyFormat("@SuppressWarnings(value = \"unchecked\")\n"
266 verifyFormat("@SuppressWarnings(value = \"unchecked\")\n"
270 verifyFormat("DoSomething(new A() {\n"
275 verifyFormat("void SomeFunction(@Nullable String something) {}");
276 verifyFormat("void SomeFunction(@org.llvm.Nullable String something) {}");
278 verifyFormat("@Partial @Mock DataLoader loader;");
279 verifyFormat("@Partial\n"
283 verifyFormat("@SuppressWarnings(value = \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\")\n"
286 verifyFormat("@SomeAnnotation(\"With some really looooooooooooooong text\")\n"
288 verifyFormat("@org.llvm.Qualified(\"With some really looooooooooong text\")\n"
290 verifyFormat("@Mock\n"
294 verifyFormat("@org.llvm.QualifiedMock\n"
298 verifyFormat("@Test(a)\n"
301 verifyFormat("@SomeAnnotation(\n"
305 verifyFormat("@Test\n"
309 verifyFormat("{\n"
318 verifyFormat("Iterable<?> a;");
319 verifyFormat("Iterable<?> a;");
320 verifyFormat("Iterable<? extends SomeObject> a;");
322 verifyFormat("A.<B>doSomething();");
324 verifyFormat("@Override\n"
327 verifyFormat("public <R> ArrayList<R> get() {}");
328 verifyFormat("protected <R> ArrayList<R> get() {}");
329 verifyFormat("private <R> ArrayList<R> get() {}");
330 verifyFormat("public static <R> ArrayList<R> get() {}");
331 verifyFormat("public static native <R> ArrayList<R> get();");
332 verifyFormat("public final <X> Foo foo() {}");
333 verifyFormat("public abstract <X> Foo foo();");
334 verifyFormat("<T extends B> T getInstance(Class<T> type);");
335 verifyFormat("Function<F, ? extends T> function;");
337 verifyFormat("private Foo<X, Y>[] foos;");
338 verifyFormat("Foo<X, Y>[] foos = this.foos;");
339 verifyFormat("return (a instanceof List<?>)\n"
344 verifyFormat(
353 verifyFormat("String someString = \"abc\"\n"
358 verifyFormat("try {\n"
363 verifyFormat("try {\n"
368 verifyFormat("try {\n"
376 verifyFormat("try {\n"
384 verifyFormat("try (SomeResource rs = someFunction()) {\n"
387 verifyFormat("try (SomeResource rs = someFunction()) {\n"
395 verifyFormat("synchronized (mData) {\n"
401 verifyFormat("assert a && b;");
405 verifyFormat("package some.really.loooooooooooooooooooooong.package;",
410 verifyFormat("import some.really.loooooooooooooooooooooong.imported.Class;",
412 verifyFormat("import static some.really.looooooooooooooooong.imported.Class;",
417 verifyFormat("void methodName(Object arg1,\n"
420 verifyFormat("void methodName(\n"
426 verifyFormat("public void union(Type a, Type b);");
427 verifyFormat("public void struct(Object o);");
428 verifyFormat("public void delete(Object o);");
432 verifyFormat("return aaaaaaaaaaaaaaaaaaa\n"
436 verifyFormat("return (result == null)\n"
440 verifyFormat("return aaaaaaaaaaaaaaaaaaa()\n"
444 verifyFormat("return aaaaaaaaaaaaaaaaaaa()\n"
452 verifyFormat
458 verifyFormat("someFunction(new Runnable() {\n"
463 verifyFormat("someObject.someFunction(\n"
480 verifyFormat("(aaaaaaaaaa, bbbbbbbbbb) -> aaaaaaaaaa + bbbbbbbbbb;");
481 verifyFormat("(aaaaaaaaaa, bbbbbbbbbb)\n"
484 verifyFormat("Runnable someLambda = () -> DoSomething();");
485 verifyFormat("Runnable someLambda = () -> {\n"
489 verifyFormat("Runnable someLambda =\n"