hbase-5657. developer.xml, updating line-width from 80 to 100 in book (and example)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1305979 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug Meil 2012-03-27 19:36:37 +00:00
parent 46d8f02c3f
commit 0fa7062d2c
1 changed files with 4 additions and 9 deletions

View File

@ -682,19 +682,14 @@ foo = barArray[i];
<section xml:id="common.patch.feedback.longlines">
<title>Long Lines</title>
<para>
Keep lines less than 80 characters.
Keep lines less than 100 characters.
<programlisting>
Bar bar = foo.veryLongMethodWithManyArguments(argument1, argument2, argument3, argument4, argument5); // don't do this
Bar bar = foo.veryLongMethodWithManyArguments(argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8, argument9); // don't do this
</programlisting>
... do this instead ...
<programlisting>
Bar bar = foo.veryLongMethodWithManyArguments(argument1,
argument2, argument3,argument4, argument5);
</programlisting>
... or this, whichever looks better ...
... do something like this instead ...
<programlisting>
Bar bar = foo.veryLongMethodWithManyArguments(
argument1, argument2, argument3,argument4, argument5);
argument1, argument2, argument3,argument4, argument5, argument6, argument7, argument8, argument9);
</programlisting>
</para>
</section>