From ee04046ed71fe26621b8a88f87700907beb62ab0 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Sun, 15 Aug 2010 23:04:19 +0000 Subject: [PATCH] polishing --- .../javamail/ConfigurableMimeFileTypeMap.java | 6 +-- .../context/config/spring-context-3.0.xsd | 42 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/org.springframework.context.support/src/main/java/org/springframework/mail/javamail/ConfigurableMimeFileTypeMap.java b/org.springframework.context.support/src/main/java/org/springframework/mail/javamail/ConfigurableMimeFileTypeMap.java index acdd77b11d2..e0fdfadf7ec 100644 --- a/org.springframework.context.support/src/main/java/org/springframework/mail/javamail/ConfigurableMimeFileTypeMap.java +++ b/org.springframework.context.support/src/main/java/org/springframework/mail/javamail/ConfigurableMimeFileTypeMap.java @@ -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"); * 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(); } if (mappings != null) { - for (int i = 0; i < mappings.length; i++) { - fileTypeMap.addMimeTypes(mappings[i]); + for (String mapping : mappings) { + fileTypeMap.addMimeTypes(mapping); } } return fileTypeMap; diff --git a/org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-3.0.xsd b/org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-3.0.xsd index dd8f18dbeed..bc3a1b7b714 100644 --- a/org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-3.0.xsd +++ b/org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-3.0.xsd @@ -23,36 +23,36 @@ @@ -60,9 +60,9 @@ in conjunction with default="false"> @@ -70,10 +70,10 @@ be raised at runtime. default="false"> @@ -81,8 +81,8 @@ the context that have not yet visited the key in question. default="false">