Headers.smali 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. .class public final Lokhttp3/Headers;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/MemberClasses;
  6. value = {
  7. Lokhttp3/Headers$Builder;
  8. }
  9. .end annotation
  10. # instance fields
  11. .field private final namesAndValues:[Ljava/lang/String;
  12. # direct methods
  13. .method constructor <init>(Lokhttp3/Headers$Builder;)V
  14. .locals 1
  15. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  16. iget-object p1, p1, Lokhttp3/Headers$Builder;->namesAndValues:Ljava/util/List;
  17. invoke-interface {p1}, Ljava/util/List;->size()I
  18. move-result v0
  19. new-array v0, v0, [Ljava/lang/String;
  20. invoke-interface {p1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
  21. move-result-object p1
  22. check-cast p1, [Ljava/lang/String;
  23. iput-object p1, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  24. return-void
  25. .end method
  26. .method private constructor <init>([Ljava/lang/String;)V
  27. .locals 0
  28. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  29. iput-object p1, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  30. return-void
  31. .end method
  32. .method private static get([Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
  33. .locals 2
  34. array-length v0, p0
  35. add-int/lit8 v0, v0, -0x2
  36. :goto_0
  37. if-ltz v0, :cond_1
  38. aget-object v1, p0, v0
  39. invoke-virtual {p1, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  40. move-result v1
  41. if-eqz v1, :cond_0
  42. add-int/lit8 v0, v0, 0x1
  43. aget-object p0, p0, v0
  44. return-object p0
  45. :cond_0
  46. add-int/lit8 v0, v0, -0x2
  47. goto :goto_0
  48. :cond_1
  49. const/4 p0, 0x0
  50. return-object p0
  51. .end method
  52. .method public static of(Ljava/util/Map;)Lokhttp3/Headers;
  53. .locals 7
  54. .annotation system Ldalvik/annotation/Signature;
  55. value = {
  56. "(",
  57. "Ljava/util/Map<",
  58. "Ljava/lang/String;",
  59. "Ljava/lang/String;",
  60. ">;)",
  61. "Lokhttp3/Headers;"
  62. }
  63. .end annotation
  64. if-eqz p0, :cond_3
  65. invoke-interface {p0}, Ljava/util/Map;->size()I
  66. move-result v0
  67. mul-int/lit8 v0, v0, 0x2
  68. new-array v0, v0, [Ljava/lang/String;
  69. invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
  70. move-result-object p0
  71. invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
  72. move-result-object p0
  73. const/4 v1, 0x0
  74. const/4 v2, 0x0
  75. :goto_0
  76. invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
  77. move-result v3
  78. if-eqz v3, :cond_2
  79. invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
  80. move-result-object v3
  81. check-cast v3, Ljava/util/Map$Entry;
  82. invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
  83. move-result-object v4
  84. if-eqz v4, :cond_1
  85. invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
  86. move-result-object v4
  87. if-eqz v4, :cond_1
  88. invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
  89. move-result-object v4
  90. check-cast v4, Ljava/lang/String;
  91. invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;
  92. move-result-object v4
  93. invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
  94. move-result-object v3
  95. check-cast v3, Ljava/lang/String;
  96. invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;
  97. move-result-object v3
  98. invoke-virtual {v4}, Ljava/lang/String;->length()I
  99. move-result v5
  100. if-eqz v5, :cond_0
  101. invoke-virtual {v4, v1}, Ljava/lang/String;->indexOf(I)I
  102. move-result v5
  103. const/4 v6, -0x1
  104. if-ne v5, v6, :cond_0
  105. invoke-virtual {v3, v1}, Ljava/lang/String;->indexOf(I)I
  106. move-result v5
  107. if-ne v5, v6, :cond_0
  108. aput-object v4, v0, v2
  109. add-int/lit8 v4, v2, 0x1
  110. aput-object v3, v0, v4
  111. add-int/lit8 v2, v2, 0x2
  112. goto :goto_0
  113. :cond_0
  114. new-instance p0, Ljava/lang/IllegalArgumentException;
  115. new-instance v0, Ljava/lang/StringBuilder;
  116. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  117. const-string v1, "Unexpected header: "
  118. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  119. invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  120. const-string v1, ": "
  121. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  122. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  123. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  124. move-result-object v0
  125. invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  126. throw p0
  127. :cond_1
  128. new-instance p0, Ljava/lang/IllegalArgumentException;
  129. const-string v0, "Headers cannot be null"
  130. invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  131. throw p0
  132. :cond_2
  133. new-instance p0, Lokhttp3/Headers;
  134. invoke-direct {p0, v0}, Lokhttp3/Headers;-><init>([Ljava/lang/String;)V
  135. return-object p0
  136. :cond_3
  137. new-instance p0, Ljava/lang/NullPointerException;
  138. const-string v0, "headers == null"
  139. invoke-direct {p0, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
  140. goto :goto_2
  141. :goto_1
  142. throw p0
  143. :goto_2
  144. goto :goto_1
  145. .end method
  146. .method public static varargs of([Ljava/lang/String;)Lokhttp3/Headers;
  147. .locals 6
  148. if-eqz p0, :cond_5
  149. array-length v0, p0
  150. rem-int/lit8 v0, v0, 0x2
  151. if-nez v0, :cond_4
  152. invoke-virtual {p0}, [Ljava/lang/String;->clone()Ljava/lang/Object;
  153. move-result-object p0
  154. check-cast p0, [Ljava/lang/String;
  155. const/4 v0, 0x0
  156. const/4 v1, 0x0
  157. :goto_0
  158. array-length v2, p0
  159. if-ge v1, v2, :cond_1
  160. aget-object v2, p0, v1
  161. if-eqz v2, :cond_0
  162. aget-object v2, p0, v1
  163. invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;
  164. move-result-object v2
  165. aput-object v2, p0, v1
  166. add-int/lit8 v1, v1, 0x1
  167. goto :goto_0
  168. :cond_0
  169. new-instance p0, Ljava/lang/IllegalArgumentException;
  170. const-string v0, "Headers cannot be null"
  171. invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  172. throw p0
  173. :cond_1
  174. const/4 v1, 0x0
  175. :goto_1
  176. array-length v2, p0
  177. if-ge v1, v2, :cond_3
  178. aget-object v2, p0, v1
  179. add-int/lit8 v3, v1, 0x1
  180. aget-object v3, p0, v3
  181. invoke-virtual {v2}, Ljava/lang/String;->length()I
  182. move-result v4
  183. if-eqz v4, :cond_2
  184. invoke-virtual {v2, v0}, Ljava/lang/String;->indexOf(I)I
  185. move-result v4
  186. const/4 v5, -0x1
  187. if-ne v4, v5, :cond_2
  188. invoke-virtual {v3, v0}, Ljava/lang/String;->indexOf(I)I
  189. move-result v4
  190. if-ne v4, v5, :cond_2
  191. add-int/lit8 v1, v1, 0x2
  192. goto :goto_1
  193. :cond_2
  194. new-instance p0, Ljava/lang/IllegalArgumentException;
  195. new-instance v0, Ljava/lang/StringBuilder;
  196. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  197. const-string v1, "Unexpected header: "
  198. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  199. invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  200. const-string v1, ": "
  201. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  202. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  203. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  204. move-result-object v0
  205. invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  206. throw p0
  207. :cond_3
  208. new-instance v0, Lokhttp3/Headers;
  209. invoke-direct {v0, p0}, Lokhttp3/Headers;-><init>([Ljava/lang/String;)V
  210. return-object v0
  211. :cond_4
  212. new-instance p0, Ljava/lang/IllegalArgumentException;
  213. const-string v0, "Expected alternating header names and values"
  214. invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  215. throw p0
  216. :cond_5
  217. new-instance p0, Ljava/lang/NullPointerException;
  218. const-string v0, "namesAndValues == null"
  219. invoke-direct {p0, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
  220. goto :goto_3
  221. :goto_2
  222. throw p0
  223. :goto_3
  224. goto :goto_2
  225. .end method
  226. # virtual methods
  227. .method public byteCount()J
  228. .locals 6
  229. iget-object v0, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  230. array-length v1, v0
  231. mul-int/lit8 v1, v1, 0x2
  232. int-to-long v1, v1
  233. array-length v0, v0
  234. const/4 v3, 0x0
  235. :goto_0
  236. if-ge v3, v0, :cond_0
  237. iget-object v4, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  238. aget-object v4, v4, v3
  239. invoke-virtual {v4}, Ljava/lang/String;->length()I
  240. move-result v4
  241. int-to-long v4, v4
  242. add-long/2addr v1, v4
  243. add-int/lit8 v3, v3, 0x1
  244. goto :goto_0
  245. :cond_0
  246. return-wide v1
  247. .end method
  248. .method public equals(Ljava/lang/Object;)Z
  249. .locals 1
  250. instance-of v0, p1, Lokhttp3/Headers;
  251. if-eqz v0, :cond_0
  252. check-cast p1, Lokhttp3/Headers;
  253. iget-object p1, p1, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  254. iget-object v0, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  255. invoke-static {p1, v0}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
  256. move-result p1
  257. if-eqz p1, :cond_0
  258. const/4 p1, 0x1
  259. goto :goto_0
  260. :cond_0
  261. const/4 p1, 0x0
  262. :goto_0
  263. return p1
  264. .end method
  265. .method public get(Ljava/lang/String;)Ljava/lang/String;
  266. .locals 1
  267. iget-object v0, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  268. invoke-static {v0, p1}, Lokhttp3/Headers;->get([Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
  269. move-result-object p1
  270. return-object p1
  271. .end method
  272. .method public getDate(Ljava/lang/String;)Ljava/util/Date;
  273. .locals 0
  274. invoke-virtual {p0, p1}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String;
  275. move-result-object p1
  276. if-eqz p1, :cond_0
  277. invoke-static {p1}, Lokhttp3/internal/http/HttpDate;->parse(Ljava/lang/String;)Ljava/util/Date;
  278. move-result-object p1
  279. goto :goto_0
  280. :cond_0
  281. const/4 p1, 0x0
  282. :goto_0
  283. return-object p1
  284. .end method
  285. .method public hashCode()I
  286. .locals 1
  287. iget-object v0, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  288. invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
  289. move-result v0
  290. return v0
  291. .end method
  292. .method public name(I)Ljava/lang/String;
  293. .locals 1
  294. iget-object v0, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  295. mul-int/lit8 p1, p1, 0x2
  296. aget-object p1, v0, p1
  297. return-object p1
  298. .end method
  299. .method public names()Ljava/util/Set;
  300. .locals 4
  301. .annotation system Ldalvik/annotation/Signature;
  302. value = {
  303. "()",
  304. "Ljava/util/Set<",
  305. "Ljava/lang/String;",
  306. ">;"
  307. }
  308. .end annotation
  309. new-instance v0, Ljava/util/TreeSet;
  310. sget-object v1, Ljava/lang/String;->CASE_INSENSITIVE_ORDER:Ljava/util/Comparator;
  311. invoke-direct {v0, v1}, Ljava/util/TreeSet;-><init>(Ljava/util/Comparator;)V
  312. invoke-virtual {p0}, Lokhttp3/Headers;->size()I
  313. move-result v1
  314. const/4 v2, 0x0
  315. :goto_0
  316. if-ge v2, v1, :cond_0
  317. invoke-virtual {p0, v2}, Lokhttp3/Headers;->name(I)Ljava/lang/String;
  318. move-result-object v3
  319. invoke-virtual {v0, v3}, Ljava/util/TreeSet;->add(Ljava/lang/Object;)Z
  320. add-int/lit8 v2, v2, 0x1
  321. goto :goto_0
  322. :cond_0
  323. invoke-static {v0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
  324. move-result-object v0
  325. return-object v0
  326. .end method
  327. .method public newBuilder()Lokhttp3/Headers$Builder;
  328. .locals 3
  329. new-instance v0, Lokhttp3/Headers$Builder;
  330. invoke-direct {v0}, Lokhttp3/Headers$Builder;-><init>()V
  331. iget-object v1, v0, Lokhttp3/Headers$Builder;->namesAndValues:Ljava/util/List;
  332. iget-object v2, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  333. invoke-static {v1, v2}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
  334. return-object v0
  335. .end method
  336. .method public size()I
  337. .locals 1
  338. iget-object v0, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  339. array-length v0, v0
  340. div-int/lit8 v0, v0, 0x2
  341. return v0
  342. .end method
  343. .method public toMultimap()Ljava/util/Map;
  344. .locals 6
  345. .annotation system Ldalvik/annotation/Signature;
  346. value = {
  347. "()",
  348. "Ljava/util/Map<",
  349. "Ljava/lang/String;",
  350. "Ljava/util/List<",
  351. "Ljava/lang/String;",
  352. ">;>;"
  353. }
  354. .end annotation
  355. new-instance v0, Ljava/util/TreeMap;
  356. sget-object v1, Ljava/lang/String;->CASE_INSENSITIVE_ORDER:Ljava/util/Comparator;
  357. invoke-direct {v0, v1}, Ljava/util/TreeMap;-><init>(Ljava/util/Comparator;)V
  358. invoke-virtual {p0}, Lokhttp3/Headers;->size()I
  359. move-result v1
  360. const/4 v2, 0x0
  361. :goto_0
  362. if-ge v2, v1, :cond_1
  363. invoke-virtual {p0, v2}, Lokhttp3/Headers;->name(I)Ljava/lang/String;
  364. move-result-object v3
  365. sget-object v4, Ljava/util/Locale;->US:Ljava/util/Locale;
  366. invoke-virtual {v3, v4}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
  367. move-result-object v3
  368. invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
  369. move-result-object v4
  370. check-cast v4, Ljava/util/List;
  371. if-nez v4, :cond_0
  372. new-instance v4, Ljava/util/ArrayList;
  373. const/4 v5, 0x2
  374. invoke-direct {v4, v5}, Ljava/util/ArrayList;-><init>(I)V
  375. invoke-interface {v0, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
  376. :cond_0
  377. invoke-virtual {p0, v2}, Lokhttp3/Headers;->value(I)Ljava/lang/String;
  378. move-result-object v3
  379. invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  380. add-int/lit8 v2, v2, 0x1
  381. goto :goto_0
  382. :cond_1
  383. return-object v0
  384. .end method
  385. .method public toString()Ljava/lang/String;
  386. .locals 4
  387. new-instance v0, Ljava/lang/StringBuilder;
  388. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  389. invoke-virtual {p0}, Lokhttp3/Headers;->size()I
  390. move-result v1
  391. const/4 v2, 0x0
  392. :goto_0
  393. if-ge v2, v1, :cond_0
  394. invoke-virtual {p0, v2}, Lokhttp3/Headers;->name(I)Ljava/lang/String;
  395. move-result-object v3
  396. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  397. const-string v3, ": "
  398. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  399. invoke-virtual {p0, v2}, Lokhttp3/Headers;->value(I)Ljava/lang/String;
  400. move-result-object v3
  401. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  402. const-string v3, "\n"
  403. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  404. add-int/lit8 v2, v2, 0x1
  405. goto :goto_0
  406. :cond_0
  407. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  408. move-result-object v0
  409. return-object v0
  410. .end method
  411. .method public value(I)Ljava/lang/String;
  412. .locals 1
  413. iget-object v0, p0, Lokhttp3/Headers;->namesAndValues:[Ljava/lang/String;
  414. mul-int/lit8 p1, p1, 0x2
  415. add-int/lit8 p1, p1, 0x1
  416. aget-object p1, v0, p1
  417. return-object p1
  418. .end method
  419. .method public values(Ljava/lang/String;)Ljava/util/List;
  420. .locals 4
  421. .annotation system Ldalvik/annotation/Signature;
  422. value = {
  423. "(",
  424. "Ljava/lang/String;",
  425. ")",
  426. "Ljava/util/List<",
  427. "Ljava/lang/String;",
  428. ">;"
  429. }
  430. .end annotation
  431. invoke-virtual {p0}, Lokhttp3/Headers;->size()I
  432. move-result v0
  433. const/4 v1, 0x0
  434. const/4 v2, 0x0
  435. :goto_0
  436. if-ge v2, v0, :cond_2
  437. invoke-virtual {p0, v2}, Lokhttp3/Headers;->name(I)Ljava/lang/String;
  438. move-result-object v3
  439. invoke-virtual {p1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  440. move-result v3
  441. if-eqz v3, :cond_1
  442. if-nez v1, :cond_0
  443. new-instance v1, Ljava/util/ArrayList;
  444. const/4 v3, 0x2
  445. invoke-direct {v1, v3}, Ljava/util/ArrayList;-><init>(I)V
  446. :cond_0
  447. invoke-virtual {p0, v2}, Lokhttp3/Headers;->value(I)Ljava/lang/String;
  448. move-result-object v3
  449. invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  450. :cond_1
  451. add-int/lit8 v2, v2, 0x1
  452. goto :goto_0
  453. :cond_2
  454. if-eqz v1, :cond_3
  455. invoke-static {v1}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
  456. move-result-object p1
  457. goto :goto_1
  458. :cond_3
  459. invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
  460. move-result-object p1
  461. :goto_1
  462. return-object p1
  463. .end method