Skip to content

Commit bdd59fe

Browse files
author
jodzga
committed
Removed "px" from img size attributes in javadoc to fix rendering issues
in intellij idea.
1 parent 5affaf3 commit bdd59fe

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/com/linkedin/parseq/Task.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ default <R> Task<R> apply(final String desc, final PromisePropagator<T, R> propa
158158
* // this task will complete with value 11
159159
* Task{@code <Integer>} length = hello.map("length", s {@code ->} s.length());
160160
* </pre></blockquote>
161-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/map-1.png" height="90px" width="296px"/>
161+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/map-1.png" height="90" width="296"/>
162162
* <p>
163163
* If this task is completed with an exception then the new task will also complete
164164
* with that exception.
@@ -170,7 +170,7 @@ default <R> Task<R> apply(final String desc, final PromisePropagator<T, R> propa
170170
* // this task will fail with java.lang.StringIndexOutOfBoundsException
171171
* Task{@code <Integer>} length = failing.map("length", s {@code ->} s.length());
172172
* </pre></blockquote>
173-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/map-2.png" height="90px" width="296px"/>
173+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/map-2.png" height="90" width="296"/>
174174
*
175175
* @param <R> return type of function <code>func</code>
176176
* @param desc description of a mapping function, it will show up in a trace
@@ -201,7 +201,7 @@ default <R> Task<R> map(final Function1<? super T, ? extends R> func) {
201201
* // assuming fetch(u) fetches contents given by a URI
202202
* Task{@code <String>} homepage = url.flatMap("fetch", u {@code ->} fetch(u));
203203
* </pre></blockquote>
204-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/flatMap-1.png" height="90px" width="462px"/>
204+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/flatMap-1.png" height="90" width="462"/>
205205
* <p>
206206
*
207207
* If this task is completed with an exception then the new task will also contain
@@ -212,7 +212,7 @@ default <R> Task<R> map(final Function1<? super T, ? extends R> func) {
212212
* // this task will fail with java.lang.IllegalArgumentException
213213
* Task{@code <String>} homepage = url.flatMap("fetch", u {@code ->} fetch(u));
214214
* </pre></blockquote>
215-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/flatMap-2.png" height="90px" width="296px"/>
215+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/flatMap-2.png" height="90" width="296"/>
216216
* @param <R> return type of function <code>func</code>
217217
* @param desc description of a mapping function, it will show up in a trace
218218
* @param func function to be applied to successful result of this task which returns new task
@@ -257,7 +257,7 @@ default <R> Task<R> flatMap(final Function1<? super T, Task<R>> func) {
257257
* Task{@code <String>} userName = id.flatMap("fetch", u {@code ->} fetch(u))
258258
* .withSideEffect("update memcache", u {@code ->} updateMemcache(u));
259259
* </pre></blockquote>
260-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/withSideEffect-1.png" height="120px" width="868px"/>
260+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/withSideEffect-1.png" height="120" width="868"/>
261261
*
262262
* @param desc description of a side effect, it will show up in a trace
263263
* @param func function to be applied on result of successful completion of this task
@@ -311,7 +311,7 @@ default Task<T> withSideEffect(final Function1<? super T, Task<?>> func) {
311311
* // as a consequence bing task will be cancelled
312312
* final Task<?> both = Task.par(google.withTimeout(10, TimeUnit.MILLISECONDS), bing);
313313
* </pre></blockquote>
314-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/shareable-1.png" height="250px" width="608px"/>
314+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/shareable-1.png" height="250" width="608"/>
315315
* <p>
316316
* <code>shareable</code> method solves above problem. Task returned by <code>shareable()</code> can be
317317
* can be cancelled without affecting original task.
@@ -325,7 +325,7 @@ default Task<T> withSideEffect(final Function1<? super T, Task<?>> func) {
325325
* final Task<?> both =
326326
* Task.par(google.shareable().withTimeout(10, TimeUnit.MILLISECONDS), bing.shareable());
327327
* </pre></blockquote>
328-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/shareable-2.png" height="290px" width="814px"/>
328+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/shareable-2.png" height="290" width="814"/>
329329
*
330330
* @return new task that can be safely shared within a plan or between multiple
331331
* plans. Cancellation of returned task will not cause cancellation of the original task.
@@ -351,7 +351,7 @@ default Task<T> shareable() {
351351
* // this task will print "Hello World"
352352
* Task{@code <String>} sayHello = hello.andThen("say", System.out::println);
353353
* </pre></blockquote>
354-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/andThen-1.png" height="90px" width="296px"/>
354+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/andThen-1.png" height="90" width="296"/>
355355
* <p>
356356
* If this task fails then consumer will not be called and failure
357357
* will be propagated to task returned by this method.
@@ -363,7 +363,7 @@ default Task<T> shareable() {
363363
* // this task will fail with java.lang.StringIndexOutOfBoundsException
364364
* Task{@code <String>} sayHello = failing.andThen("say", System.out::println);
365365
* </pre></blockquote>
366-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/andThen-2.png" height="90px" width="296px"/>
366+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/andThen-2.png" height="90" width="296"/>
367367
*
368368
* @param desc description of a consumer, it will show up in a trace
369369
* @param consumer consumer of a value returned by this task
@@ -405,7 +405,7 @@ default Task<T> andThen(final Consumer1<? super T> consumer) {
405405
* Task{@code <ShipmentInfo>} shipAfterPayment =
406406
* processPayment.andThen("shipProductAterPayment", shipProduct);
407407
* </pre></blockquote>
408-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/andThen-3.png" height="90px" width="462px"/>
408+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/andThen-3.png" height="90" width="462"/>
409409
*
410410
* @param <R> return type of the <code>task</code>
411411
* @param desc description of a task, it will show up in a trace
@@ -449,7 +449,7 @@ default <R> Task<R> andThen(final Task<R> task) {
449449
* .map("toSignature", p {@code ->} p.getFirstName() + " " + p.getLastName())
450450
* .recover(e {@code ->} "Member " + id);
451451
* </pre></blockquote>
452-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/recover-1.png" height="90px" width="462px"/>
452+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/recover-1.png" height="90" width="462"/>
453453
* <p>
454454
* Note that task cancellation is not considered to be a failure.
455455
* If this task has been cancelled then task returned by this method will also
@@ -497,7 +497,7 @@ default Task<T> recover(final Function1<Throwable, T> func) {
497497
* // and complete with that exception as a reason for failure
498498
* Task{@code <String>} sayHello = failing.onFailure("printFailure", System.out::println);
499499
* </pre></blockquote>
500-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/onFailure-1.png" height="90px" width="296px"/>
500+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/onFailure-1.png" height="90" width="296"/>
501501
* <p>
502502
* If this task completes successfully then consumer will not be called.
503503
* <blockquote><pre>
@@ -506,7 +506,7 @@ default Task<T> recover(final Function1<Throwable, T> func) {
506506
* // this task will return "Hello World"
507507
* Task{@code <String>} sayHello = hello.onFailure(System.out::println);
508508
* </pre></blockquote>
509-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/onFailure-2.png" height="90px" width="296px"/>
509+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/onFailure-2.png" height="90" width="296"/>
510510
* <p>
511511
* Exceptions thrown by a consumer will be ignored.
512512
* <p>
@@ -557,7 +557,7 @@ default Task<T> onFailure(final Consumer1<Throwable> consumer) {
557557
* // this task will complete with Success("Hello World")
558558
* Task{@code <Try<String>>} helloTry = hello.toTry("try");
559559
* </pre></blockquote>
560-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/toTry-1.png" height="90px" width="296px"/>
560+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/toTry-1.png" height="90" width="296"/>
561561
* <p>
562562
* If this task is completed with an exception then the returned task will be
563563
* completed with an exception wrapped with {@link Failure}.
@@ -569,7 +569,7 @@ default Task<T> onFailure(final Consumer1<Throwable> consumer) {
569569
* // this task will complete successfully with Failure(java.lang.StringIndexOutOfBoundsException)
570570
* Task{@code <Try<String>>} failingTry = failing.toTry("try");
571571
* </pre></blockquote>
572-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/toTry-2.png" height="90px" width="296px"/>
572+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/toTry-2.png" height="90" width="296"/>
573573
* <p>
574574
* All failures are automatically propagated and it is usually enough to use
575575
* {@link #recover(String, Function1) recover} or {@link #recoverWith(String, Function1) recoverWith}.
@@ -621,7 +621,7 @@ default Task<Try<T>> toTry() {
621621
* }
622622
* });
623623
* </pre></blockquote>
624-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/transform-1.png" height="90px" width="296px"/>
624+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/transform-1.png" height="90" width="296"/>
625625
* <p>
626626
* Note that task cancellation is not considered to be a failure.
627627
* If this task has been cancelled then task returned by this method will also
@@ -682,7 +682,7 @@ default <R> Task<R> transform(final Function1<Try<T>, Try<R>> func) {
682682
* // if it fails for any reason it will attempt to fetch from DB
683683
* Task{@code <Person>} user = fetchFromCache(id).recoverWith(e {@code ->} fetchFromDB(id));
684684
* </pre></blockquote>
685-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/recoverWith-1.png" height="90px" width="462px"/>
685+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/recoverWith-1.png" height="90" width="462"/>
686686
* <p>
687687
* If recovery task fails then returned task is completed with that failure.
688688
* <p>
@@ -738,7 +738,7 @@ default Task<T> recoverWith(final Function1<Throwable, Task<T>> func) {
738738
* final Task<Response> google = HttpClient.get("http://google.com").task()
739739
* .withTimeout(10, TimeUnit.MILLISECONDS);
740740
* </pre></blockquote>
741-
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/withTimeout-1.png" height="150px" width="318px"/>
741+
* <img src="https://raw.githubusercontent.com/linkedin/parseq/master/src/com/linkedin/parseq/doc-files/withTimeout-1.png" height="150" width="318"/>
742742
*
743743
* @param time the time to wait before timing out
744744
* @param unit the units for the time

0 commit comments

Comments
 (0)