diff options
| author | Tobias Thierer <tobiast@google.com> | 2019-04-05 22:12:21 +0100 |
|---|---|---|
| committer | Tobias Thierer <tobiast@google.com> | 2019-04-08 18:59:13 +0100 |
| commit | 177a6aa0054af5ad47a2967d87e517e759d455f1 (patch) | |
| tree | 8360ec4744c7fdc7ebd095a9ebd5659b9d6e2d0f /annotations/generate_annotated_java_files.py | |
| parent | 16bee58eee4f4f167defe54533baad54de3d337e (diff) | |
Simplify HttpURLConnectionTest.readAscii().
HttpURLConnectionTest had a helper method readAscii(InputStream, int)
that read up to the given number of bytes. Most callers were passing
Integer.MAX_VALUE to read the entire InputStream.
This CL adds a helper method to simplify this common use case, and
makes the helper methods static.
A bunch of these calls could be simplified further by making use
of the helper method assertContent(String, URLConnection), but
this simplification is left to a potential future CL.
Test: atest CtsLibcoreTestCases:libcore.java.net.URLConnectionTest
Change-Id: Ib693cfd95c11b674a683f1102d26682e4cfb458d
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
