Skip to content

Commit 6e122d3

Browse files
committed
Polish contribution
See gh-36833
1 parent f7be796 commit 6e122d3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

spring-core/src/main/java/org/springframework/core/serializer/DefaultDeserializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public DefaultDeserializer(@Nullable ClassLoader classLoader) {
6161

6262
/**
6363
* Return the {@link ClassLoader} to use for deserialization, or {@code null}
64-
* to use the "latest user-defined ClassLoader" of {@link ObjectInputStream}.
65-
* @since 7.1
64+
* to use the "latest user-defined ClassLoader".
65+
* @since 6.2.19
6666
* @see ConfigurableObjectInputStream#ConfigurableObjectInputStream(InputStream, ClassLoader)
6767
*/
6868
public @Nullable ClassLoader getClassLoader() {

spring-core/src/test/java/org/springframework/core/serializer/SerializerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ public String deserialize(InputStream inputStream) {
7878
assertThat(deserializer.expectedInputStream).isNotNull();
7979
}
8080

81-
@Test
81+
@Test // gh-36833
8282
void defaultDeserializerExposesNullClassLoaderByDefault() {
8383
assertThat(new DefaultDeserializer().getClassLoader()).isNull();
8484
}
8585

86-
@Test
86+
@Test // gh-36833
8787
void defaultDeserializerExposesConfiguredClassLoader() {
8888
ClassLoader classLoader = getClass().getClassLoader();
8989
assertThat(new DefaultDeserializer(classLoader).getClassLoader()).isSameAs(classLoader);

0 commit comments

Comments
 (0)