Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
public void assignNocontrol(BufferedReader reader) throws IOException{
  String line;
  while ((line = reader.readLine()) != null) {
    // ... work with line
  }
}

Related Guidelines

ISO/IEC TR 24772:2013

Likely Incorrect Expression [KOA]

MITRE CWE

CWE-480, Use of incorrect operator

Bibliography

[Hatton 1995]

§2.7.2, "Errors of Omission and Addition"

...