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:
commit
5f8a4bcdc5
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Support package for the Java 6 ServiceLoader facility.
|
||||
* Support package for the Java {@link java.util.ServiceLoader} facility.
|
||||
*/
|
||||
@NonNullApi
|
||||
@NonNullFields
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2021 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.
|
||||
|
@ -961,7 +961,7 @@ class ConstructorResolver {
|
|||
|
||||
|
||||
/**
|
||||
* Delegate for checking Java 6's {@link ConstructorProperties} annotation.
|
||||
* Delegate for checking Java's {@link ConstructorProperties} annotation.
|
||||
*/
|
||||
private static class ConstructorPropertiesChecker {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2021 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.
|
||||
|
@ -762,7 +762,7 @@ public class MBeanExporter extends MBeanRegistrationSupport implements MBeanExpo
|
|||
* <p>The default implementation delegates to {@link JmxUtils#isMBean},
|
||||
* which checks for {@link javax.management.DynamicMBean} classes as well
|
||||
* as classes with corresponding "*MBean" interface (Standard MBeans)
|
||||
* or corresponding "*MXBean" interface (Java 6 MXBeans).
|
||||
* or corresponding "*MXBean" interface (Java MXBeans).
|
||||
* @param beanClass the bean class to analyze
|
||||
* @return whether the class qualifies as an MBean
|
||||
* @see org.springframework.jmx.support.JmxUtils#isMBean(Class)
|
||||
|
|
|
@ -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.
|
||||
|
@ -255,7 +255,7 @@ public abstract class JmxUtils {
|
|||
* Determine whether the given bean class qualifies as an MBean as-is.
|
||||
* <p>This implementation checks for {@link javax.management.DynamicMBean}
|
||||
* classes as well as classes with corresponding "*MBean" interface
|
||||
* (Standard MBeans) or corresponding "*MXBean" interface (Java 6 MXBeans).
|
||||
* (Standard MBeans) or corresponding "*MXBean" interface (Java MXBeans).
|
||||
* @param clazz the bean class to analyze
|
||||
* @return whether the class qualifies as an MBean
|
||||
* @see org.springframework.jmx.export.MBeanExporter#isMBean(Class)
|
||||
|
@ -289,7 +289,7 @@ public abstract class JmxUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Return the Java 6 MXBean interface exists for the given class, if any
|
||||
* Return the Java MXBean interface for the given class, if any
|
||||
* (that is, an interface whose name ends with "MXBean" and/or
|
||||
* carries an appropriate MXBean annotation).
|
||||
* @param clazz the class to check
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2021 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.
|
||||
|
@ -36,7 +36,7 @@ import org.springframework.util.StringUtils;
|
|||
|
||||
/**
|
||||
* {@link org.springframework.scripting.ScriptFactory} implementation based
|
||||
* on the JSR-223 script engine abstraction (as included in Java 6+).
|
||||
* on the JSR-223 script engine abstraction (as included in Java).
|
||||
* Supports JavaScript, Groovy, JRuby, and other JSR-223 compliant engines.
|
||||
*
|
||||
* <p>Typically used in combination with a
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -50,9 +50,9 @@ import org.springframework.util.function.SupplierUtils;
|
|||
* by default. This factory loads a "sql-error-codes.xml" file from the class path,
|
||||
* defining error code mappings for database names from database meta-data.
|
||||
* <li>Fallback to a fallback translator. {@link SQLStateSQLExceptionTranslator} is the
|
||||
* default fallback translator, analyzing the exception's SQL state only. On Java 6
|
||||
* which introduces its own {@code SQLException} subclass hierarchy, we will
|
||||
* use {@link SQLExceptionSubclassTranslator} by default, which in turns falls back
|
||||
* default fallback translator, analyzing the exception's SQL state only. Since Java 6
|
||||
* which introduces its own {@code SQLException} subclass hierarchy, we use
|
||||
* {@link SQLExceptionSubclassTranslator} by default, which in turns falls back
|
||||
* to Spring's own SQL state translation when not encountering specific subclasses.
|
||||
* </ul>
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2008 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.
|
||||
|
@ -29,7 +29,7 @@ import java.sql.SQLTransactionRollbackException;
|
|||
import java.sql.SQLTransientConnectionException;
|
||||
|
||||
/**
|
||||
* Class to generate Java 6 SQLException subclasses for testing purposes.
|
||||
* Class to generate {@link SQLException} subclasses for testing purposes.
|
||||
*
|
||||
* @author Thomas Risberg
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
|
@ -314,9 +314,9 @@ public class CookieLocaleResolver extends CookieGenerator implements LocaleConte
|
|||
/**
|
||||
* Render the given locale as a text value for inclusion in a cookie.
|
||||
* <p>The default implementation calls {@link Locale#toString()}
|
||||
* or JDK 7's {@link Locale#toLanguageTag()}, depending on the
|
||||
* or {@link Locale#toLanguageTag()}, depending on the
|
||||
* {@link #setLanguageTagCompliant "languageTagCompliant"} configuration property.
|
||||
* @param locale the locale to stringify
|
||||
* @param locale the locale to convert to a string
|
||||
* @return a String representation for the given locale
|
||||
* @since 4.3
|
||||
* @see #isLanguageTagCompliant()
|
||||
|
|
Loading…
Reference in New Issue