private void checkUniquePoint ( final Point point ) { final boolean isStillUnique = ( uniquePoint == null || uniquePoint . equals ( point ) ) ; if ( ! isStillUnique ) { isUnique = false ; } if ( ! geoFields . isEmpty ( ) ) { Assert . isTrue ( uniquePoint == null || uniquePoint . equals ( point ) , "Different Points are used - Distance is ambiguous" ) ; uniquePoint = point ; } }
Ensures that Points used in geospatial parts of non - nested properties are the same in case geospatial return type is expected