diff --git a/json/src/main/java/org/eclipse/ditto/json/JsonMergePatch.java b/json/src/main/java/org/eclipse/ditto/json/JsonMergePatch.java index 1b56b93dc1..84cf736bdb 100644 --- a/json/src/main/java/org/eclipse/ditto/json/JsonMergePatch.java +++ b/json/src/main/java/org/eclipse/ditto/json/JsonMergePatch.java @@ -21,9 +21,15 @@ /** * Can be used to get the diff in form of a JSON merge Patch according to * RFC 7386 between two {@link JsonValue json values}. + * + * @since 2.4.0 */ public final class JsonMergePatch { + private JsonMergePatch() { + throw new AssertionError(); + } + /** * This method computes the change from the given {@code oldValue} to the given {@code newValue}. * The result is a JSON merge patch according to RFC 7386. @@ -31,6 +37,7 @@ public final class JsonMergePatch { * @param oldValue the original value * @param newValue the new changed value * @return a JSON merge patch according to RFC 7386 or empty if values are equal. + * @since 2.4.0 */ public static Optional compute(final JsonValue oldValue, final JsonValue newValue) { @Nullable final JsonValue diff; @@ -51,6 +58,7 @@ public static Optional compute(final JsonValue oldValue, final JsonVa * @param oldJsonObject the original JSON object * @param newJsonObject the new changed JSON object * @return a JSON merge patch according to RFC 7386 or empty if values are equal. + * @since 2.4.0 */ public static Optional compute(final JsonObject oldJsonObject, final JsonObject newJsonObject) { final JsonObjectBuilder builder = JsonObject.newBuilder();