Before:
DoSomething(new A() {
@Override public String toString() {
}
});
After:
DoSomething(new A() {
@Override
public String toString() {
}
});
llvm-svn: 220282
return true;
} else if (Style.Language == FormatStyle::LK_Java) {
if (Left.Type == TT_JavaAnnotation && Right.isNot(tok::l_paren) &&
- Line.MightBeFunctionDecl)
+ Line.Last->is(tok::l_brace))
return true;
}
verifyFormat("@SuppressWarnings(value = \"unchecked\")\n"
"public void doSomething() {\n}");
+ verifyFormat("DoSomething(new A() {\n"
+ " @Override\n"
+ " public String toString() {\n"
+ " }\n"
+ "});");
+
verifyFormat("@Partial @Mock DataLoader loader;");
}