81 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lcom/nytimes/android/external/cache/t;
 | |
| .super Ljava/lang/Object;
 | |
| .source "Uninterruptibles.java"
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static a(Ljava/util/concurrent/Future;)Ljava/lang/Object;
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/util/concurrent/Future;
 | |
|         .annotation runtime Ljavax/annotation/Nonnull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<V:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/util/concurrent/Future<",
 | |
|             "TV;>;)TV;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/util/concurrent/ExecutionException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     :goto_0
 | |
|     :try_start_0
 | |
|     invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p0
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-object p0
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
 | |
| 
 | |
|     :cond_1
 | |
|     throw p0
 | |
| 
 | |
|     :catch_0
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| .end method
 |