Examples of errors detected by the V6045 diagnostic
V6045. Suspicious subexpression in a sequence of similar comparisons.
GeoGebra
V6045 Possible misprint in expression 'other.maxy <= maxx'. BoundingBox.java(139)
public boolean contains(BoundingBox other) {
return !(isNull() || other.isNull()) && other.minx >= minx
&& other.maxy <= maxx && other.miny >= miny // <=
&& other.maxy <= maxy;
}