Skip to content

Conversation

@izeye
Copy link
Contributor

@izeye izeye commented Aug 22, 2018

This PR fixes some typos and polishes trivial stuff.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 22, 2018
Copy link
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

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

Thanks again @izeye. I've added a suggestion.

@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof ContextRefreshedEvent) {
if (event instanceof ContextRefreshedEvent
Copy link
Member

@snicoll snicoll Aug 23, 2018

Choose a reason for hiding this comment

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

Can we keep the two ifs please? (and combine the two conditions for the second if). It reads better IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@snicoll I thought that the two if statements doing the same thing are unusual as it looks to me as follows:

if (condition1) {
  doSomething();
}
if (condition2) {
  doSomething();
}

WDYT? If you still prefer as-is, please let me know. Then I'll revert it.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the feedback. There are but the proposal condition is a big fat IMO. I am not really leaning one way or the other actually, let me checkout the code in an IDE.

@snicoll snicoll added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 23, 2018
@snicoll snicoll self-assigned this Aug 23, 2018
@snicoll snicoll added this to the 2.1.0.M3 milestone Aug 23, 2018
@snicoll snicoll closed this in 9602a32 Aug 23, 2018
snicoll added a commit that referenced this pull request Aug 23, 2018
@snicoll
Copy link
Member

snicoll commented Aug 23, 2018

Thanks again @izeye!

@izeye izeye deleted the polish-20180823 branch August 23, 2018 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants