We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 637a42b commit fe0d340Copy full SHA for fe0d340
1 file changed
src/main/java/org/scijava/desktop/DefaultDesktopService.java
@@ -185,7 +185,6 @@ private synchronized void initFileTypes() {
185
186
/** Initializes {@link #mimeDB} from the built-in {@code mime-types.txt} resource. */
187
private void initMimeDB() {
188
- final Map<String, String> db = new HashMap<>();
189
final String resource = "mime-types.txt";
190
try (
191
final InputStream is = getClass().getResourceAsStream(resource);
@@ -213,7 +212,7 @@ private void initMimeDB() {
213
212
mime = rest.substring(0, pipe2).trim();
214
description = rest.substring(pipe2 + 1).trim();
215
}
216
- db.putIfAbsent(ext, mime);
+ mimeDB.putIfAbsent(ext, mime);
217
if (description != null && !description.isEmpty()) {
218
descriptions.put(ext, description);
219
0 commit comments