删除不必要的代码
This commit is contained in:
parent
2b13b1b3fd
commit
9a1e181d39
@ -1,22 +0,0 @@
|
||||
package org.spiderflow;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class ExpressionHolder {
|
||||
|
||||
private static ThreadLocal<Map<String,Object>> variables = new ThreadLocal<>();
|
||||
|
||||
public static void setVariables(Map<String,Object> variable){
|
||||
variables.set(variable);
|
||||
}
|
||||
|
||||
public static Object get(String key){
|
||||
Map<String, Object> variable = variables.get();
|
||||
return variable != null ? variable.get(key) : null;
|
||||
}
|
||||
|
||||
public static void remove(){
|
||||
variables.remove();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user