Merge branch '5.3.x'
# Conflicts: # spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java # spring-context/src/main/java/org/springframework/scripting/support/StandardScriptFactory.java
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2022 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.
|
||||
@@ -26,7 +26,7 @@ import org.springframework.util.StringUtils;
|
||||
* Converts from a String to a {@link java.util.Locale}.
|
||||
*
|
||||
* <p>Accepts the classic {@link Locale} String format ({@link Locale#toString()})
|
||||
* as well as BCP 47 language tags ({@link Locale#forLanguageTag} on Java 7+).
|
||||
* as well as BCP 47 language tags ({@link Locale#forLanguageTag}.
|
||||
*
|
||||
* @author Keith Donald
|
||||
* @author Juergen Hoeller
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2022 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.
|
||||
@@ -35,8 +35,8 @@ import java.util.Properties;
|
||||
* <p>Loading from and storing to a stream delegates to {@code Properties.load}
|
||||
* and {@code Properties.store}, respectively, to be fully compatible with
|
||||
* the Unicode conversion as implemented by the JDK Properties class. As of JDK 6,
|
||||
* {@code Properties.load/store} will also be used for readers/writers,
|
||||
* effectively turning this class into a plain backwards compatibility adapter.
|
||||
* {@code Properties.load/store} is also used for readers/writers, effectively
|
||||
* turning this class into a plain backwards compatibility adapter.
|
||||
*
|
||||
* <p>The persistence code that works with Reader/Writer follows the JDK's parsing
|
||||
* strategy but does not implement Unicode conversion, because the Reader/Writer
|
||||
|
||||
@@ -791,11 +791,11 @@ public abstract class StringUtils {
|
||||
|
||||
/**
|
||||
* Parse the given {@code String} value into a {@link Locale}, accepting
|
||||
* the {@link Locale#toString} format as well as BCP 47 language tags.
|
||||
* the {@link Locale#toString} format as well as BCP 47 language tags as
|
||||
* specified by {@link Locale#forLanguageTag}.
|
||||
* @param localeValue the locale value: following either {@code Locale's}
|
||||
* {@code toString()} format ("en", "en_UK", etc), also accepting spaces as
|
||||
* separators (as an alternative to underscores), or BCP 47 (e.g. "en-UK")
|
||||
* as specified by {@link Locale#forLanguageTag} on Java 7+
|
||||
* @return a corresponding {@code Locale} instance, or {@code null} if none
|
||||
* @throws IllegalArgumentException in case of an invalid locale specification
|
||||
* @since 5.0.4
|
||||
|
||||
Reference in New Issue
Block a user