polishing

This commit is contained in:
Juergen Hoeller 2010-08-15 23:04:19 +00:00
parent 3cf22a0255
commit ee04046ed7
2 changed files with 24 additions and 24 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2010 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -153,8 +153,8 @@ public class ConfigurableMimeFileTypeMap extends FileTypeMap implements Initiali
fileTypeMap = new MimetypesFileTypeMap(); fileTypeMap = new MimetypesFileTypeMap();
} }
if (mappings != null) { if (mappings != null) {
for (int i = 0; i < mappings.length; i++) { for (String mapping : mappings) {
fileTypeMap.addMimeTypes(mappings[i]); fileTypeMap.addMimeTypes(mapping);
} }
} }
return fileTypeMap; return fileTypeMap;