Wrap all when exceed

Lets you enable wrapping for all elements if the parameter or expression list or clause would otherwise exceed the maximal line length. If you enable any of the following switches, line wrapping may occur for the specified cases no matter whether you have enabled general line wrapping or not.

After "extends" types

Forces a line wrap after each type name of the extends clause of a class/interface declaration if the whole clause does not fit in one line.

Example 2.543. Extends types wrapped as needed (Standard indented)

public interface VeryImportantInterface                        |
    extends LeastImportantInterface, LessImportantInterface,   |
        ImportantInterface {                                   |
    ...                                                        |
}                                                              |

Example 2.544. Extends types wrapping forced (Standard indented)

public interface VeryImportantInterface                        |
    extends LeastImportantInterface,                           |
        LessImportantInterface,                                |
        ImportantInterface {                                   |
    ...                                                        |
}                                                              |
After "implements" types

Forces a line wrap after each type name of the implements clause of a class/interface declaration if the whole clause does not fit in one line.

Example 2.545. Implements types wrapped as needed (Standard indented)

public class ImportantClass                                    |
    implements ImportantInterface, Serializable, Comparable,   |
        Cloneable {                                            |
    ...                                                        |
}                                                              |

Example 2.546. Implements types wrapping forced (Standard indented)

public class ImportantClass                                    |
    implements ImportantInterface,                             |
        Serializable,                                          |
        Comparable,                                            |
        Cloneable {                                            |
    ...                                                        |
}                                                              |
After "throws" types

Forces a line wrap after each type name of the throws clause of a method/constructor declaration if the whole clause does not fit in one line.

Example 2.547. Throws types wrapped as needed (Endline indented)

private File getDestinationFile(File dest, String packageName, |
                                String filename)               |
                         throws IOException, FooException,     |
                                FooBarException {              |
    ...                                                        |
}                                                              |

Example 2.548. Throws types wrapping forced (Endline indented)

private File getDestinationFile(File dest, String packageName, |
                                String filename)               |
                         throws IOException,                   |
                                FooException,                  |
                                FooBarException {              |
    ...                                                        |
}                                                              |
Declaration parameters

When enabled, forces a line break after all method declaration parameters when not all parameters fit into a single line.

Since 1.2

Example 2.549. Method declaration with multiple parameters execeeding line length

                                                                 |
protected void processRequest( Request req, Response res, State state ) {
    ...                                                          |
}                                                                |

Example 2.550. Method declaration with multiple parameters after wrapping

                                                                 |
protected void processRequest( Request req,                      |
                               Response res,                     |
                               State state ) {                   |
    ...                                                          |
}                                                                |

Related options:

Call arguments

When enabled, forces a line break after all method or creator call arguments when not all arguments fit into a single line.

Since 1.2

Example 2.551. Method call with multiple args execeeding line length

                                      |
processRequest( request, response, state );
                                      |

Example 2.552. Method call with multiple args after wrapping

                                      |
processRequest( request,              |
                response,             |
                state );              |