Often the number of arguments passed to a function can be large. Consider the following case:
calculate(dataManager.getLastUpdate().getNumberOfChildren(),
dataManager.getLastUpdate().getNumberOfParents(),
dataManager.getLastUpdate().getNumberOfGrandChildren(),
long milliseconds,
int somethingelse)
Is there a guideline in Java that offers a way to align the arguments? Fitting all arguments in a line would not look pretty.
According to Sun’s Java coding conventions, section "Wrapping Lines":
The document also includes some examples for method calls: