AtomicThrowable.smali 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .class public final Lio/reactivex/internal/util/AtomicThrowable;
  2. .super Ljava/util/concurrent/atomic/AtomicReference;
  3. .source "AtomicThrowable.java"
  4. # annotations
  5. .annotation system Ldalvik/annotation/Signature;
  6. value = {
  7. "Ljava/util/concurrent/atomic/AtomicReference<",
  8. "Ljava/lang/Throwable;",
  9. ">;"
  10. }
  11. .end annotation
  12. # static fields
  13. .field private static final serialVersionUID:J = 0x36ce8ce03b5e1eabL
  14. # direct methods
  15. .method public constructor <init>()V
  16. .locals 0
  17. .line 24
  18. invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
  19. return-void
  20. .end method
  21. # virtual methods
  22. .method public addThrowable(Ljava/lang/Throwable;)Z
  23. .locals 0
  24. .line 35
  25. invoke-static {p0, p1}, Lio/reactivex/internal/util/ExceptionHelper;->addThrowable(Ljava/util/concurrent/atomic/AtomicReference;Ljava/lang/Throwable;)Z
  26. move-result p1
  27. return p1
  28. .end method
  29. .method public isTerminated()Z
  30. .locals 2
  31. .line 48
  32. invoke-virtual {p0}, Lio/reactivex/internal/util/AtomicThrowable;->get()Ljava/lang/Object;
  33. move-result-object v0
  34. sget-object v1, Lio/reactivex/internal/util/ExceptionHelper;->TERMINATED:Ljava/lang/Throwable;
  35. if-ne v0, v1, :cond_0
  36. const/4 v0, 0x1
  37. goto :goto_0
  38. :cond_0
  39. const/4 v0, 0x0
  40. :goto_0
  41. return v0
  42. .end method
  43. .method public terminate()Ljava/lang/Throwable;
  44. .locals 1
  45. .line 44
  46. invoke-static {p0}, Lio/reactivex/internal/util/ExceptionHelper;->terminate(Ljava/util/concurrent/atomic/AtomicReference;)Ljava/lang/Throwable;
  47. move-result-object v0
  48. return-object v0
  49. .end method