File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
spring-core/src/main/java/org/springframework/core/serializer Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -50,6 +50,7 @@ public DefaultDeserializer() {
50
50
/**
51
51
* Create a {@code DefaultDeserializer} for using an {@link ObjectInputStream}
52
52
* with the given {@code ClassLoader}.
53
+ * @param classLoader the ClassLoader to use
53
54
* @since 4.2.1
54
55
* @see ConfigurableObjectInputStream#ConfigurableObjectInputStream(InputStream, ClassLoader)
55
56
*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
21
21
import org .springframework .core .convert .converter .Converter ;
22
22
import org .springframework .core .serializer .DefaultDeserializer ;
23
23
import org .springframework .core .serializer .Deserializer ;
24
+ import org .springframework .lang .Nullable ;
24
25
import org .springframework .util .Assert ;
25
26
26
27
/**
@@ -50,10 +51,11 @@ public DeserializingConverter() {
50
51
/**
51
52
* Create a {@code DeserializingConverter} for using an {@link java.io.ObjectInputStream}
52
53
* with the given {@code ClassLoader}.
54
+ * @param classLoader the ClassLoader to use
53
55
* @since 4.2.1
54
56
* @see DefaultDeserializer#DefaultDeserializer(ClassLoader)
55
57
*/
56
- public DeserializingConverter (ClassLoader classLoader ) {
58
+ public DeserializingConverter (@ Nullable ClassLoader classLoader ) {
57
59
this .deserializer = new DefaultDeserializer (classLoader );
58
60
}
59
61
You can’t perform that action at this time.
0 commit comments