Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>@Fire Lancer: Right! I forgot about exception, but I would like to see them mentioned, especially the unchecked 'runtime' exception that this public method could throw</p> <p>@Mike Stone: </p> <blockquote> <p>you have to be diligent also to update the docs when you change the semantics of the method.</p> </blockquote> <p>Mmmm I sure hope that the <em>public API documentation</em> is at the very least updated whenever a change -- that affects the contract of the function -- takes place. If not, those API documentations could be drop altogether.</p> <p>To add food to yours thoughts (and go with @Scott Dorman), I just stumble upon <a href="http://today.java.net/pub/a/today/2008/09/11/jsr-305-annotations.html" rel="nofollow noreferrer">the future of java7 annotations</a></p> <p>What does that means ? That certain 'boundary conditions', rather than being in the documentation, should be better off in the API itself, and automatically used, at compilation time, with appropriate 'assert' generated code.</p> <p>That way, if a '@CheckForNull' is in the API, the writer of the function might get away with not even documenting it! And if the semantic change, its API will reflect that change (like 'no more @CheckForNull' for instance)</p> <p>That kind of approach suggests that documentation, for 'boundary conditions', is an extra bonus rather than a mandatory practice.</p> <p>However, that does not cover the special values of the return object of a function. For that, a <em>complete</em> documentation is still needed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload