File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
avaje-jex/src/main/java/io/avaje/jex/spi Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ public non-sealed interface JsonService extends JexExtension {
26
26
/**
27
27
* **Writes a Java Object as a JSON string**
28
28
*
29
- * <p>Serializes a Java object into JSON string format and writes the resulting JSON to the specified
30
- * output stream.
29
+ * <p>Serializes a Java object into JSON string format and writes the resulting JSON to the
30
+ * specified output stream.
31
31
*
32
32
* @param bean the Java object to be serialized
33
33
* @return the serialized JSON string
@@ -66,5 +66,7 @@ public non-sealed interface JsonService extends JexExtension {
66
66
* @param iterator the stream of objects to be serialized
67
67
* @param os the output stream to write the JSON-Stream data to
68
68
*/
69
- <E > void toJsonStream (Iterator <E > iterator , OutputStream os );
69
+ default <E > void toJsonStream (Iterator <E > iterator , OutputStream os ) {
70
+ throw new UnsupportedOperationException ("toJsonStream is unimplemented in this JsonService" );
71
+ }
70
72
}
You can’t perform that action at this time.
0 commit comments