I have a function like this
public static <
T,
X>
void helloFunction(T t, X x) {
//some code here...
};
Assume that T and X are long words which why I have to add them on separated line. Checkstyle warns that void helloFunction(T t, X x) { should has indentation level 4 which is my wrapping indentation configuration. I think it looks better if void helloFunction(T t, X x) { is at the same indentation as public static <.
The questions:
- Is it expected from Checkstyle?
- Is Checkstyle preferences actually better or more compliant to java convention?
- Is there any Checkstyle configuration to suit my preference?
Thanks in advance.