Repository: johnzon Updated Branches: refs/heads/master 64812f4af -> ea3bb8677
JOHNZON-104 remove unused class Became obsolete after refactoring Project: http://git-wip-us.apache.org/repos/asf/johnzon/repo Commit: http://git-wip-us.apache.org/repos/asf/johnzon/commit/eb968ec3 Tree: http://git-wip-us.apache.org/repos/asf/johnzon/tree/eb968ec3 Diff: http://git-wip-us.apache.org/repos/asf/johnzon/diff/eb968ec3 Branch: refs/heads/master Commit: eb968ec35b275cc1e3f29b3a43c4e2c6dc360ea8 Parents: 64812f4 Author: Mark Struberg <[email protected]> Authored: Tue Mar 28 10:52:14 2017 +0200 Committer: Mark Struberg <[email protected]> Committed: Tue Mar 28 21:26:59 2017 +0200 ---------------------------------------------------------------------- .../johnzon/core/JsonMergePatchBuilder.java | 74 -------------------- 1 file changed, 74 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/johnzon/blob/eb968ec3/johnzon-core/src/main/java/org/apache/johnzon/core/JsonMergePatchBuilder.java ---------------------------------------------------------------------- diff --git a/johnzon-core/src/main/java/org/apache/johnzon/core/JsonMergePatchBuilder.java b/johnzon-core/src/main/java/org/apache/johnzon/core/JsonMergePatchBuilder.java deleted file mode 100644 index 2c56a13..0000000 --- a/johnzon-core/src/main/java/org/apache/johnzon/core/JsonMergePatchBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.johnzon.core; - -import javax.json.JsonValue; - -/** - * Creates a JsonPatchBuilder which will create {@link javax.json.JsonMergePatch} as defined in - * https://tools.ietf.org/html/rfc7396 - */ -public class JsonMergePatchBuilder { - - /** - * Create a merged patch by comparing the source to the target. - * Applying this JsonPatch to the source will give you the target. - * A mergePatch is a JsonValue as defined in http://tools.ietf.org/html/rfc7396 - * - * If you have a JSON like - * <pre> - * { - * "a": "b", - * "c": { - * "d": "e", - * "f": "g" - * } - * } - * </pre> - * - * Then you can change the value of "a" and removing "f" by sending: - * <pre> - * { - * "a":"z", - * "c": { - * "f": null - * } - * } - * </pre> - * - * @see #mergePatch(JsonValue, JsonValue) - * - * @since 1.1 - */ - public JsonValue createMergePatch(JsonValue source , JsonValue target) { - return null; - } - - /** - * Merge the given patch to the existing source - * A mergePatch is a JsonValue as defined in http://tools.ietf.org/html/rfc7396 - * - * @return the result of applying the patch to the source - * - * @see #createMergePatch(JsonValue, JsonValue) - * @since 1.1 - */ - public JsonValue mergePatch(JsonValue source, JsonValue patch) { - return null; - } - -}
