fix: markdownImportTest error.

pull/755/head
ruibaby 2019-12-01 20:40:04 +08:00
parent 47ea992e7c
commit f1944c5629
2 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,7 @@ public interface PostMetaService extends BaseMetaService<PostMeta> {
* @param postMetas post metas must not be null * @param postMetas post metas must not be null
* @return a list of post meta * @return a list of post meta
*/ */
List<PostMeta> createOrUpdateByPostId(@NonNull Integer postId, @NonNull Set<PostMeta> postMetas); List<PostMeta> createOrUpdateByPostId(@NonNull Integer postId, Set<PostMeta> postMetas);
/** /**
* Lists post metas by post id. * Lists post metas by post id.

View File

@ -47,7 +47,6 @@ public class PostMetaServiceImpl extends BaseMetaServiceImpl<PostMeta> implement
@Override @Override
public List<PostMeta> createOrUpdateByPostId(Integer postId, Set<PostMeta> postMetas) { public List<PostMeta> createOrUpdateByPostId(Integer postId, Set<PostMeta> postMetas) {
Assert.notNull(postId, "Post id must not be null"); Assert.notNull(postId, "Post id must not be null");
Assert.notNull(postMetas, "Post metas must not be null");
if (CollectionUtils.isEmpty(postMetas)) { if (CollectionUtils.isEmpty(postMetas)) {
return Collections.emptyList(); return Collections.emptyList();
} }