Skip to content
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

Don't use integers for True/False values #2

Open
zunjae opened this issue Feb 12, 2018 · 0 comments
Open

Don't use integers for True/False values #2

zunjae opened this issue Feb 12, 2018 · 0 comments

Comments

@zunjae
Copy link

zunjae commented Feb 12, 2018

Instead of flag = 1 you can do return true. also flag = 0 becomes return false;

https://github.com/100rabhkr/GetJSON/blob/master/getjson/src/main/java/com/dezlum/codelabs/getjson/GetJson.java#L107

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

No branches or pull requests

1 participant