clang-format Java 8 lambda operator

Hello,

I was wondering if it is possible to configure clang-format to not break the line before the Java 8 lambda operator. For example,

    entries.forEach(entry ->
            assertTrue(String.format("Host set includes '%s'",
                                                entry.getName()),
                                  hostNames.contains(entry.getName())));

gets turned into:

    entries.forEach(entry
                    -> assertTrue(String.format("Host set includes '%s'",
                                                entry.getName()),
                                  hostNames.contains(entry.getName())));

This is my .clang-format:

No, there is no option to control this. However, you can add braces around the lambda body which will help in this case and reduce indentation even further:

entries.forEach(entry → {
assertTrue(String.format(“Host set includes ‘%s’”, entry.getName()),
hostNames.contains(entry.getName()));
});