We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e05da83 + d60a922 commit b07cddbCopy full SHA for b07cddb
jooby/src/main/java/io/jooby/MessageEncoder.java
@@ -8,6 +8,7 @@
8
import io.jooby.exception.NotAcceptableException;
9
10
import javax.annotation.Nonnull;
11
+import javax.annotation.Nullable;
12
import java.nio.charset.StandardCharsets;
13
14
/**
@@ -34,7 +35,7 @@ public interface MessageEncoder {
34
35
* @return Value as byte array or <code>null</code> if given object isn't supported it.
36
* @throws Exception If something goes wrong.
37
*/
- @Nonnull byte[] encode(@Nonnull Context ctx, @Nonnull Object value) throws Exception;
38
+ @Nullable byte[] encode(@Nonnull Context ctx, @Nonnull Object value) throws Exception;
39
40
41
* Execute this renderer only if the <code>Accept</code> header matches the content-type
0 commit comments