JCLOUDS-1500: Update gson to 2.8.5 (#29)

This commit is contained in:
Olaf Flebbe 2019-07-03 09:11:26 +02:00 committed by Ignasi Barrera
parent 5fd4d7a1eb
commit 51da020d2e
2 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,7 @@ import java.lang.reflect.Modifier;
import java.util.List;
import java.util.Map;
import org.jclouds.json.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory;
import org.jclouds.json.gson.internal.ConstructorConstructor;
import org.jclouds.json.gson.internal.Excluder;
import org.jclouds.json.gson.internal.bind.ReflectiveTypeAdapterFactory;
@ -115,7 +116,8 @@ public final class DeserializationConstructorAndReflectiveTypeAdapterFactory imp
this.constructorFieldNamingPolicy = checkNotNull(deserializationFieldNamingPolicy,
"deserializationFieldNamingPolicy");
this.delegateFactory = new ReflectiveTypeAdapterFactory(constructorConstructor, checkNotNull(
serializationFieldNamingPolicy, "fieldNamingPolicy"), checkNotNull(excluder, "excluder"));
serializationFieldNamingPolicy, "fieldNamingPolicy"), checkNotNull(excluder, "excluder"),
new JsonAdapterAnnotationTypeAdapterFactory(constructorConstructor));
}
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {

View File

@ -41,7 +41,7 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.5</version>
<version>2.8.5</version>
</dependency>
</dependencies>