From 54cb1759072fcf088c529e75a047188726f358f0 Mon Sep 17 00:00:00 2001 From: pengda Date: Tue, 15 Oct 2019 16:29:06 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-22779=20=E6=9B=B4=E6=96=B0=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=90=8E=E9=87=8D=E5=90=AF=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/RestartHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/RestartHelper.java b/designer-base/src/main/java/com/fr/design/RestartHelper.java index b49c083e79..5720629e79 100644 --- a/designer-base/src/main/java/com/fr/design/RestartHelper.java +++ b/designer-base/src/main/java/com/fr/design/RestartHelper.java @@ -29,7 +29,7 @@ public class RestartHelper { public static final String RECORD_FILE = StableUtils.pathJoin(StableUtils.getInstallHome(), "delete.properties"); public static final String MOVE_FILE = StableUtils.pathJoin(StableUtils.getInstallHome(), "move.properties"); - private static OSBasedAction osBasedAction; + private static OSBasedAction restartAction; /** * 把要删除的文件都记录到delete.properties中 * @@ -166,7 +166,7 @@ public class RestartHelper { }catch (Exception e){ FineLoggerFactory.getLogger().error(e.getMessage(), e); } - osBasedAction.execute(filesToBeDelete); + restartAction.execute(filesToBeDelete); } catch (Exception e) { FineLoggerFactory.getLogger().error(e.getMessage(), e); }finally { @@ -185,6 +185,6 @@ public class RestartHelper { * 提前初始化重启动作 */ public static void initRestartAction(){ - osBasedAction = OSSupportCenter.getAction(RestartAction.class); + restartAction = OSSupportCenter.getAction(RestartAction.class); } } \ No newline at end of file