24 lines
519 B
Plaintext
24 lines
519 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
include::../noncompliant.adoc[]
|
||
|
|
||
|
include::../compliant.adoc[]
|
||
|
|
||
|
== Exceptions
|
||
|
|
||
|
Assignments in <code>while</code> statement conditions, and assignments enclosed in relational expressions are ignored.
|
||
|
----
|
||
|
BufferedReader br = new BufferedReader(/* ... */);
|
||
|
String line;
|
||
|
while ((line = br.readLine()) != null) {...}
|
||
|
----
|
||
|
|
||
|
Chained assignments, including compound assignments, are ignored.
|
||
|
----
|
||
|
int i = j = 0;
|
||
|
int k = (j += 1);
|
||
|
result = (bresult = new byte[len]);
|
||
|
----
|
||
|
|
||
|
include::../see.adoc[]
|