This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 8c0c9130230282662c014bdf94625c4932f04194
Author: Guillaume Nodet <gno...@gmail.com>
AuthorDate: Thu May 2 16:11:19 2024 +0200

    Fix getter not returning the correct field
---
 .../src/main/java/org/apache/camel/component/gson/GsonDataFormat.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-gson/src/main/java/org/apache/camel/component/gson/GsonDataFormat.java
 
b/components/camel-gson/src/main/java/org/apache/camel/component/gson/GsonDataFormat.java
index 294fd30e1b1..bbeaf5ee58e 100644
--- 
a/components/camel-gson/src/main/java/org/apache/camel/component/gson/GsonDataFormat.java
+++ 
b/components/camel-gson/src/main/java/org/apache/camel/component/gson/GsonDataFormat.java
@@ -256,7 +256,7 @@ public class GsonDataFormat extends ServiceSupport
     }
 
     public Type getUnmarshalGenericType() {
-        return this.unmarshalType;
+        return this.unmarshalGenericType;
     }
 
     public void setUnmarshalGenericType(Type unmarshalGenericType) {

Reply via email to