Skip to content

Commit 21f680c

Browse files
jhoellerunknown
authored andcommitted
Deprecated DefaultKeyGenerator
Issue: SPR-11210
1 parent 6ee7250 commit 21f680c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spring-context/src/main/java/org/springframework/cache/interceptor/DefaultKeyGenerator.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 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.
@@ -18,8 +18,6 @@
1818

1919
import java.lang.reflect.Method;
2020

21-
import org.springframework.cache.interceptor.KeyGenerator;
22-
2321
/**
2422
* Default key generator. Returns {@value #NO_PARAM_KEY} if no
2523
* parameters are provided, the parameter itself if only one is given or
@@ -36,9 +34,10 @@
3634
* @author Costin Leau
3735
* @author Chris Beams
3836
* @since 3.1
39-
* @see SimpleKeyGenerator
40-
* @see org.springframework.cache.annotation.CachingConfigurer
37+
* @deprecated as of Spring 4.0, in favor of {@link SimpleKeyGenerator}
38+
* or custom {@link KeyGenerator} implementations based on hash codes
4139
*/
40+
@Deprecated
4241
public class DefaultKeyGenerator implements KeyGenerator {
4342

4443
public static final int NO_PARAM_KEY = 0;

0 commit comments

Comments
 (0)