InformationIntegrationGroup/Web-Karma-Public — pull request #7 by tfmorris (2013-06-16 13:35:15+00:00)
Title: Convert control statement bodies to blocks

Currently single line control statements are not enclosed in blocks. This is dangerous because people tend to follow the indentation, not the actual control structure, so the following:

if (a==true)
statement 1

can be modified by someone who's not careful to be

if (a==true)
statement 1
statement 2

which won't do what they think it's doing. It's much safer to just always wrap things as blocks even though it costs an extra line of vertical space.

The automatic refactoring was done using Eclipse cleanup followed by manual verification.