diff options
author | Vitaly Takmazov | 2020-10-02 17:53:34 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-10-02 17:53:34 +0300 |
commit | a62c1fda358f54bd3e7de9aea94ce63e89e06142 (patch) | |
tree | d6f4734e5150f849ae782ea35812bed139f5d029 /src/main/java/com/juick/service | |
parent | 4eab4c56d571cbd318391c26ccb5b02aa68029e1 (diff) |
Apply fixes from some IDEA code inspections
Diffstat (limited to 'src/main/java/com/juick/service')
-rw-r--r-- | src/main/java/com/juick/service/SubscriptionServiceImpl.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/com/juick/service/SubscriptionServiceImpl.java b/src/main/java/com/juick/service/SubscriptionServiceImpl.java index 977fbec0..83cf682f 100644 --- a/src/main/java/com/juick/service/SubscriptionServiceImpl.java +++ b/src/main/java/com/juick/service/SubscriptionServiceImpl.java @@ -63,11 +63,9 @@ public class SubscriptionServiceImpl extends BaseJdbcService implements Subscrip List<Integer> tags = tagService.getMessageTagsIDs(mid); List<String> tagsStr = tagService.getMessageTags(mid).stream().map(t -> t.getTag().getName()).collect(Collectors.toList()); - Set<Integer> set = new HashSet<>(); - set.addAll( - users.stream() - .map(User::getUid).filter(u -> Collections.disjoint(tagService.getUserBLTags(u), tagsStr)) - .collect(Collectors.toList())); + Set<Integer> set = new HashSet<>(users.stream() + .map(User::getUid).filter(u -> Collections.disjoint(tagService.getUserBLTags(u), tagsStr)) + .collect(Collectors.toList())); if (!tags.isEmpty()) { |