remove useless attr of EnhancedClassInstanceContext

This commit is contained in:
wusheng 2016-12-11 20:05:10 +08:00
parent 8aea860f7c
commit 7545ebcc77
1 changed files with 1 additions and 4 deletions

View File

@ -10,8 +10,6 @@ import java.util.concurrent.ConcurrentHashMap;
*
*/
public class EnhancedClassInstanceContext {
public static final String FIELD_NAME = "_$EnhancedClassInstanceContext";
private Map<Object, Object> context = new ConcurrentHashMap<Object, Object>();
public void set(Object key, Object value){
@ -21,12 +19,11 @@ public class EnhancedClassInstanceContext {
public Object get(Object key){
return context.get(key);
}
public boolean isContain(Object key){
return context.containsKey(key);
}
@SuppressWarnings("unchecked")
public <T> T get(Object key, Class<T> type){
return (T)this.get(key);
}