-
Notifications
You must be signed in to change notification settings - Fork 730
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
fix minor grammar and embolden the golden rule #59
base: master
Are you sure you want to change the base?
Conversation
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 dislike the changes to making things capitalized like CAUTION. If you revert those I'll look again. Thanks!
own. Better is to make your exceptions extend RuntimeException instead. This | ||
allows your users to handle your exceptions in the way they would like, rather | ||
than forcing them to handle/declare that it throws every time, which pollutes | ||
[Checked exceptions][checkedex] should be used with CAUTION, if at all. They |
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 prefer the lowercase version
Try to avoid using nulls when you can. Do not return null collections when you | ||
should have instead returned an empty collection. If you're going to use null, | ||
consider the [@Nullable][nullable] annotation. [IntelliJ IDEA][intellij] has | ||
Try to avoid using null when you can. DO NOT return null collections when you |
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.
lowercase
@@ -247,8 +247,7 @@ public class FooWidget { | |||
``` | |||
|
|||
So now it's clear that *data* will never be null, but *bar* may or may not be | |||
present. *Optional* has methods like *isPresent*, which may make it feel like | |||
not a lot is different from just checking *null*. But it allows you to write | |||
present. *Optional* has methods like *isPresent*, which make it seems similar with just checking *null*. But it allows you to write |
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.
linebreak
okay i will fix it but i will create another pull request after i finish translating it to indonesia |
i want to translate this guide into Bahasa Indonesi but i don't have time yet.