Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit 9937b33

Browse files
committed
make javadoc sample code conform to request rule
1 parent 07eadbc commit 9937b33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/java9/util/concurrent/Flow.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
* this.executor = executor;
5959
* }
6060
* public synchronized void request(long n) {
61-
* if (n != 0 && !completed) {
61+
* if (!completed) {
6262
* completed = true;
63-
* if (n < 0) {
63+
* if (n <= 0) {
6464
* IllegalArgumentException ex = new IllegalArgumentException();
6565
* executor.execute(() -> subscriber.onError(ex));
6666
* } else {
@@ -137,7 +137,7 @@
137137
* @since 9
138138
*/
139139
public final class Flow {
140-
// CVS rev. 1.31
140+
// CVS rev. 1.32
141141
private Flow() {} // uninstantiable
142142

143143
/**

0 commit comments

Comments
 (0)