Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions express-json/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ configurations {
apply from: '../publish.gradle'

dependencies {
compile 'org.dmfs:jems:1.16'
compile 'org.dmfs:jems-testing:1.16'
implementation 'org.dmfs:jems2:2.2.0'

testCompile group: 'junit', name: 'junit', version: '4.12'
testImplementation 'org.dmfs:jems2-testing:2.2.0'
testImplementation 'junit:junit:4.12'
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import org.dmfs.express.json.elementary.Null;
import org.dmfs.express.json.elementary.Number;
import org.dmfs.express.json.elementary.String;
import org.dmfs.jems.optional.decorators.Mapped;
import org.dmfs.jems.single.Single;
import org.dmfs.jems.single.combined.Backed;
import org.dmfs.optional.NullSafe;
import org.dmfs.optional.Optional;
import org.dmfs.jems2.Optional;
import org.dmfs.jems2.Single;
import org.dmfs.jems2.optional.Mapped;
import org.dmfs.jems2.optional.NullSafe;
import org.dmfs.jems2.single.Backed;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import org.dmfs.express.json.JsonValue;
import org.dmfs.express.json.Jsonable;
import org.dmfs.express.json.adapters.Json;
import org.dmfs.iterables.elementary.Seq;
import org.dmfs.jems.iterable.decorators.Mapped;
import org.dmfs.jems2.iterable.Mapped;
import org.dmfs.jems2.iterable.Seq;

import java.io.IOException;

Expand All @@ -24,7 +24,7 @@ public final class Array implements JsonValue
* Creates a {@link JsonValue} array of {@link Jsonable}s.
*
* @param elements
* the elements of the Array
* the elements of the Array
*/
public Array(Jsonable... elements)
{
Expand All @@ -36,7 +36,7 @@ public Array(Jsonable... elements)
* Creates a {@link JsonValue} array of {@link Boolean}s.
*
* @param elements
* the elements of the Array
* the elements of the Array
*/
public Array(java.lang.Boolean... elements)
{
Expand All @@ -48,7 +48,7 @@ public Array(java.lang.Boolean... elements)
* Creates a {@link JsonValue} array of {@link Number}s.
*
* @param elements
* the elements of the Array
* the elements of the Array
*/
public Array(java.lang.Number... elements)
{
Expand All @@ -60,7 +60,7 @@ public Array(java.lang.Number... elements)
* Creates a {@link JsonValue} array of {@link CharSequence}s.
*
* @param elements
* the elements of the Array
* the elements of the Array
*/
public Array(CharSequence... elements)
{
Expand All @@ -72,7 +72,7 @@ public Array(CharSequence... elements)
* Creates a {@link JsonValue} array of arbitrary {@link JsonValue} values.
*
* @param elements
* the elements of the Array
* the elements of the Array
*/
public Array(JsonValue... elements)
{
Expand All @@ -84,7 +84,7 @@ public Array(JsonValue... elements)
* Creates a {@link JsonValue} array of arbitrary {@link JsonValue} values.
*
* @param elements
* An {@link Iterable} of {@link JsonValue} values.
* An {@link Iterable} of {@link JsonValue} values.
*/
public Array(Iterable<JsonValue> elements)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.dmfs.express.json.JsonValue;
import org.dmfs.express.json.sinks.StringBuilderSink;
import org.dmfs.jems.single.Single;
import org.dmfs.jems2.Single;

import java.io.IOException;
import java.lang.String;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.dmfs.express.json.JsonValue;
import org.dmfs.express.json.Jsonable;
import org.dmfs.express.json.adapters.Json;
import org.dmfs.jems.pair.Pair;
import org.dmfs.jems2.Pair;

import java.lang.Object;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import org.dmfs.express.json.JsonSink;
import org.dmfs.express.json.JsonValue;
import org.dmfs.express.json.decorators.Nullable;
import org.dmfs.iterables.elementary.Seq;
import org.dmfs.jems.pair.Pair;
import org.dmfs.jems2.Pair;
import org.dmfs.jems2.iterable.Seq;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.dmfs.express.json.JsonSink;
import org.dmfs.express.json.JsonValue;
import org.dmfs.jems.charsequence.elementary.Hex;
import org.dmfs.jems2.charsequence.Hex;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import org.dmfs.express.json.JsonValue;
import org.dmfs.express.json.Jsonable;
import org.dmfs.iterables.EmptyIterable;
import org.dmfs.iterables.elementary.Seq;
import org.dmfs.jems2.iterable.EmptyIterable;
import org.dmfs.jems2.iterable.Seq;
import org.junit.Test;

import static org.dmfs.express.json.hamcrest.JsonSerializationMatcher.serializesTo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import java.io.IOException;

import static org.dmfs.jems.hamcrest.matchers.SingleMatcher.hasValue;
import static org.dmfs.jems2.hamcrest.matchers.single.SingleMatcher.hasValue;
import static org.junit.Assert.assertThat;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.junit.Test;

import static org.dmfs.express.json.hamcrest.JsonSerializationMatcher.serializesTo;
import static org.dmfs.jems.hamcrest.matchers.PairMatcher.pair;
import static org.dmfs.jems2.hamcrest.matchers.pair.PairMatcher.pair;
import static org.junit.Assert.assertThat;


Expand All @@ -25,5 +25,4 @@ public void test() throws Exception
assertThat(new Member("abc", new String("123")), pair(serializesTo("\"abc\""), serializesTo("\"123\"")));
assertThat(new Member(new String("abc"), new String("123")), pair(serializesTo("\"abc\""), serializesTo("\"123\"")));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void test() throws Exception
assertThat(new Object(new Member("a", 1), new Member("x", "y")), serializesTo("{\"a\":1,\"x\":\"y\"}"));
assertThat(new Object(new Member("a", new Object()), new Member("x", "y")), serializesTo("{\"a\":{},\"x\":\"y\"}"));
assertThat(new Object(new Member("a", new Object(new Member("b", "q"))), new Member("x", new Array(1, 2, 3))),
serializesTo("{\"a\":{\"b\":\"q\"},\"x\":[1,2,3]}"));
serializesTo("{\"a\":{\"b\":\"q\"},\"x\":[1,2,3]}"));
}

}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-rc-2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip