Skip to content

Commit

Permalink
feat(sj_1.2.0-beta1): 兼容JDK1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dhb52 authored and open-snail2 committed Sep 8, 2024
1 parent a722626 commit 6a9b26f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.aizuda.snailjob.client.job.core.executor;

import cn.hutool.core.util.StrUtil;
import com.aizuda.snailjob.client.common.config.SnailJobProperties;
import com.aizuda.snailjob.common.core.util.SnailJobFileUtil;
import com.aizuda.snailjob.common.core.util.SnailJobSystemUtil;
import com.aizuda.snailjob.client.model.ExecuteResult;
import com.aizuda.snailjob.common.core.context.SnailSpringContext;
import com.aizuda.snailjob.common.core.exception.SnailJobInnerExecutorException;
import com.aizuda.snailjob.common.core.util.SnailJobFileUtil;
import com.aizuda.snailjob.common.core.util.SnailJobSystemUtil;
import com.aizuda.snailjob.common.log.SnailJobLog;
import io.micrometer.common.util.StringUtils;
import lombok.Data;

import java.io.*;
Expand Down Expand Up @@ -246,7 +246,7 @@ private void logWarn(String msg, Object... params) {
SnailJobLog.REMOTE.warn("[snail-job] " + msg, params);
}

public class SnailFileUtils {
public static class SnailFileUtils {

/**
* 获取工作目录
Expand All @@ -256,7 +256,7 @@ public class SnailFileUtils {
public static String workspace() {
SnailJobProperties snailJobProperties = SnailSpringContext.getBean(SnailJobProperties.class);
String workspaceByDKey = snailJobProperties.getWorkspace();
if (StringUtils.isNotEmpty(workspaceByDKey)) {
if (StrUtil.isNotEmpty(workspaceByDKey)) {
SnailJobLog.LOCAL.info("[FileUtils] [workspace] use custom workspace: {}", workspaceByDKey);
return workspaceByDKey;
}
Expand Down

0 comments on commit 6a9b26f

Please sign in to comment.