Brace placement affecting LOC
Brought to you by:
gboissier
Brace placement seems to affect the "lines of code" count. For example, the following:
public static void main(final String[] the_args)
{
if (the_args.length > 0)
{
System.err.println("Invalid number of arguments.");
System.exit(1);
}
}
is counted as 5 lines of code, whereas:
public static void main(final String[] the_args) {
if (the_args.length > 0) {
System.err.println("Invalid number of arguments.");
System.exit(1);
}
}
is counted as 4 lines of code. Really, they probably should both be 3 lines of code because braces on lines by themselves shouldn't count as lines...