12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- .class final Lcom/google/gson/internal/UnsafeAllocator$2;
- .super Lcom/google/gson/internal/UnsafeAllocator;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingMethod;
- value = Lcom/google/gson/internal/UnsafeAllocator;->create()Lcom/google/gson/internal/UnsafeAllocator;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x8
- name = null
- .end annotation
- # instance fields
- .field final synthetic val$constructorId:I
- .field final synthetic val$newInstance:Ljava/lang/reflect/Method;
- # direct methods
- .method constructor <init>(Ljava/lang/reflect/Method;I)V
- .locals 0
- iput-object p1, p0, Lcom/google/gson/internal/UnsafeAllocator$2;->val$newInstance:Ljava/lang/reflect/Method;
- iput p2, p0, Lcom/google/gson/internal/UnsafeAllocator$2;->val$constructorId:I
- invoke-direct {p0}, Lcom/google/gson/internal/UnsafeAllocator;-><init>()V
- return-void
- .end method
- # virtual methods
- .method public newInstance(Ljava/lang/Class;)Ljava/lang/Object;
- .locals 3
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "<T:",
- "Ljava/lang/Object;",
- ">(",
- "Ljava/lang/Class<",
- "TT;>;)TT;"
- }
- .end annotation
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/lang/Exception;
- }
- .end annotation
- invoke-static {p1}, Lcom/google/gson/internal/UnsafeAllocator;->assertInstantiable(Ljava/lang/Class;)V
- iget-object v0, p0, Lcom/google/gson/internal/UnsafeAllocator$2;->val$newInstance:Ljava/lang/reflect/Method;
- const/4 v1, 0x2
- new-array v1, v1, [Ljava/lang/Object;
- const/4 v2, 0x0
- aput-object p1, v1, v2
- iget p1, p0, Lcom/google/gson/internal/UnsafeAllocator$2;->val$constructorId:I
- invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
- move-result-object p1
- const/4 v2, 0x1
- aput-object p1, v1, v2
- const/4 p1, 0x0
- invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
- move-result-object p1
- return-object p1
- .end method
|