Remove unnecessary final modifier
final is useless for private and static methods See gh-31916
This commit is contained in:
committed by
Stéphane Nicoll
parent
c3b5f5bf90
commit
45080e3724
@@ -32,7 +32,7 @@ public class ContextCacheTestUtils {
|
||||
/**
|
||||
* Reset the state of the static context cache in {@link DefaultCacheAwareContextLoaderDelegate}.
|
||||
*/
|
||||
public static final void resetContextCache() {
|
||||
public static void resetContextCache() {
|
||||
DefaultCacheAwareContextLoaderDelegate.defaultContextCache.reset();
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class ContextCacheTestUtils {
|
||||
* @param expectedHitCount the expected hit count
|
||||
* @param expectedMissCount the expected miss count
|
||||
*/
|
||||
public static final void assertContextCacheStatistics(int expectedSize, int expectedHitCount, int expectedMissCount) {
|
||||
public static void assertContextCacheStatistics(int expectedSize, int expectedHitCount, int expectedMissCount) {
|
||||
assertContextCacheStatistics(null, expectedSize, expectedHitCount, expectedMissCount);
|
||||
}
|
||||
|
||||
@@ -55,8 +55,8 @@ public class ContextCacheTestUtils {
|
||||
* @param expectedHitCount the expected hit count
|
||||
* @param expectedMissCount the expected miss count
|
||||
*/
|
||||
public static final void assertContextCacheStatistics(String usageScenario, int expectedSize, int expectedHitCount,
|
||||
int expectedMissCount) {
|
||||
public static void assertContextCacheStatistics(String usageScenario, int expectedSize, int expectedHitCount,
|
||||
int expectedMissCount) {
|
||||
assertContextCacheStatistics(DefaultCacheAwareContextLoaderDelegate.defaultContextCache, usageScenario,
|
||||
expectedSize, expectedHitCount, expectedMissCount);
|
||||
}
|
||||
@@ -70,8 +70,8 @@ public class ContextCacheTestUtils {
|
||||
* @param expectedHitCount the expected hit count
|
||||
* @param expectedMissCount the expected miss count
|
||||
*/
|
||||
public static final void assertContextCacheStatistics(ContextCache contextCache, String usageScenario,
|
||||
int expectedSize, int expectedHitCount, int expectedMissCount) {
|
||||
public static void assertContextCacheStatistics(ContextCache contextCache, String usageScenario,
|
||||
int expectedSize, int expectedHitCount, int expectedMissCount) {
|
||||
|
||||
String context = (StringUtils.hasText(usageScenario) ? " (" + usageScenario + ")" : "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user