Package com.google.gson.internal
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 UnsafeAllocator
create()
abstract <T> T
newInstance
(Class<T> c)
-
Constructor Details
-
UnsafeAllocator
public UnsafeAllocator()
-
-
Method Details
-
newInstance
- Throws:
Exception
-
create
-