summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2019-04-25 22:21:12 +0100
committerTobias Thierer <tobiast@google.com>2019-05-02 21:42:27 +0100
commitf63a873f12a69372fb72f384f6e4bb60f2e7043d (patch)
tree5893eb36b6e120e438eff0ffd14a04007d2c5828 /annotations/generate_annotated_java_files.py
parentca4325f8918f0ead1e39b71d755112ad5a0c9a4e (diff)
android.mime.types: minor cleanup.
Extensions listed in android.mime.types can have a trailing '!' to signify that they should override any previously encountered mapping from the MIME type on the same line. Multiple '!' can always be rewritten such that only a single '!' is required; for example, the extension list foo! bar! baz can equivalently be written as: bar! foo baz This CL only allows '!' on the first extension listed in a line. Additional sanity checks (for example: '!' should only occur in android.mime.types but never in mime.types, and there shouldn't be a need for the same MIME type to occur more than once in the same file) are not done in this CL but left to a potential future follow-up CL. Test: atest CtsLibcoreTestCases:libcore.libcore.net.MimeMapTest (note that test covers expectations for the MIME type and extensions in android.mime.types touched by this CL). Bug: 122831291 Change-Id: Ib7d783ae8bb83c306578f9ea9acadce11ec8f23b
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions