Skip to content

Commit ee04046

Browse files
committed
polishing
1 parent 3cf22a0 commit ee04046

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

org.springframework.context.support/src/main/java/org/springframework/mail/javamail/ConfigurableMimeFileTypeMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2010 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -153,8 +153,8 @@ protected FileTypeMap createFileTypeMap(Resource mappingLocation, String[] mappi
153153
fileTypeMap = new MimetypesFileTypeMap();
154154
}
155155
if (mappings != null) {
156-
for (int i = 0; i < mappings.length; i++) {
157-
fileTypeMap.addMimeTypes(mappings[i]);
156+
for (String mapping : mappings) {
157+
fileTypeMap.addMimeTypes(mapping);
158158
}
159159
}
160160
return fileTypeMap;

org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-3.0.xsd

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,66 +23,66 @@
2323
<xsd:attribute name="location" type="xsd:string">
2424
<xsd:annotation>
2525
<xsd:documentation><![CDATA[
26-
The location of the properties file to resolve placeholders against, as a Spring
27-
resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
28-
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is
29-
specified, placeholders will be resolved against system properties.
26+
The location of the properties file to resolve placeholders against, as a Spring
27+
resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
28+
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is
29+
specified, placeholders will be resolved against system properties.
3030
]]></xsd:documentation>
3131
</xsd:annotation>
3232
</xsd:attribute>
3333
<xsd:attribute name="properties-ref" type="xsd:string">
3434
<xsd:annotation>
3535
<xsd:documentation source="java:java.util.Properties"><![CDATA[
36-
The bean name of a Java Properties object that will be used for property substitution.
37-
If neither location nor properties-ref is specified, placeholders will be resolved against system properties.
36+
The bean name of a Java Properties object that will be used for property substitution.
37+
If neither location nor properties-ref is specified, placeholders will be resolved against system properties.
3838
]]></xsd:documentation>
3939
</xsd:annotation>
4040
</xsd:attribute>
4141
<xsd:attribute name="file-encoding" type="xsd:string">
4242
<xsd:annotation>
4343
<xsd:documentation><![CDATA[
44-
Specifies the encoding to use for parsing properties files. Default is none,
45-
using the java.util.Properties default encoding. Only applies to classic
46-
properties files, not to XML files.
44+
Specifies the encoding to use for parsing properties files. Default is none,
45+
using the java.util.Properties default encoding. Only applies to classic
46+
properties files, not to XML files.
4747
]]></xsd:documentation>
4848
</xsd:annotation>
4949
</xsd:attribute>
5050
<xsd:attribute name="order" type="xsd:integer">
5151
<xsd:annotation>
5252
<xsd:documentation><![CDATA[
53-
Specifies the order for this placeholder configurer. If more than one is present in a context
54-
the order can be important since the first one to be match a placeholder will win. Often used
55-
in conjunction with
53+
Specifies the order for this placeholder configurer. If more than one is present in a context
54+
the order can be important since the first one to be match a placeholder will win. Often used
55+
in conjunction with
5656
]]></xsd:documentation>
5757
</xsd:annotation>
5858
</xsd:attribute>
5959
<xsd:attribute name="ignore-resource-not-found" type="xsd:boolean"
6060
default="false">
6161
<xsd:annotation>
6262
<xsd:documentation><![CDATA[
63-
Specifies if failure to find the property resource location should be ignored. Default
64-
is "false", meaning that if there is no file in the location specified an exception will
65-
be raised at runtime.
63+
Specifies if failure to find the property resource location should be ignored. Default
64+
is "false", meaning that if there is no file in the location specified an exception will
65+
be raised at runtime.
6666
]]></xsd:documentation>
6767
</xsd:annotation>
6868
</xsd:attribute>
6969
<xsd:attribute name="ignore-unresolvable" type="xsd:boolean"
7070
default="false">
7171
<xsd:annotation>
7272
<xsd:documentation><![CDATA[
73-
Specifies if failure to find the property value to replace a key should be ignored. Default
74-
is "false", meaning that this placeholder configurer will raise an exception if it cannot resolve
75-
a key. Set to "true" to allow the configurer to pass on the key to any others in
76-
the context that have not yet visited the key in question.
73+
Specifies if failure to find the property value to replace a key should be ignored. Default
74+
is "false", meaning that this placeholder configurer will raise an exception if it cannot resolve
75+
a key. Set to "true" to allow the configurer to pass on the key to any others in
76+
the context that have not yet visited the key in question.
7777
]]></xsd:documentation>
7878
</xsd:annotation>
7979
</xsd:attribute>
8080
<xsd:attribute name="local-override" type="xsd:boolean"
8181
default="false">
8282
<xsd:annotation>
8383
<xsd:documentation><![CDATA[
84-
Specifies whether local properties override properties from files. Default
85-
is "false": Properties from files override local defaults.
84+
Specifies whether local properties override properties from files. Default
85+
is "false": Properties from files override local defaults.
8686
]]></xsd:documentation>
8787
</xsd:annotation>
8888
</xsd:attribute>

0 commit comments

Comments
 (0)