@@ -459,7 +459,7 @@ <h3 id="s4.6-whitespace">4.6 Whitespace</h3>
459
459
460
460
< h4 id ="s4.6.1-vertical-whitespace "> 4.6.1 Vertical Whitespace</ h4 >
461
461
462
- < p > A single blank line appears:</ p >
462
+ < p > A single blank line always appears:</ p >
463
463
464
464
< ol >
465
465
< li > < em > Between</ em > consecutive members or initializers of a class: fields, constructors,
@@ -473,17 +473,17 @@ <h4 id="s4.6.1-vertical-whitespace">4.6.1 Vertical Whitespace</h4>
473
473
</ ul >
474
474
</ li >
475
475
476
- < li > Between statements, < em > as needed</ em > to organize the code into logical subsections.
477
-
478
- </ li > < li > < em > Optionally</ em > before the first member or initializer, or after the last member or
479
- initializer of the class (neither encouraged nor discouraged).</ li >
480
-
481
476
< li > As required by other sections of this document (such as Section 3,
482
477
< a href ="#s3-source-file-structure "> Source file structure</ a > , and Section 3.3,
483
478
< a href ="#s3.3-import-statements "> Import statements</ a > ).</ li >
484
479
</ ol >
485
480
486
- < p > < em > Multiple</ em > consecutive blank lines are permitted, but never required (or encouraged).</ p >
481
+ < p > A single blank line may also appear anywhere it improves readability, for example between
482
+ statements to organize the code into logical subsections. A blank line before the first member or
483
+ initializer, or after the last member or initializer of the class, is neither encouraged nor
484
+ discouraged.
485
+
486
+ </ p > < p > < em > Multiple</ em > consecutive blank lines are permitted, but never required (or encouraged).</ p >
487
487
488
488
< h4 id ="s4.6.2-horizontal-whitespace "> 4.6.2 Horizontal whitespace</ h4 >
489
489
@@ -553,10 +553,13 @@ <h4 id="s4.6.2-horizontal-whitespace">4.6.2 Horizontal whitespace</h4>
553
553
< code class ="prettyprint lang-java "> new int[] { 5, 6 }</ code > are both valid</ li >
554
554
</ ul >
555
555
</ li >
556
+
557
+ < li > Between a type annotation and < code class ="prettyprint lang-java "> []</ code > or
558
+ < code class ="prettyprint lang-java "> ...</ code > .</ li >
556
559
</ ol >
557
560
558
- This rule is never interpreted as requiring or forbidding additional space at the start or
559
- end of a line; it addresses only < em > interior</ em > space.
561
+ < p > This rule is never interpreted as requiring or forbidding additional space at the start or
562
+ end of a line; it addresses only < em > interior</ em > space.</ p >
560
563
561
564
< h4 id ="s4.6.3-horizontal-alignment "> 4.6.3 Horizontal alignment: never required</ h4 >
562
565
@@ -809,10 +812,9 @@ <h3 id="s5.1-identifier-names">5.1 Rules common to all identifiers</h3>
809
812
underscores. Thus each valid identifier name is matched by the regular expression
810
813
< code > \w+</ code > .</ p >
811
814
812
- < p > In Google Style special prefixes or
813
- suffixes, like those seen in the examples < code class ="badcode "> name_</ code > ,
814
- < code class ="badcode "> mName</ code > , < code class ="badcode "> s_name</ code > and
815
- < code class ="badcode "> kName</ code > , are < strong > not</ strong > used.</ p >
815
+ < p > In Google Style, special prefixes or suffixes are < strong > not</ strong > used. For example, these
816
+ names are not Google Style: < code class ="badcode "> name_</ code > , < code class ="badcode "> mName</ code > ,
817
+ < code class ="badcode "> s_name</ code > and < code class ="badcode "> kName</ code > .</ p >
816
818
817
819
< h3 id ="s5.2-specific-identifier-names "> 5.2 Rules by identifier type</ h3 >
818
820
0 commit comments