浏览代码

优化代码

everywhere.z 1 年之前
父节点
当前提交
49a677e45b
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeComponent.java

+ 3 - 3
liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeComponent.java

@@ -87,10 +87,10 @@ public abstract class NodeComponent {
 		Class<?> clazz = this.getClass();
 		try {
 			Method method = clazz.getDeclaredMethod("rollback");
-			if(ObjectUtil.isNotNull(method))
+			if(ObjectUtil.isNotNull(method)){
 				this.setRollback(true);
-		} catch (Exception e) {
-		}
+			}
+		} catch (Exception ignored) {}
 	}
 
 	public void execute() throws Exception {