Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
Examples of errors detected by the...

Examples of errors detected by the V6040 diagnostic

V6040. The code's operational logic does not correspond with its formatting.


WorldWind Java

V6040 The code's operational logic does not correspond with its formatting. The statement is indented to the right, but it is always executed. It is possible that curly brackets are missing. PolarCoordConverter.java 349


public class PolarCoordConverter
{
  private double Easting;
  private double Northing;
  ....
  public long convertGeodeticToPolarStereographic(
    double Latitude,
    double Longitude
  )
  {
    if (Southern_Hemisphere != 0)
    {
      Easting = -(rho * Math.sin(dlam) - Polar_False_Easting);
      Northing = rho * Math.cos(dlam) + Polar_False_Northing;
    } else
      Easting = rho * Math.sin(dlam) + Polar_False_Easting;
      Northing = -rho * Math.cos(dlam) + Polar_False_Northing;         // <=
    ....
  }
....
}