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 V6012 diagnostic

V6012. The '?:' operator, regardless of its conditional expression, always returns one and the same value.


XMage

V6012 The '?:' operator, regardless of its conditional expression, always returns one and the same value 'table.getCreateTime()'. TableManager.java(418), TableManager.java(418)


private void checkTableHealthState() {
  ....
  logger.debug(.... + formatter.format(table.getStartTime() == null
                                        ? table.getCreateTime()
                                        : table.getCreateTime()) + ....);
  ....
}

ELKI

V6012 The '?:' operator, regardless of its conditional expression, always returns one and the same value '0.5'. ClusterHullVisualization.java(173), ClusterHullVisualization.java(173)


public void fullRedraw() {
    ....
    boolean flat = (clusters.size() == topc.size());
    // Heuristic value for transparency:
    double baseopacity = flat ? 0.5 : 0.5;
    ....
}

WorldWind Java

V6012 The '?:' operator, regardless of its conditional expression, always returns one and the same value 'sector.getDeltaLonRadians()'. GazetteerPanel.java 328


public void moveToLocation(Sector sector, Double altitude)
{
  ....
  if (altitude == null || altitude == 0)
  {
    double t = sector.getDeltaLonRadians() >
               sector.getDeltaLonRadians() ?
               sector.getDeltaLonRadians() :
               sector.getDeltaLonRadians();          // <=
    ....
  }
  ....
}