mirror of https://github.com/apache/jclouds.git
JCLOUDS-1500: Update gson to 2.8.5 (#29)
This commit is contained in:
parent
5fd4d7a1eb
commit
51da020d2e
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue