Skip to content

Conversation

@desmorto
Copy link

No description provided.

@revans2
Copy link
Contributor

revans2 commented Aug 25, 2017

@desmorto you might want to make your pull request against the Apache version of storm that is under active development.

@qm3ster
Copy link

qm3ster commented Mar 5, 2018

In such clear cases, what's the advantage of forEach?
Is this a Java thing?

*/
public void term() {
for (IConnection conn : connections) {
connections.forEach(conn -> {
Copy link

Choose a reason for hiding this comment

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

@desmorto, You can remove unnecessary brackets or use a method reference.

connections.forEach(conn -> conn.close());

for (List<Object> key : keys) {
ret.add(db.get(key));
}
keys.forEach(key -> {
Copy link

Choose a reason for hiding this comment

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

Please format the all code.

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.

4 participants