Skip to content

Commit 6662e77

Browse files
committed
tests: Lambda cleanup
1 parent 1ada726 commit 6662e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/apache/ibatis/cache/PerpetualCacheTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2023 the original author or authors.
2+
* Copyright 2009-2024 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.
@@ -75,7 +75,7 @@ void shouldFlushAllItemsOnDemand() {
7575
@Test
7676
void shouldDemonstrateIdIsNull() {
7777
Cache cache = new PerpetualCache(null);
78-
assertThrows(CacheException.class, () -> cache.hashCode());
78+
assertThrows(CacheException.class, cache::hashCode);
7979
assertThrows(CacheException.class, () -> cache.equals(new Object()));
8080
}
8181
}

0 commit comments

Comments
 (0)