From 9a1e181d39f25eb14857e863976e5000e0c8fba9 Mon Sep 17 00:00:00 2001 From: mxd <838425805@qq.com> Date: Fri, 13 Dec 2019 17:08:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/spiderflow/ExpressionHolder.java | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 spider-flow-api/src/main/java/org/spiderflow/ExpressionHolder.java diff --git a/spider-flow-api/src/main/java/org/spiderflow/ExpressionHolder.java b/spider-flow-api/src/main/java/org/spiderflow/ExpressionHolder.java deleted file mode 100644 index bf00610..0000000 --- a/spider-flow-api/src/main/java/org/spiderflow/ExpressionHolder.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.spiderflow; - -import java.util.Map; - -public class ExpressionHolder { - - private static ThreadLocal> variables = new ThreadLocal<>(); - - public static void setVariables(Map variable){ - variables.set(variable); - } - - public static Object get(String key){ - Map variable = variables.get(); - return variable != null ? variable.get(key) : null; - } - - public static void remove(){ - variables.remove(); - } - -}