UnsafeAllocator$4.smali 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .class final Lcom/google/gson/internal/UnsafeAllocator$4;
  2. .super Lcom/google/gson/internal/UnsafeAllocator;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lcom/google/gson/internal/UnsafeAllocator;->create()Lcom/google/gson/internal/UnsafeAllocator;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x8
  10. name = null
  11. .end annotation
  12. # direct methods
  13. .method constructor <init>()V
  14. .locals 0
  15. invoke-direct {p0}, Lcom/google/gson/internal/UnsafeAllocator;-><init>()V
  16. return-void
  17. .end method
  18. # virtual methods
  19. .method public newInstance(Ljava/lang/Class;)Ljava/lang/Object;
  20. .locals 3
  21. .annotation system Ldalvik/annotation/Signature;
  22. value = {
  23. "<T:",
  24. "Ljava/lang/Object;",
  25. ">(",
  26. "Ljava/lang/Class<",
  27. "TT;>;)TT;"
  28. }
  29. .end annotation
  30. new-instance v0, Ljava/lang/UnsupportedOperationException;
  31. new-instance v1, Ljava/lang/StringBuilder;
  32. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  33. const-string v2, "Cannot allocate "
  34. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  35. invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  36. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  37. move-result-object p1
  38. invoke-direct {v0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
  39. throw v0
  40. .end method