This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new 376ab1f7a TIKA-4327: replace deprecated
376ab1f7a is described below
commit 376ab1f7a1cf6ff2f2e6b1ab5ce7f404689f74a6
Author: Tilman Hausherr <[email protected]>
AuthorDate: Fri Nov 14 15:57:37 2025 +0100
TIKA-4327: replace deprecated
---
.../src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java
b/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java
index 0e84f4f24..cbae8dba7 100644
--- a/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java
+++ b/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java
@@ -86,7 +86,8 @@ class TikaGrpcServerImpl extends TikaGrpc.TikaImplBase {
private static final Logger LOG =
LoggerFactory.getLogger(TikaGrpcServerImpl.class);
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
static {
- OBJECT_MAPPER.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+ //TODO with Jackson 3.0 we'll have to use MapperBuilder
+
OBJECT_MAPPER.setDefaultPropertyInclusion(JsonInclude.Include.NON_NULL);
}
public static final JsonSchemaGenerator JSON_SCHEMA_GENERATOR = new
JsonSchemaGenerator(OBJECT_MAPPER);