I also find it annoying when a variable is declared with a null value and them immediately assigned a value.
String value = null;
value = "hi";
should be:
String value = "hi";
Not that one reason to do that the first way is if the second way would create a line that is too long.
No comments:
Post a Comment