Last active
August 29, 2015 14:20
-
-
Save ronocod/da14c059ad42097602d0 to your computer and use it in GitHub Desktop.
Formatting Discussion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public ResultType arbitraryMethodName( | |
| FirstArgumentType firstArgument, | |
| SecondArgumentType secondArgument, | |
| ThirdArgumentType thirdArgument) | |
| { | |
| LocalVariableType localVariable = | |
| method(firstArgument, secondArgument); | |
| if (localVariable.isSomething( | |
| thirdArgument, SOME_SHOUTY_CONSTANT)) | |
| { | |
| doSomething(localVariable); | |
| } | |
| return localVariable.getSomething(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public ResultType arbitraryMethodName(FirstArgumentType firstArgument, | |
| SecondArgumentType secondArgument, | |
| ThirdArgumentType thirdArgument) { | |
| LocalVariableType localVariable = method(firstArgument, secondArgument); | |
| if (localVariable.isSomething(thirdArgument, SOME_SHOUTY_CONSTANT)) { | |
| doSomething(localVariable); | |
| } | |
| return localVariable.getSomething(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would prefer something like this