Skip to content

Commit 5e95ae5

Browse files
authored
[代码完善]移除无用包 (elunez#522)
1 parent aab6bef commit 5e95ae5

22 files changed

Lines changed: 7 additions & 28 deletions

File tree

eladmin-common/src/main/java/me/zhengjie/utils/RedisUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.springframework.data.redis.connection.RedisConnectionFactory;
2525
import org.springframework.data.redis.core.*;
2626
import org.springframework.stereotype.Component;
27-
import org.springframework.util.CollectionUtils;
2827

2928
import java.util.*;
3029
import java.util.concurrent.TimeUnit;

eladmin-common/src/test/java/me/zhengjie/utils/DateUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class DateUtilsTest {
1010
public void test1() {
1111
long l = System.currentTimeMillis() / 1000;
1212
LocalDateTime localDateTime = DateUtil.fromTimeStamp(l);
13-
System.out.printf(DateUtil.localDateTimeFormatyMdHms(localDateTime));
13+
System.out.print(DateUtil.localDateTimeFormatyMdHms(localDateTime));
1414
}
1515

1616
@Test

eladmin-logging/src/main/java/me/zhengjie/service/impl/LogServiceImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import cn.hutool.core.lang.Dict;
1919
import cn.hutool.core.util.ObjectUtil;
20-
import cn.hutool.json.JSONObject;
2120
import cn.hutool.json.JSONUtil;
2221
import lombok.RequiredArgsConstructor;
2322
import me.zhengjie.domain.Log;

eladmin-system/src/main/java/me/zhengjie/modules/mnt/repository/ServerDeployRepository.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
import me.zhengjie.modules.mnt.domain.ServerDeploy;
1919
import org.springframework.data.jpa.repository.JpaRepository;
2020
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
21-
import org.springframework.data.jpa.repository.Modifying;
22-
import org.springframework.data.jpa.repository.Query;
2321

2422
/**
2523
* @author zhanghouying

eladmin-system/src/main/java/me/zhengjie/modules/mnt/util/SqlUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package me.zhengjie.modules.mnt.util;
1717

18-
import cn.hutool.crypto.SecureUtil;
1918
import com.alibaba.druid.pool.DruidDataSource;
2019
import com.alibaba.druid.util.StringUtils;
2120
import com.google.common.collect.Lists;

eladmin-system/src/main/java/me/zhengjie/modules/mnt/util/ZipUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ public static void upZipFile(File zipFile, String folderPath) throws ZipExceptio
131131
for (Enumeration<?> entries = zf.entries(); entries.hasMoreElements(); ) {
132132
ZipEntry entry = ((ZipEntry) entries.nextElement());
133133
InputStream in = zf.getInputStream(entry);
134-
String str = folderPath;
135-
File desFile = new File(str, java.net.URLEncoder.encode(entry.getName(), "UTF-8"));
134+
File desFile = new File(folderPath, java.net.URLEncoder.encode(entry.getName(), "UTF-8"));
136135

137136
if (!desFile.exists()) {
138137
File fileParentDir = desFile.getParentFile();

eladmin-system/src/main/java/me/zhengjie/modules/quartz/utils/QuartzRunnable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @author /
2828
*/
2929
@Slf4j
30-
public class QuartzRunnable implements Callable {
30+
public class QuartzRunnable implements Callable<Object> {
3131

3232
private final Object target;
3333
private final Method method;

eladmin-system/src/main/java/me/zhengjie/modules/security/config/bean/SecurityProperties.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
package me.zhengjie.modules.security.config.bean;
1717

1818
import lombok.Data;
19-
import org.springframework.boot.context.properties.ConfigurationProperties;
20-
import org.springframework.context.annotation.Configuration;
2119

2220
/**
2321
* Jwt参数配置

eladmin-system/src/main/java/me/zhengjie/modules/security/rest/AuthorizationController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import io.swagger.annotations.ApiOperation;
2222
import lombok.RequiredArgsConstructor;
2323
import lombok.extern.slf4j.Slf4j;
24-
import me.zhengjie.annotation.Log;
2524
import me.zhengjie.annotation.rest.AnonymousDeleteMapping;
2625
import me.zhengjie.annotation.rest.AnonymousGetMapping;
2726
import me.zhengjie.annotation.rest.AnonymousPostMapping;

eladmin-system/src/main/java/me/zhengjie/modules/security/security/JwtAuthenticationEntryPoint.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import javax.servlet.http.HttpServletRequest;
2323
import javax.servlet.http.HttpServletResponse;
2424
import java.io.IOException;
25-
import java.io.Serializable;
2625

2726
/**
2827
* @author Zheng Jie

0 commit comments

Comments
 (0)