File tree 3 files changed +17
-5
lines changed
spring-context/src/main/java/org/springframework/cache/concurrent
spring-context-support/src/main/java/org/springframework/cache 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 28
28
import org .springframework .util .Assert ;
29
29
30
30
/**
31
- * Spring {@link Cache} adapter implementation on top of a
32
- * Guava {@link com.google.common.cache.Cache} instance.
31
+ * Spring {@link org.springframework.cache. Cache} adapter implementation
32
+ * on top of a Guava {@link com.google.common.cache.Cache} instance.
33
33
*
34
34
* <p>Requires Google Guava 12.0 or higher.
35
35
*
@@ -174,6 +174,10 @@ private ValueWrapper toWrapper(Object value) {
174
174
175
175
@ SuppressWarnings ("serial" )
176
176
private static class NullHolder implements Serializable {
177
+
178
+ private Object readResolve () {
179
+ return NULL_HOLDER ;
180
+ }
177
181
}
178
182
179
183
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2014 the original author or authors.
2
+ * Copyright 2002-2015 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.
@@ -142,6 +142,10 @@ protected Object toStoreValue(Object userValue) {
142
142
143
143
@ SuppressWarnings ("serial" )
144
144
private static class NullHolder implements Serializable {
145
+
146
+ private Object readResolve () {
147
+ return NULL_HOLDER ;
148
+ }
145
149
}
146
150
147
151
}
Original file line number Diff line number Diff line change 25
25
import org .springframework .util .Assert ;
26
26
27
27
/**
28
- * Simple {@link Cache} implementation based on the core JDK
29
- * {@code java.util.concurrent} package.
28
+ * Simple {@link org.springframework.cache. Cache} implementation based on the
29
+ * core JDK {@code java.util.concurrent} package.
30
30
*
31
31
* <p>Useful for testing or simple caching scenarios, typically in combination
32
32
* with {@link org.springframework.cache.support.SimpleCacheManager} or
@@ -172,6 +172,10 @@ private ValueWrapper toWrapper(Object value) {
172
172
173
173
@ SuppressWarnings ("serial" )
174
174
private static class NullHolder implements Serializable {
175
+
176
+ private Object readResolve () {
177
+ return NULL_HOLDER ;
178
+ }
175
179
}
176
180
177
181
}
You can’t perform that action at this time.
0 commit comments