glide icon indicating copy to clipboard operation
glide copied to clipboard

CustomTarget constructor javadoc and implementation are inconsistent

Open JadenChoi opened this issue 7 years ago • 3 comments

Glide Version: 4.9.0

Integration libraries:

Device/Android Version: *

Issue details / Repro steps / Use case background: CustomTarget constructor javadoc says that width & height must be >= 0 or == Integer.MIN_VALUE. However, the app crashes when width/height is 0 and throws exception with msg: Width and height must both be > 0. I looked at the implementation and we are enforcing that width & height to be > 0. Javadoc should also reflect it.

JadenChoi avatar Mar 25 '19 20:03 JadenChoi

Created PR to update Javadoc https://github.com/bumptech/glide/pull/3583

JadenChoi avatar Mar 25 '19 21:03 JadenChoi

👍👍

eshaanb avatar Mar 26 '19 00:03 eshaanb

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

stale[bot] avatar Apr 02 '19 01:04 stale[bot]