This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch branch_3x
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/branch_3x by this push:
new dd6bca631 TIKA-4488: replace deprecated
dd6bca631 is described below
commit dd6bca631a86b2e75be922dbf03720eea2765242
Author: Tilman Hausherr <[email protected]>
AuthorDate: Fri Nov 14 15:57:57 2025 +0100
TIKA-4488: 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 6b56e2d67..cd8ed8050 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);