Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javadoc mistakes to look for #4535

Open
akarnokd opened this issue Sep 12, 2016 · 4 comments
Open

Javadoc mistakes to look for #4535

akarnokd opened this issue Sep 12, 2016 · 4 comments

Comments

@akarnokd
Copy link
Member

From this comment:

  • parameter names change in the code but the javadocs still refer to the old names
  • potential exceptions change in the code and the javadocs aren't updated to match
  • missing backpressure / scheduler / since-annotations, and outdated information in each of these
  • changing things from consonant- to vowel-sound-starting, doing a search-and-replace, and not replacing "a" with "an" or vice-versa to match. Also, sometimes changing singulars to plurals or vice-versa by search-and-replace, which causes its own set of grammatical headaches.
  • if you see any documentation that uses the passive voice, you can almost always make it clearer and less prone to misinterpretation by rewriting it in the active voice
  • URLs for marble diagrams are copy-and-pasted, the name of the operator is changed, but the width/height values in the img tag are not, so that the right image appears but in the wrong dimensions (there were a couple of these in the javadocs last I looked)
@akarnokd akarnokd added this to the 2.0 milestone Sep 12, 2016
@vanniktech
Copy link
Collaborator

I noticed in #4589 that sometimes there's an error where the javadoc starts with /** Returns an Observable however the return type of the method is no longer an Observable. (e.g. https://github.com/ReactiveX/RxJava/pull/4589/files#diff-dce8212f1f82c8f48cae503990587755R7707)

@akarnokd
Copy link
Member Author

Might be possible to write a check for this but currently the source file is not parsed but only string-contains checked.

@MiSikora
Copy link

MiSikora commented Mar 6, 2019

I see that only static methods are annotated with @NonNull. Is there a reason behind it or can it be extended to member functions like map() in a PR?

@akarnokd
Copy link
Member Author

akarnokd commented Mar 6, 2019

@MiSikora IntelliJ/Kotlin users are mostly affected by their lack, or sometimes their presence so I can't give you a definite answer from a Eclipse/Java perspective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants