-
Notifications
You must be signed in to change notification settings - Fork 827
[JAV-286]add protect feature when call remote calls in bean initializ… #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@Component | ||
public class SystemBootListener implements BootListener { | ||
|
||
private static boolean ready = false; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same issue.
…ation