| | | |
Offset 1, 159 lines modified | Offset 1, 146 lines modified |
1 | .class·public·abstract·Lcom/google/common/base/Enums; | |
2 | .super·Ljava/lang/Object; | 1 | .class·final·Lcom/google/common/util/concurrent/MoreExecutors$ScheduledListeningDecorator$NeverSuccessfulListenableFutureTask; |
| 2 | .super·Lcom/google/common/util/concurrent/AbstractFuture; |
3 | .source·"Enums.java" | 3 | .source·"MoreExecutors.java" |
| |
| 4 | #·interfaces |
| 5 | .implements·Ljava/lang/Runnable; |
| 6 | .implements·Lcom/google/common/util/concurrent/AbstractFuture$Trusted; |
| |
| |
4 | #·static·fields | 7 | #·instance·fields |
5 | .field·private·static·final·enumConstantCache:Ljava/util/Map; | 8 | .field·private·final·delegate:Ljava/lang/Runnable; |
| |
| |
6 | #·direct·methods | 9 | #·direct·methods |
7 | .method·static·constructor·<clinit>()V | 10 | .method·public·constructor·<init>(Ljava/lang/Runnable;)V |
8 | ····.locals·1 | 11 | ····.locals·0 |
| |
9 | ····.line·1 | 12 | ····.line·1 |
10 | ····new-instance·v0,·Ljava/util/WeakHashMap; | 13 | ····invoke-direct·{p0},·Lcom/google/common/util/concurrent/AbstractFuture;-><init>()V |
| |
11 | ····invoke-direct·{v0},·Ljava/util/WeakHashMap;-><init>()V | 14 | ····.line·2 |
| 15 | ····invoke-static·{p1},·Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; |
| |
12 | ····sput-object·v0,·Lcom/google/common/base/Enums;->enumConstantCache:Ljava/util/Map; | 16 | ····.line·3 |
| 17 | ····iput-object·p1,·p0,·Lcom/google/common/util/concurrent/MoreExecutors$ScheduledListeningDecorator$NeverSuccessfulListenableFutureTask;->delegate:Ljava/lang/Runnable; |
| |
13 | ····return-void | 18 | ····return-void |
14 | .end·method | 19 | .end·method |
| |
15 | .method·static·getEnumConstants(Ljava/lang/Class;)Ljava/util/Map; | |
16 | ····.locals·6 | |
| |
| 20 | #·virtual·methods |
| 21 | .method·public·final·addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V |
| 22 | ····.locals·0 |
17 | ····.line·1 | |
18 | ····sget-object·v0,·Lcom/google/common/base/Enums;->enumConstantCache:Ljava/util/Map; | |
| |
19 | ····monitor-enter·v0 | |
| |
20 | ····.line·2 | 23 | ····.line·1 |
| 24 | ····invoke-super·{p0,·p1,·p2},·Lcom/google/common/util/concurrent/AbstractFuture;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V |
21 | ····:try_start_0 | |
22 | ····move-object·v1,·v0 | |
| |
23 | ····check-cast·v1,·Ljava/util/WeakHashMap; | |
| |
24 | ····invoke-virtual·{v1,·p0},·Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; | |
| |
25 | ····move-result-object·v1 | |
| |
26 | ····check-cast·v1,·Ljava/util/Map; | |
| |
27 | ····if-nez·v1,·:cond_1 | |
| |
28 | ····.line·3 | |
29 | ····new-instance·v1,·Ljava/util/HashMap; | 25 | ····return-void |
| 26 | .end·method |
| |
30 | ····invoke-direct·{v1},·Ljava/util/HashMap;-><init>()V | 27 | .method·public·final·cancel(Z)Z |
| 28 | ····.locals·0 |
| |
31 | ····.line·4 | 29 | ····.line·1 |
32 | ····invoke-static·{p0},·Ljava/util/EnumSet;->allOf(Ljava/lang/Class;)Ljava/util/EnumSet; | 30 | ····invoke-super·{p0,·p1},·Lcom/google/common/util/concurrent/AbstractFuture;->cancel(Z)Z |
| |
33 | ····move-result-object·v2 | 31 | ····move-result·p0 |
| |
34 | ····invoke-virtual·{v2},·Ljava/util/EnumSet;->iterator()Ljava/util/Iterator; | 32 | ····return·p0 |
| 33 | .end·method |
| |
35 | ····move-result-object·v2 | 34 | .method·public·final·get()Ljava/lang/Object; |
| 35 | ····.locals·0 |
| |
36 | ····:goto_0 | |
37 | ····invoke-interface·{v2},·Ljava/util/Iterator;->hasNext()Z | 36 | ····.line·1 |
| 37 | ····invoke-super·{p0},·Lcom/google/common/util/concurrent/AbstractFuture;->get()Ljava/lang/Object; |
| |
38 | ····move-result·v3 | 38 | ····move-result-object·p0 |
| |
39 | ····if-eqz·v3,·:cond_0 | 39 | ····return-object·p0 |
| 40 | .end·method |
| |
40 | ····invoke-interface·{v2},·Ljava/util/Iterator;->next()Ljava/lang/Object; | 41 | .method·public·final·get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; |
| 42 | ····.locals·0 |
| |
41 | ····move-result-object·v3 | 43 | ····.line·2 |
| 44 | ····invoke-super·{p0,·p1,·p2,·p3},·Lcom/google/common/util/concurrent/AbstractFuture;->get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; |
| |
42 | ····check-cast·v3,·Ljava/lang/Enum; | 45 | ····move-result-object·p0 |
| |
43 | ····.line·5 | |
44 | ····invoke-virtual·{v3},·Ljava/lang/Enum;->name()Ljava/lang/String; | 46 | ····return-object·p0 |
| 47 | .end·method |
| |
45 | ····move-result-object·v4 | 48 | .method·public·final·isCancelled()Z |
| 49 | ····.locals·0 |
| |
46 | ····new-instance·v5,·Ljava/lang/ref/WeakReference; | 50 | ····.line·1 |
| 51 | ····invoke-super·{p0},·Lcom/google/common/util/concurrent/AbstractFuture;->isCancelled()Z |
| |
47 | ····invoke-direct·{v5,·v3},·Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V | 52 | ····move-result·p0 |
| |
48 | ····invoke-virtual·{v1,·v4,·v5},·Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; | 53 | ····return·p0 |
| 54 | .end·method |
| |
49 | ····goto·:goto_0 | 55 | .method·public·final·isDone()Z |
| 56 | ····.locals·0 |
| |
50 | ····.line·6 | 57 | ····.line·1 |
| 58 | ····invoke-super·{p0},·Lcom/google/common/util/concurrent/AbstractFuture;->isDone()Z |
51 | ····:cond_0 | |
52 | ····sget-object·v2,·Lcom/google/common/base/Enums;->enumConstantCache:Ljava/util/Map; | |
| |
53 | ····check-cast·v2,·Ljava/util/WeakHashMap; | 59 | ····move-result·p0 |
| |
54 | ····invoke-virtual·{v2,·p0,·v1},·Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; | 60 | ····return·p0 |
| 61 | .end·method |
| |
| 62 | .method·public·run()V |
| 63 | ····.locals·1 |
55 | ····.line·7 | |
56 | ····:cond_1 | |
57 | ····monitor-exit·v0 | |
| |
58 | ····return-object·v1 | 64 | ····.line·1 |
| 65 | ····:try_start_0 |
| 66 | ····iget-object·v0,·p0,·Lcom/google/common/util/concurrent/MoreExecutors$ScheduledListeningDecorator$NeverSuccessfulListenableFutureTask;->delegate:Ljava/lang/Runnable; |
| |
| 67 | ····invoke-interface·{v0},·Ljava/lang/Runnable;->run()V |
59 | ····.line·8 | |
60 | ····:goto_1 | |
61 | ····monitor-exit·v0 | |
62 | ····:try_end_0 | 68 | ····:try_end_0 |
63 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 | 69 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
64 | ····throw·p0 | 70 | ····return-void |
| |
65 | ····:catchall_0 | 71 | ····:catchall_0 |
66 | ····move-exception·p0 | 72 | ····move-exception·v0 |
| |
67 | ····goto·:goto_1 | |
68 | .end·method | |
| |
69 | .method·public·static·getIfPresent(Ljava/lang/Class;Ljava/lang/String;)Lcom/google/common/base/Optional; | |
70 | ····.locals·1 | |
| |
71 | ····.line·1 | |
72 | ····invoke-static·{p1},·Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; | |
| |
73 | ····.line·2 | 73 | ····.line·2 |
74 | ····sget·v0,·Lcom/google/common/base/Platform;->$r8$clinit:I | 74 | ····invoke-virtual·{p0,·v0},·Lcom/google/common/util/concurrent/AbstractFuture;->setException(Ljava/lang/Throwable;)Z |
| |
75 | ····.line·3 | 75 | ····.line·3 |
| 76 | ····sget·p0,·Lcom/google/common/base/Throwables;->$r8$clinit:I |
76 | ····invoke-static·{p0},·Lcom/google/common/base/Enums;->getEnumConstants(Ljava/lang/Class;)Ljava/util/Map; | |
| |
77 | ····move-result-object·v0 | |
| |
78 | ····invoke-interface·{v0,·p1},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; | |
| |
79 | ····move-result-object·p1 | |
| |
80 | ····check-cast·p1,·Ljava/lang/ref/WeakReference; | |
| |
81 | ····if-nez·p1,·:cond_0 | |
| |
82 | ····.line·4 | 77 | ····.line·4 |
83 | ····sget-object·p0,·Lcom/google/common/base/Absent;->INSTANCE:Lcom/google/common/base/Absent; | 78 | ····instance-of·p0,·v0,·Ljava/lang/RuntimeException; |
| |
84 | ····goto·:goto_0 | 79 | ····if-nez·p0,·:cond_1 |
| |
85 | ····.line·5 | 80 | ····.line·5 |
| 81 | ····instance-of·p0,·v0,·Ljava/lang/Error; |
86 | ····:cond_0 | |
87 | ····invoke-virtual·{p1},·Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object; | |
| |
88 | ····move-result-object·p1 | 82 | ····if-nez·p0,·:cond_0 |
| |
89 | ····invoke-virtual·{p0,·p1},·Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object; | 83 | ····.line·6 |
| 84 | ····new-instance·p0,·Ljava/lang/RuntimeException; |
| |
90 | ····move-result-object·p0 | 85 | ····invoke-direct·{p0,·v0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V |
| |
91 | ····check-cast·p0,·Ljava/lang/Enum; | 86 | ····throw·p0 |
| |
92 | ····invoke-static·{p0},·Lcom/google/common/base/Optional;->of(Ljava/lang/Object;)Lcom/google/common/base/Optional; | 87 | ····.line·7 |
| 88 | ····:cond_0 |
| 89 | ····check-cast·v0,·Ljava/lang/Error; |
| |
93 | ····move-result-object·p0 | 90 | ····throw·v0 |
| |
94 | ····:goto_0 | |
95 | ····return-object·p0 | 91 | ····.line·8 |
| 92 | ····:cond_1 |
| 93 | ····check-cast·v0,·Ljava/lang/RuntimeException; |
| |
| 94 | ····throw·v0 |
96 | .end·method | 95 | .end·method |