mybatis / mybatis-3

MyBatis SQL mapper framework for Java
http://mybatis.github.io/mybatis-3/
Apache License 2.0
19.55k stars 12.74k forks source link

Use isEmpty() instead of length() #3138

Closed dukbong closed 2 months ago

dukbong commented 2 months ago

This pull request suggests using isEmpty() instead of length().

Rationale:

In conclusion, using the isEmpty() method improves code readability and aligns better with the intended behavior. It also adheres to the common convention in the Java collection framework.

coveralls commented 2 months ago

Coverage Status

coverage: 87.167%. remained the same when pulling a020b39a078975b0181dfdccef93cd1a5c6efa54 on dukbong:Refactoring into 382cbf4da448ffdc1a87221112482bc4f0894b5d on mybatis:master.