$Gson$Preconditions.smali 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .class public final Lcom/google/gson/internal/$Gson$Preconditions;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # direct methods
  5. .method private constructor <init>()V
  6. .locals 1
  7. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  8. new-instance v0, Ljava/lang/UnsupportedOperationException;
  9. invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
  10. throw v0
  11. .end method
  12. .method public static checkArgument(Z)V
  13. .locals 0
  14. if-eqz p0, :cond_0
  15. return-void
  16. :cond_0
  17. new-instance p0, Ljava/lang/IllegalArgumentException;
  18. invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
  19. throw p0
  20. .end method
  21. .method public static checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  22. .locals 0
  23. .annotation system Ldalvik/annotation/Signature;
  24. value = {
  25. "<T:",
  26. "Ljava/lang/Object;",
  27. ">(TT;)TT;"
  28. }
  29. .end annotation
  30. if-eqz p0, :cond_0
  31. return-object p0
  32. :cond_0
  33. new-instance p0, Ljava/lang/NullPointerException;
  34. invoke-direct {p0}, Ljava/lang/NullPointerException;-><init>()V
  35. throw p0
  36. .end method