Class UnsafeAllocator
java.lang.Object
com.google.gson.internal.UnsafeAllocator
Do sneaky things to allocate objects without invoking their constructors.
- Author:
- Joel Leitch, Jesse Wilson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnsafeAllocatorcreate()abstract <T> TnewInstance(Class<T> c)
-
Constructor Details
-
UnsafeAllocator
public UnsafeAllocator()
-
-
Method Details
-
newInstance
-
create
-