Skip to content

Conversation

liubao68
Copy link
Contributor

…ation

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 85.42% when pulling 2e69f2b on liubao68:call into 77b4718 on ServiceComb:master.

@Component
public class SystemBootListener implements BootListener {

private static boolean ready = false;
Copy link
Member

Choose a reason for hiding this comment

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

The default value of boolean is false, so you don't need assign the value.

Copy link
Contributor Author

@liubao68 liubao68 Aug 14, 2017

Choose a reason for hiding this comment

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

I see many guidelines saying better to give a default value implicitly. e.g. some eclipse compiler and coverity tools. It's more readable and no side effects.

import org.junit.Test;

/**
* Created by l00168639 on 2017/8/10.
Copy link
Member

Choose a reason for hiding this comment

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

Please update the template for it.

import org.springframework.stereotype.Component;

/**
* Created by l00168639 on 2017/8/10.
Copy link
Member

Choose a reason for hiding this comment

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

same issue.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 85.426% when pulling e123d8d on liubao68:call into 77b4718 on ServiceComb:master.

@WillemJiang WillemJiang merged commit ebc3503 into apache:master Aug 14, 2017
@WillemJiang WillemJiang added this to the 0.2.0 milestone Aug 19, 2017
@liubao68 liubao68 deleted the call branch January 5, 2018 07:36
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.

3 participants