4.5.14 Deprecations and breaking changes - vert-x3/wiki GitHub Wiki

Vertx Core

Coherent implementation of hashCode for JsonObject/JsonArray with respect to equals

JsonArray/JsonObject hashCode implementations rely on the wrapped data structure hashCode implementation and on the generic Object hashCode function.

  1. The hash value might differ from data structure implementations.
  2. Number coercion is performed in equals which allows case were we do have equality (after coercion) but hash differs (e.g. 4L and 4D)

The JsonObject and JsonArray implementations of hashCode is rewritten to be consistent with the implementation of equals.

Deprecate recursive boolean in filesystem delete method

Methods FileSystem#deleteRecursive(...) declares a recursive boolean that pretty much mimics calling FileSystem#delete, instead users should either call delete or deleteRecursive

// Before
stream.deleteRecusrive(path, false);

// After 
stream.delete(path)

Or

// Before
stream.deleteRecursive(path, true);

// After 
stream.deleteRecursive(path)