Skip to content

Commit e26d883

Browse files
committed
Stop referring to features as Java 6/7 features where unnecessary
1 parent a1c7380 commit e26d883

File tree

11 files changed

+26
-26
lines changed

11 files changed

+26
-26
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/serviceloader/package-info.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Support package for the Java 6 ServiceLoader facility.
2+
* Support package for the Java {@link java.util.ServiceLoader} facility.
33
*/
44
@NonNullApi
55
@NonNullFields

spring-beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -985,7 +985,7 @@ public void storeCache(RootBeanDefinition mbd, Executable constructorOrFactoryMe
985985

986986

987987
/**
988-
* Delegate for checking Java 6's {@link ConstructorProperties} annotation.
988+
* Delegate for checking Java's {@link ConstructorProperties} annotation.
989989
*/
990990
private static class ConstructorPropertiesChecker {
991991

spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -762,7 +762,7 @@ protected ObjectName getObjectName(Object bean, @Nullable String beanKey) throws
762762
* <p>The default implementation delegates to {@link JmxUtils#isMBean},
763763
* which checks for {@link javax.management.DynamicMBean} classes as well
764764
* as classes with corresponding "*MBean" interface (Standard MBeans)
765-
* or corresponding "*MXBean" interface (Java 6 MXBeans).
765+
* or corresponding "*MXBean" interface (Java MXBeans).
766766
* @param beanClass the bean class to analyze
767767
* @return whether the class qualifies as an MBean
768768
* @see org.springframework.jmx.support.JmxUtils#isMBean(Class)

spring-context/src/main/java/org/springframework/jmx/support/JmxUtils.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -255,7 +255,7 @@ public static Class<?> getClassToExpose(Class<?> clazz) {
255255
* Determine whether the given bean class qualifies as an MBean as-is.
256256
* <p>This implementation checks for {@link javax.management.DynamicMBean}
257257
* classes as well as classes with corresponding "*MBean" interface
258-
* (Standard MBeans) or corresponding "*MXBean" interface (Java 6 MXBeans).
258+
* (Standard MBeans) or corresponding "*MXBean" interface (Java MXBeans).
259259
* @param clazz the bean class to analyze
260260
* @return whether the class qualifies as an MBean
261261
* @see org.springframework.jmx.export.MBeanExporter#isMBean(Class)
@@ -289,7 +289,7 @@ public static Class<?> getMBeanInterface(@Nullable Class<?> clazz) {
289289
}
290290

291291
/**
292-
* Return the Java 6 MXBean interface exists for the given class, if any
292+
* Return the Java MXBean interface for the given class, if any
293293
* (that is, an interface whose name ends with "MXBean" and/or
294294
* carries an appropriate MXBean annotation).
295295
* @param clazz the class to check

spring-context/src/main/java/org/springframework/scripting/support/StandardScriptFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -36,7 +36,7 @@
3636

3737
/**
3838
* {@link org.springframework.scripting.ScriptFactory} implementation based
39-
* on the JSR-223 script engine abstraction (as included in Java 6+).
39+
* on the JSR-223 script engine abstraction (as included in Java).
4040
* Supports JavaScript, Groovy, JRuby, and other JSR-223 compliant engines.
4141
*
4242
* <p>Typically used in combination with a

spring-core/src/main/java/org/springframework/core/convert/support/StringToLocaleConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -26,7 +26,7 @@
2626
* Converts from a String to a {@link java.util.Locale}.
2727
*
2828
* <p>Accepts the classic {@link Locale} String format ({@link Locale#toString()})
29-
* as well as BCP 47 language tags ({@link Locale#forLanguageTag} on Java 7+).
29+
* as well as BCP 47 language tags ({@link Locale#forLanguageTag}.
3030
*
3131
* @author Keith Donald
3232
* @author Juergen Hoeller

spring-core/src/main/java/org/springframework/util/DefaultPropertiesPersister.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -35,8 +35,8 @@
3535
* <p>Loading from and storing to a stream delegates to {@code Properties.load}
3636
* and {@code Properties.store}, respectively, to be fully compatible with
3737
* the Unicode conversion as implemented by the JDK Properties class. As of JDK 6,
38-
* {@code Properties.load/store} will also be used for readers/writers,
39-
* effectively turning this class into a plain backwards compatibility adapter.
38+
* {@code Properties.load/store} is also used for readers/writers, effectively
39+
* turning this class into a plain backwards compatibility adapter.
4040
*
4141
* <p>The persistence code that works with Reader/Writer follows the JDK's parsing
4242
* strategy but does not implement Unicode conversion, because the Reader/Writer

spring-core/src/main/java/org/springframework/util/StringUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -804,11 +804,11 @@ public static String uriDecode(String source, Charset charset) {
804804

805805
/**
806806
* Parse the given {@code String} value into a {@link Locale}, accepting
807-
* the {@link Locale#toString} format as well as BCP 47 language tags.
807+
* the {@link Locale#toString} format as well as BCP 47 language tags as
808+
* specified by {@link Locale#forLanguageTag}.
808809
* @param localeValue the locale value: following either {@code Locale's}
809810
* {@code toString()} format ("en", "en_UK", etc), also accepting spaces as
810811
* separators (as an alternative to underscores), or BCP 47 (e.g. "en-UK")
811-
* as specified by {@link Locale#forLanguageTag} on Java 7+
812812
* @return a corresponding {@code Locale} instance, or {@code null} if none
813813
* @throws IllegalArgumentException in case of an invalid locale specification
814814
* @since 5.0.4

spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodeSQLExceptionTranslator.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -50,9 +50,9 @@
5050
* by default. This factory loads a "sql-error-codes.xml" file from the class path,
5151
* defining error code mappings for database names from database meta-data.
5252
* <li>Fallback to a fallback translator. {@link SQLStateSQLExceptionTranslator} is the
53-
* default fallback translator, analyzing the exception's SQL state only. On Java 6
54-
* which introduces its own {@code SQLException} subclass hierarchy, we will
55-
* use {@link SQLExceptionSubclassTranslator} by default, which in turns falls back
53+
* default fallback translator, analyzing the exception's SQL state only. Since Java 6
54+
* which introduces its own {@code SQLException} subclass hierarchy, we use
55+
* {@link SQLExceptionSubclassTranslator} by default, which in turns falls back
5656
* to Spring's own SQL state translation when not encountering specific subclasses.
5757
* </ul>
5858
*

spring-jdbc/src/test/java/org/springframework/jdbc/support/SQLExceptionSubclassFactory.java

+2-2
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-2022 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.
@@ -29,7 +29,7 @@
2929
import java.sql.SQLTransientConnectionException;
3030

3131
/**
32-
* Class to generate Java 6 SQLException subclasses for testing purposes.
32+
* Class to generate {@link SQLException} subclasses for testing purposes.
3333
*
3434
* @author Thomas Risberg
3535
*/

spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/CookieLocaleResolver.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -314,9 +314,9 @@ protected Locale parseLocaleValue(String localeValue) {
314314
/**
315315
* Render the given locale as a text value for inclusion in a cookie.
316316
* <p>The default implementation calls {@link Locale#toString()}
317-
* or JDK 7's {@link Locale#toLanguageTag()}, depending on the
317+
* or {@link Locale#toLanguageTag()}, depending on the
318318
* {@link #setLanguageTagCompliant "languageTagCompliant"} configuration property.
319-
* @param locale the locale to stringify
319+
* @param locale the locale to convert to a string
320320
* @return a String representation for the given locale
321321
* @since 4.3
322322
* @see #isLanguageTagCompliant()

0 commit comments

Comments
 (0)