Skip to content

Commit 0db20e2

Browse files
committed
Updated license year, removed comments
1 parent 8844805 commit 0db20e2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/main/java/org/apache/ibatis/cache/decorators/SoftCache.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2021 the original author or authors.
2+
* Copyright 2009-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.
@@ -87,8 +87,7 @@ public Object getObject(Object key) {
8787
@Override
8888
public Object removeObject(Object key) {
8989
removeGarbageCollectedItems();
90-
// See #2403 fix return value
91-
@SuppressWarnings("unchecked") // assumed delegate cache is totally managed by this cache
90+
@SuppressWarnings("unchecked")
9291
SoftReference<Object> softReference = (SoftReference<Object>) delegate.removeObject(key);
9392
return softReference == null ? null : softReference.get();
9493
}

src/main/java/org/apache/ibatis/cache/decorators/WeakCache.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2021 the original author or authors.
2+
* Copyright 2009-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.
@@ -86,8 +86,7 @@ public Object getObject(Object key) {
8686
@Override
8787
public Object removeObject(Object key) {
8888
removeGarbageCollectedItems();
89-
// See #2403 fix return value
90-
@SuppressWarnings("unchecked") // assumed delegate cache is totally managed by this cache
89+
@SuppressWarnings("unchecked")
9190
WeakReference<Object> weakReference = (WeakReference<Object>) delegate.removeObject(key);
9291
return weakReference == null ? null : weakReference.get();
9392
}

0 commit comments

Comments
 (0)