Remove useless import.

pull/167/head
ruibaby 2019-05-23 15:20:59 +08:00
parent 884d23c2c3
commit 6617cb565c
2 changed files with 4 additions and 10 deletions

View File

@ -1,6 +1,5 @@
package run.halo.app.listener; package run.halo.app.listener;
import com.sun.nio.zipfs.JarFileSystemProvider;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.event.ApplicationStartedEvent; import org.springframework.boot.context.event.ApplicationStartedEvent;
@ -10,20 +9,15 @@ import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order; import org.springframework.core.annotation.Order;
import org.springframework.util.ResourceUtils; import org.springframework.util.ResourceUtils;
import run.halo.app.config.properties.HaloProperties; import run.halo.app.config.properties.HaloProperties;
import run.halo.app.model.entity.User;
import run.halo.app.model.params.UserParam;
import run.halo.app.model.properties.PrimaryProperties; import run.halo.app.model.properties.PrimaryProperties;
import run.halo.app.model.support.CreateCheck;
import run.halo.app.service.OptionService; import run.halo.app.service.OptionService;
import run.halo.app.service.ThemeService; import run.halo.app.service.ThemeService;
import run.halo.app.service.UserService; import run.halo.app.service.UserService;
import run.halo.app.utils.FileUtils; import run.halo.app.utils.FileUtils;
import run.halo.app.utils.ValidationUtils;
import java.net.URI; import java.net.URI;
import java.nio.file.*; import java.nio.file.*;
import java.util.Collections; import java.util.Collections;
import java.util.List;
/** /**
* The method executed after the application is started. * The method executed after the application is started.

View File

@ -349,7 +349,7 @@ public class PostServiceImpl extends BasePostServiceImpl<Post> implements PostSe
.orElseGet(LinkedList::new) .orElseGet(LinkedList::new)
.stream() .stream()
.filter(Objects::nonNull) .filter(Objects::nonNull)
.map(tag -> new TagDTO().<TagDTO>convertFrom(tag)) .map(tag -> (TagDTO) new TagDTO().convertFrom(tag))
.collect(Collectors.toList())); .collect(Collectors.toList()));
// Set categories // Set categories
@ -357,7 +357,7 @@ public class PostServiceImpl extends BasePostServiceImpl<Post> implements PostSe
.orElseGet(LinkedList::new) .orElseGet(LinkedList::new)
.stream() .stream()
.filter(Objects::nonNull) .filter(Objects::nonNull)
.map(category -> new CategoryDTO().<CategoryDTO>convertFrom(category)) .map(category -> (CategoryDTO) new CategoryDTO().convertFrom(category))
.collect(Collectors.toList())); .collect(Collectors.toList()));
// Set comment count // Set comment count