Created
May 4, 2014 15:18
-
-
Save jmahony/8e816be938f33aed9f0c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bad | |
if (user.authFlag() == AUTHORISED) { | |
// Code | |
} | |
// Good | |
if (user.isLoggedIn()) { | |
// Code | |
} | |
// Bad | |
/** | |
* | |
* Returns the meta keywords of the article | |
* | |
* @return a list of keywords | |
*/ | |
public List<String> getMetaKeywords() { | |
return document.getMetaKeywords(); | |
} | |
// Good | |
public List<String> getMetaKeywords() { | |
return document.getMetaKeywords(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment