From de7a535e797745e4a4c8ffe2114e16b53cb05d9a Mon Sep 17 00:00:00 2001 From: Josiah Noel <32279667+SentryMan@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:31:01 -0500 Subject: [PATCH] make jsonWriteStream a default method (#137) it honestly feels kind of niche --- avaje-jex/src/main/java/io/avaje/jex/spi/JsonService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/avaje-jex/src/main/java/io/avaje/jex/spi/JsonService.java b/avaje-jex/src/main/java/io/avaje/jex/spi/JsonService.java index b7ef9e1b..db9119e6 100644 --- a/avaje-jex/src/main/java/io/avaje/jex/spi/JsonService.java +++ b/avaje-jex/src/main/java/io/avaje/jex/spi/JsonService.java @@ -42,5 +42,8 @@ public non-sealed interface JsonService extends JexExtension { * @param iterator the stream of objects to be serialized * @param os the output stream to write the JSON-Stream data to */ - void jsonWriteStream(Iterator iterator, OutputStream os); + default void jsonWriteStream(Iterator iterator, OutputStream os) { + + throw new UnsupportedOperationException("Not Implemented"); + } }