Мы используем куки, чтобы пользоваться сайтом было удобно.
Хорошо
to the top
>
>
>
Примеры ошибок, обнаруженных с...

Примеры ошибок, обнаруженных с помощью диагностики V6040

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;         // <=
    ....
  }
....
}