Dns$1.smali 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .class final Lokhttp3/Dns$1;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Lokhttp3/Dns;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingClass;
  8. value = Lokhttp3/Dns;
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x0
  12. name = null
  13. .end annotation
  14. # direct methods
  15. .method constructor <init>()V
  16. .locals 0
  17. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  18. return-void
  19. .end method
  20. # virtual methods
  21. .method public lookup(Ljava/lang/String;)Ljava/util/List;
  22. .locals 1
  23. .annotation system Ldalvik/annotation/Signature;
  24. value = {
  25. "(",
  26. "Ljava/lang/String;",
  27. ")",
  28. "Ljava/util/List<",
  29. "Ljava/net/InetAddress;",
  30. ">;"
  31. }
  32. .end annotation
  33. .annotation system Ldalvik/annotation/Throws;
  34. value = {
  35. Ljava/net/UnknownHostException;
  36. }
  37. .end annotation
  38. if-eqz p1, :cond_0
  39. invoke-static {p1}, Ljava/net/InetAddress;->getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;
  40. move-result-object p1
  41. invoke-static {p1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
  42. move-result-object p1
  43. return-object p1
  44. :cond_0
  45. new-instance p1, Ljava/net/UnknownHostException;
  46. const-string v0, "hostname == null"
  47. invoke-direct {p1, v0}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
  48. throw p1
  49. .end method