Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Parasoft Jtest 2022.2

...

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

Automated Detection

ToolVersionCheckerDescription
SonarQube Java Plugin
Parasoft Jtest
Include Page
Parasoft_V
Parasoft_V
CERT.EXP51.ASIAvoid assignment within a condition
PVS-Studio

Include Page
PVS-Studio_V
PVS-Studio_V

V6041
SonarQube
Include Page
SonarQube
Java Plugin
_V
SonarQube
Java Plugin
_V
AssignmentInSubExpressionCheck
 

 



Bibliography

[Hatton 1995]

§2.7.2, "Errors of Omission and Addition"

...


...

Image Modified Image Modified Image Modified