.class final Lcom/facebook/internal/BundleJSONConverter$7; .super Ljava/lang/Object; .source "BundleJSONConverter.java" # interfaces .implements Lcom/facebook/internal/BundleJSONConverter$Setter; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/facebook/internal/BundleJSONConverter; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x8 name = null .end annotation # direct methods .method constructor ()V .locals 0 .prologue .line 102 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public setOnBundle(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/Object;)V .locals 4 .prologue .line 104 check-cast p3, Lorg/json/JSONArray; .line 105 new-instance v2, Ljava/util/ArrayList; invoke-direct {v2}, Ljava/util/ArrayList;->()V .line 107 invoke-virtual {p3}, Lorg/json/JSONArray;->length()I move-result v0 if-nez v0, :cond_0 .line 108 invoke-virtual {p1, p2, v2}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V .line 122 :goto_0 return-void .line 113 :cond_0 const/4 v0, 0x0 move v1, v0 :goto_1 invoke-virtual {p3}, Lorg/json/JSONArray;->length()I move-result v0 if-ge v1, v0, :cond_2 .line 114 invoke-virtual {p3, v1}, Lorg/json/JSONArray;->get(I)Ljava/lang/Object; move-result-object v0 .line 115 instance-of v3, v0, Ljava/lang/String; if-eqz v3, :cond_1 .line 116 check-cast v0, Ljava/lang/String; invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z .line 113 add-int/lit8 v0, v1, 0x1 move v1, v0 goto :goto_1 .line 118 :cond_1 new-instance v1, Ljava/lang/IllegalArgumentException; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "Unexpected type in an array: " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v0 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v1 .line 121 :cond_2 invoke-virtual {p1, p2, v2}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V goto :goto_0 .end method .method public setOnJSON(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V .locals 2 .prologue .line 126 new-instance v0, Ljava/lang/IllegalArgumentException; const-string v1, "JSONArray\'s are not supported in bundles." invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method