Polishing

This commit is contained in:
Juergen Hoeller
2015-12-21 23:07:32 +01:00
parent 57b3ee324f
commit bb3ff25cad
2 changed files with 13 additions and 8 deletions

View File

@@ -61,8 +61,8 @@ import org.springframework.util.StringUtils;
* </property>
* &lt;/bean&gt;</pre>
*
* <p>Please note that this {@link java.beans.PropertyEditor} is
* <b>not</b> registered by default with any of the Spring infrastructure.
* <p>Please note that this {@link java.beans.PropertyEditor} is <b>not</b>
* registered by default with any of the Spring infrastructure.
*
* <p>Thanks to David Leal Valmana for the suggestion and initial prototype.
*
@@ -89,7 +89,7 @@ public class ResourceBundleEditor extends PropertyEditorSupport {
setValue(ResourceBundle.getBundle(name));
}
else {
// Tge basename potentially has locale information
// The name potentially contains locale information
String baseName = name.substring(0, separator);
if (!StringUtils.hasText(baseName)) {
throw new IllegalArgumentException("Invalid ResourceBundle name: '" + text + "'");