-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
docs: Quick Javadoc fixes. #6943
Conversation
Added @code tag wherever < or > were used, also removed a few self-closing <p> tags. Both of these issues cause errors with the latest version of Javadoc. Signed-off-by: Zachary Trant <zach@graalonline.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are internal or test files which are exempt from the JavaDocs generation.
* {@code Single<Integer> single = Flowable.range(1, 10).reduce((a, b) -> a + b);} | ||
* {@code Flowable<Integer> flowable = single.toFlowable();} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be part of the same code block
* {@code Single<Integer> single = Maybe.just(1).isEmpty();} | ||
* {@code Maybe<Integer> maybe = single.toMaybe();} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be part of the same code block.
* {@code Single<Integer> single = Observable.range(1, 10).reduce((a, b) -> a + b);} | ||
* {@code Observable<Integer> observable = single.toObservable();} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be part of the same code block.
@@ -53,7 +53,7 @@ | |||
* thread pool: | |||
* | |||
* <pre> | |||
* Scheduler limitScheduler = Schedulers.computation().when(workers -> { | |||
* {@code Scheduler limitScheduler = Schedulers.computation().when(workers ->} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the formatting of the lambda body.
@@ -71,7 +71,7 @@ | |||
* to the second. | |||
* | |||
* <pre> | |||
* Scheduler limitScheduler = Schedulers.computation().when(workers -> { | |||
* {@code Scheduler limitScheduler = Schedulers.computation().when(workers ->} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the formatting of the lambda body.
@@ -340,11 +340,11 @@ public void onNext(String t) { | |||
* | |||
* When using SynchronizedSubscriber we get this output: | |||
* | |||
* p1: 18 p2: 68 => should be close to each other unless we have thread starvation | |||
* {@code p1: 18 p2: 68 => should be close to each other unless we have thread starvation} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason to include "should be close to each other unless we have thread starvation" in the code block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're correct, just did the whole line for cosmetic reasons, but I can surely remove the rest of the statement from it.
* | ||
* When using SerializedObserver we get: | ||
* | ||
* p1: 1 p2: 2445261 => should be close to each other unless we have thread starvation | ||
* {@code p1: 1 p2: 2445261 => should be close to each other unless we have thread starvation} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason to include "should be close to each other unless we have thread starvation" in the code block.
@@ -341,11 +341,11 @@ public void onNext(String t) { | |||
* | |||
* When using SynchronizedSubscriber we get this output: | |||
* | |||
* p1: 18 p2: 68 => should be close to each other unless we have thread starvation | |||
* {@code p1: 18 p2: 68 => should be close to each other unless we have thread starvation} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason to include "should be close to each other unless we have thread starvation" in the code block.
* | ||
* When using SerializedSubscriber we get: | ||
* | ||
* p1: 1 p2: 2445261 => should be close to each other unless we have thread starvation | ||
* {@code p1: 1 p2: 2445261 => should be close to each other unless we have thread starvation} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason to include "should be close to each other unless we have thread starvation" in the code block.
@@ -51,7 +51,7 @@ public long maxElementsFromPublisher() { | |||
|
|||
/** | |||
* Creates an Iterable with the specified number of elements or an infinite one if | |||
* elements > {@link Integer#MAX_VALUE}. | |||
* {@code elements > {@link Integer#MAX_VALUE}.} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the link I think.
Codecov Report
@@ Coverage Diff @@
## 3.x #6943 +/- ##
============================================
- Coverage 99.63% 99.60% -0.04%
+ Complexity 6666 6665 -1
============================================
Files 742 742
Lines 47220 47228 +8
Branches 6367 6369 +2
============================================
- Hits 47049 47042 -7
- Misses 54 61 +7
- Partials 117 125 +8 Continue to review full report at Codecov.
|
src/main/java/io/reactivex/rxjava3/internal/schedulers/SchedulerWhen.java
Outdated
Show resolved
Hide resolved
src/test/java/io/reactivex/rxjava3/observers/SerializedObserverTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took all the comments from @akarnokd into account and fixed it up,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Added @code tag wherever < or > were used, also removed a few
self-closing
tags. Both of these issues cause errors with the latest
version of Javadoc.
Signed-off-by: Zachary Trant zach@graalonline.com