From eed3295495d9f20bd983bf8a397289ebf1b388ee Mon Sep 17 00:00:00 2001 From: Eric Cochran Date: Mon, 25 Sep 2017 13:02:36 -0400 Subject: [PATCH] Fix not writing value to JsonWriter in example. --- examples/src/main/java/com/squareup/moshi/recipes/Unwrap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/main/java/com/squareup/moshi/recipes/Unwrap.java b/examples/src/main/java/com/squareup/moshi/recipes/Unwrap.java index bd19b8f..6f1f108 100644 --- a/examples/src/main/java/com/squareup/moshi/recipes/Unwrap.java +++ b/examples/src/main/java/com/squareup/moshi/recipes/Unwrap.java @@ -88,7 +88,7 @@ final class Unwrap { } @Override public void toJson(JsonWriter writer, Object value) throws IOException { - delegate.toJson(new Envelope<>(value)); + delegate.toJson(writer, new Envelope<>(value)); } } }