File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/main/java/org/apache/ibatis/cache/decorators Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2021 the original author or authors.
2
+ * Copyright 2009-2022 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.
@@ -87,8 +87,7 @@ public Object getObject(Object key) {
87
87
@ Override
88
88
public Object removeObject (Object key ) {
89
89
removeGarbageCollectedItems ();
90
- // See #2403 fix return value
91
- @ SuppressWarnings ("unchecked" ) // assumed delegate cache is totally managed by this cache
90
+ @ SuppressWarnings ("unchecked" )
92
91
SoftReference <Object > softReference = (SoftReference <Object >) delegate .removeObject (key );
93
92
return softReference == null ? null : softReference .get ();
94
93
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2021 the original author or authors.
2
+ * Copyright 2009-2022 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.
@@ -86,8 +86,7 @@ public Object getObject(Object key) {
86
86
@ Override
87
87
public Object removeObject (Object key ) {
88
88
removeGarbageCollectedItems ();
89
- // See #2403 fix return value
90
- @ SuppressWarnings ("unchecked" ) // assumed delegate cache is totally managed by this cache
89
+ @ SuppressWarnings ("unchecked" )
91
90
WeakReference <Object > weakReference = (WeakReference <Object >) delegate .removeObject (key );
92
91
return weakReference == null ? null : weakReference .get ();
93
92
}
You can’t perform that action at this time.
0 commit comments