summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2019-01-31 11:57:11 +0000
committerTobias Thierer <tobiast@google.com>2019-04-26 18:28:41 +0100
commit8ae51365ee5182c6c97c9d2cb489e38ef809f4cc (patch)
tree3c06eba9a7be1da47f418093748683584635c638 /annotations/generate_annotated_java_files.py
parent80cd52683cabe5e099bcec327e2fee90168e509c (diff)
Customizable MIME type <-> file extension mapping, step 1.
This CL factors out MimeMap{,Impl} from MimeUtils. MimeMap supports customizing the implementation instance, but this is currently an internal implementation detail; this CL does not change the behavior of any API surface. In future CLs, I plan to do the following: 1.) Expose MimeMap, including {get,compareAndSet}Default, via a new @CorePlatformApi. 2.) Convert existing users of MimeUtils to use MimeMap.getDefault() instead. 3.) Delete MimeUtils. Bug: 120171727 Test: Checked that this CL does not change behavior of MimeUtils by checking that the test logic attached to http://b/122831291#comment7 passes both before and after this CL. Test: atest CtsLibcoreTestCases:libcore.libcore.net.Mime{Map,Utils}Test Change-Id: Idc27c29826a6eb2e4c9c54be058eb0577d525aec
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions