| In 5.1 BasicQueryContract#setFlushMode returns BasicQueryContract. As of 5.3 (and possibly 5.2) BasicQueryContract#setFlushMode has been deprecated (which is fine itself) and inherits the implementation of this method from CommonQueryContract which returns CommonQueryContract. Resolution : in 5.3 BasicQueryContract should override CommonQueryContract#setFlushMode to return BasicQueryContract |