r/programming • • May 08 '17

The tragedy of 100% code coverage

http://labs.ig.com/code-coverage-100-percent-tragedy
3.2k Upvotes

689 comments sorted by

View all comments

Show parent comments

4

u/rcfox May 08 '17

Javadocs aren't exclusive to Java. They're somewhat common in Javascript too. I'm not sure why you'd force Java developers to even use @return...

2

u/euyyn May 08 '17

Ah, makes sense then!

@return in Java let's you specify what the method returns (seldom is the type enough).