问题
In the Android studio whenever I proceed with TextUtils.isEmpty
check, the lint shows the argument might be null. It doesn't make sense as isEmpty
will check for nullability.
Is there any way to resolve this issue without using asserts.
P.S. ImageUtils.getWidth
accepts aspectRatio as null hence no lint warning there.
来源:https://stackoverflow.com/questions/55635564/textutils-isempty-checks-for-null-but-lint-doesnt-recognise