Skip to content

Commit

Permalink
make jsonWriteStream a default method (#137)
Browse files Browse the repository at this point in the history
it honestly feels kind of niche
  • Loading branch information
SentryMan authored Dec 6, 2024
1 parent 38e1616 commit de7a535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion avaje-jex/src/main/java/io/avaje/jex/spi/JsonService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
<E> void jsonWriteStream(Iterator<E> iterator, OutputStream os);
default <E> void jsonWriteStream(Iterator<E> iterator, OutputStream os) {

throw new UnsupportedOperationException("Not Implemented");
}
}

0 comments on commit de7a535

Please sign in to comment.