The question does not concern code optimization, which should lead to a decrease in the amount of code. Suppose that we already have a method and it looks like this:

package2.MyClassSystemName method1(MyClass1 argName1, MyClass2 argName2, AnotherClass1 argName3, AnotherClass2 argName4) { //Некоторый код } 

How to format it, in terms of Java style, so that it becomes more readable. My version seems scary to me anyway:

 package2.MyClassSystemName method1( MyClass1 argName1, MyClass2 argName2, AnotherClass1 argName3, AnotherClass2 argName4) { //Некоторый код } 

    1 answer 1

    Code Conventions for the Java Programming Language, Chapter 4

    It says that it is necessary so

     package2.MyClassSystemName method1(MyClass1 argName1, MyClass2 argName2, AnotherClass1 argName3, AnotherClass2 argName4) { ... } 

    It is written that indent in 8 spaces