We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ada726 commit 6662e77Copy full SHA for 6662e77
src/test/java/org/apache/ibatis/cache/PerpetualCacheTest.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2009-2023 the original author or authors.
+ * Copyright 2009-2024 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -75,7 +75,7 @@ void shouldFlushAllItemsOnDemand() {
75
@Test
76
void shouldDemonstrateIdIsNull() {
77
Cache cache = new PerpetualCache(null);
78
- assertThrows(CacheException.class, () -> cache.hashCode());
+ assertThrows(CacheException.class, cache::hashCode);
79
assertThrows(CacheException.class, () -> cache.equals(new Object()));
80
}
81
0 commit comments