From ce6a56e1db18381b17907ace2eeb6d2ea50f5f6b Mon Sep 17 00:00:00 2001 From: aisensiy Date: Fri, 18 Aug 2017 12:17:33 +0800 Subject: [PATCH] remove unused import --- src/main/java/io/spring/api/UsersApi.java | 2 -- src/main/java/io/spring/application/article/ArticleData.java | 1 - .../application/profile/UserRelationshipQueryService.java | 1 - src/main/java/io/spring/application/user/UserData.java | 1 - src/main/java/io/spring/application/user/UserQueryService.java | 2 -- src/main/java/io/spring/application/user/UserReadService.java | 1 - .../java/io/spring/application/tag/TagsQueryServiceTest.java | 2 +- 7 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/java/io/spring/api/UsersApi.java b/src/main/java/io/spring/api/UsersApi.java index bcb7dd7..e05fadb 100644 --- a/src/main/java/io/spring/api/UsersApi.java +++ b/src/main/java/io/spring/api/UsersApi.java @@ -2,7 +2,6 @@ package io.spring.api; import com.fasterxml.jackson.annotation.JsonRootName; import io.spring.api.exception.InvalidRequestException; -import io.spring.application.user.UserData; import io.spring.application.user.UserQueryService; import io.spring.application.user.UserWithToken; import io.spring.core.user.EncryptService; @@ -21,7 +20,6 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; - import java.util.HashMap; import java.util.Map; import java.util.Optional; diff --git a/src/main/java/io/spring/application/article/ArticleData.java b/src/main/java/io/spring/application/article/ArticleData.java index a574836..94ece20 100644 --- a/src/main/java/io/spring/application/article/ArticleData.java +++ b/src/main/java/io/spring/application/article/ArticleData.java @@ -1,7 +1,6 @@ package io.spring.application.article; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonRootName; import io.spring.application.profile.ProfileData; import lombok.AllArgsConstructor; import lombok.Data; diff --git a/src/main/java/io/spring/application/profile/UserRelationshipQueryService.java b/src/main/java/io/spring/application/profile/UserRelationshipQueryService.java index c533880..8d42c82 100644 --- a/src/main/java/io/spring/application/profile/UserRelationshipQueryService.java +++ b/src/main/java/io/spring/application/profile/UserRelationshipQueryService.java @@ -1,6 +1,5 @@ package io.spring.application.profile; -import io.spring.application.article.ArticleData; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Component; diff --git a/src/main/java/io/spring/application/user/UserData.java b/src/main/java/io/spring/application/user/UserData.java index a3f863a..b8a2e67 100644 --- a/src/main/java/io/spring/application/user/UserData.java +++ b/src/main/java/io/spring/application/user/UserData.java @@ -1,6 +1,5 @@ package io.spring.application.user; -import com.fasterxml.jackson.annotation.JsonRootName; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; diff --git a/src/main/java/io/spring/application/user/UserQueryService.java b/src/main/java/io/spring/application/user/UserQueryService.java index 70be101..227f79c 100644 --- a/src/main/java/io/spring/application/user/UserQueryService.java +++ b/src/main/java/io/spring/application/user/UserQueryService.java @@ -1,8 +1,6 @@ package io.spring.application.user; -import com.fasterxml.jackson.annotation.JsonRootName; import io.spring.application.JwtService; -import lombok.Getter; import org.springframework.stereotype.Service; @Service diff --git a/src/main/java/io/spring/application/user/UserReadService.java b/src/main/java/io/spring/application/user/UserReadService.java index a16400e..08998b9 100644 --- a/src/main/java/io/spring/application/user/UserReadService.java +++ b/src/main/java/io/spring/application/user/UserReadService.java @@ -1,6 +1,5 @@ package io.spring.application.user; -import io.spring.application.profile.ProfileData; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Component; diff --git a/src/test/java/io/spring/application/tag/TagsQueryServiceTest.java b/src/test/java/io/spring/application/tag/TagsQueryServiceTest.java index 1e6c2c2..1b47384 100644 --- a/src/test/java/io/spring/application/tag/TagsQueryServiceTest.java +++ b/src/test/java/io/spring/application/tag/TagsQueryServiceTest.java @@ -11,7 +11,7 @@ import org.springframework.context.annotation.Import; import org.springframework.test.context.junit4.SpringRunner; import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.*; +import static org.junit.Assert.assertThat; @RunWith(SpringRunner.class) @MybatisTest