Wrap all when first wrapped
After parameters/expressions

If enabled, this switch will cause all parameters/expressions to be wrapped, if and only if the first parameter/expression of the list has been wrapped.

Example 2.553. Expression list (all wrapped)

if (
    "pick".equals(m.getName()) &&
    m.isStatic() &&
    m.isPublic()
) {
    pickFound = true;
} else if (
    "pick".equals(m.getName()) &&
    m.isStatic() &&
    m.isPublic()
) {
    pickFound = true;
}

Related options:

Operators

When enabled, all operators are wrapped if a line was printed before the first operator.

Since 1.7

Example 2.554. Operators (wrap on demand)

while (
    beleg.x() == null || beleg.x().isValidated()
    || beleg.getVerifier().getVerfication() == null
    || beleg.getVerifier().getName().length() == 0
) {
    ...
}

Example 2.555. Operators (wrap all when first wrapped)

while (
    beleg.x() == null
    || beleg.x().isValidated()
    || beleg.getVerifier().getVerfication() == null
    || beleg.getVerifier().getName().length() == 0
) {
    ...
}

Related options:

Ternary expression colon (:)

When enabled, the ternary colon will be wrapped when a line break occured before the ternary question.

Since 1.3

Example 2.556. Wrapped ternary question

int spacesLength = (tabNumber == 0)
    ? spacesCount : (spacesCount - tabLength);

Example 2.557. Wrapped ternary question, wrap on-demand for colon

int spacesLength = (tabNumber == 0)
    ? spacesCount
    : (spacesCount - tabLength);