From 5fcd7ccb58dcdf4698839b541ef195bf16c18d2c Mon Sep 17 00:00:00 2001 From: Athou Date: Tue, 22 Mar 2022 15:45:04 +0100 Subject: [PATCH] fix checkstyle issues --- .../com/commafeed/frontend/resource/CategoryREST.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/commafeed/frontend/resource/CategoryREST.java b/src/main/java/com/commafeed/frontend/resource/CategoryREST.java index 071b4ee7..88022055 100644 --- a/src/main/java/com/commafeed/frontend/resource/CategoryREST.java +++ b/src/main/java/com/commafeed/frontend/resource/CategoryREST.java @@ -225,7 +225,7 @@ public class CategoryREST { feed.setTitle("CommaFeed - " + entries.getName()); feed.setDescription("CommaFeed - " + entries.getName()); feed.setLink(config.getApplicationSettings().getPublicUrl()); - feed.setEntries(entries.getEntries().stream().map(e -> e.asRss()).collect(Collectors.toList())); + feed.setEntries(entries.getEntries().stream().map(Entry::asRss).collect(Collectors.toList())); SyndFeedOutput output = new SyndFeedOutput(); StringWriter writer = new StringWriter(); @@ -451,7 +451,7 @@ public class CategoryREST { category.setExpanded(true); for (FeedCategory c : categories) { - if ((id == null && c.getParent() == null) || (c.getParent() != null && Objects.equals(c.getParent().getId(), id))) { + if (id == null && c.getParent() == null || c.getParent() != null && Objects.equals(c.getParent().getId(), id)) { Category child = buildCategory(c.getId(), categories, subscriptions, unreadCount); child.setId(String.valueOf(c.getId())); child.setName(c.getName()); @@ -471,8 +471,8 @@ public class CategoryREST { }); for (FeedSubscription subscription : subscriptions) { - if ((id == null && subscription.getCategory() == null) - || (subscription.getCategory() != null && Objects.equals(subscription.getCategory().getId(), id))) { + if (id == null && subscription.getCategory() == null + || subscription.getCategory() != null && Objects.equals(subscription.getCategory().getId(), id)) { UnreadCount uc = unreadCount.get(subscription.getId()); Subscription sub = Subscription.build(subscription, config.getApplicationSettings().getPublicUrl(), uc); category.getFeeds().add(sub);