geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1770967 - in /geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json: JsonPatch.java JsonPatchBuilder.java
Date Wed, 23 Nov 2016 13:39:29 GMT
Author: struberg
Date: Wed Nov 23 13:39:29 2016
New Revision: 1770967

URL: http://svn.apache.org/viewvc?rev=1770967&view=rev
Log:
GERONIMO-6558 make JsonPatch extends JsonArray and cleanup other APIs

Modified:
    geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatch.java
    geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatchBuilder.java

Modified: geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatch.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatch.java?rev=1770967&r1=1770966&r2=1770967&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatch.java (original)
+++ geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatch.java Wed
Nov 23 13:39:29 2016
@@ -35,16 +35,12 @@ package javax.json;
  * @since 1.1
  *
  */
-public interface JsonPatch {
+public interface JsonPatch extends JsonArray {
 
     JsonStructure apply(JsonStructure target);
 
     JsonObject apply(JsonObject target);
 
     JsonArray apply(JsonArray target);
-
-    public static JsonArray diff(JsonStructure source, JsonStructure target) {
-        return null;
-    }
 }
 

Modified: geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatchBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatchBuilder.java?rev=1770967&r1=1770966&r2=1770967&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatchBuilder.java
(original)
+++ geronimo/specs/trunk/geronimo-json_1.1_spec/src/main/java/javax/json/JsonPatchBuilder.java
Wed Nov 23 13:39:29 2016
@@ -65,6 +65,6 @@ public interface JsonPatchBuilder {
 
     JsonPatchBuilder test(String path, boolean value);
 
-    JsonArray build();
+    JsonPatch build();
 }
 



Mime
View raw message