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

JetUtils.asBoolean() 对 Collection 和 Map 的判断有误 #59

Closed
subchen opened this issue Dec 19, 2013 · 0 comments
Closed

JetUtils.asBoolean() 对 Collection 和 Map 的判断有误 #59

subchen opened this issue Dec 19, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@subchen
Copy link
Owner

subchen commented Dec 19, 2013

完全搞反了

if ((value instanceof Collection)) return ((Collection)value).isEmpty();
if ((value instanceof Map)) return ((Map)value).isEmpty();

同时增加对 iterator, iterable 的 测试, 保持对 #for 的一致性

@ghost ghost assigned subchen Dec 19, 2013
subchen added a commit that referenced this issue Dec 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant