Describe the bug
Multiple mime.types files on classpath are not loaded.
To Reproduce
Steps to reproduce the behavior:
- Add several projects/libs with different
META-INF/mime.types
- Run some code that iniatializes the mappings (e.g.
FileTypeMap.getDefaultFileTypeMap())
- Check that all mappings are present.
Expected behavior
All mappings should be present
Desktop (please complete the following information):
Additional context
I believe that the break at line 251 is misplaced. It should be contained within the if (urls != null) (or not present at all) but it is unconditionally executed after the first name in the loop is handled.
Describe the bug
Multiple
mime.typesfiles on classpath are not loaded.To Reproduce
Steps to reproduce the behavior:
META-INF/mime.typesFileTypeMap.getDefaultFileTypeMap())Expected behavior
All mappings should be present
Desktop (please complete the following information):
Additional context
I believe that the
breakat line 251 is misplaced. It should be contained within theif (urls != null)(or not present at all) but it is unconditionally executed after the first name in the loop is handled.