Skip to content

Conversation

@bjagg
Copy link
Member

@bjagg bjagg commented May 17, 2018

Resolves #71

Copy link
Member

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see more REST endpoints! 👍

<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like to see lombok being used.
Is it being used?

// to emergency announcements into their own list
for (TopicSubscription ts : myTopics) {
if (ts.getSubscribed() && ts.getTopic().getSubscriptionMethod() != Topic.EMERGENCY) {
announcements1.addAll(ts.getTopic().getPublishedAnnouncements());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I thought that the stream() version would be longer and harder to understand; however, after digging in and refining, I was able to remove other lines to make the stream() version smaller. Thanks for the push. This was also the first time I used flatMap() in Java.

@bjagg bjagg merged commit 46ed945 into uPortal-Project:master May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants