Skip to content

Commit cbc24aa

Browse files
committed
Fix Nullable javadoc errors
1 parent a33ae79 commit cbc24aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scijava-ops-spi/src/main/java/org/scijava/ops/spi/Nullable.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,19 @@
6464
* is confusing and hard to read. Which parameters are nullable in this case? Is
6565
* it obvious that {@code in3} is nullable just by looking at {@code Impl}? For
6666
* this reason, it should be enforced that the annotation is only on one of the
67-
* method signatures. <br/>
68-
* <br/>
67+
* method signatures.
68+
* <p>
6969
* Note also that annotations are currently (as of Java 11) not supported on
7070
* lambdas. Nullable parameters are supported on interfaces and class
7171
* implementations (including anonymous classes) but the following will not
7272
* recognize the nullability of {@code in}:
73+
* </p>
7374
*
7475
* <pre>
7576
*
7677
* &#64;OpField(names = "nullableLambda")
77-
* public final Function<Integer, Float> nullableLambda = (
78-
* &#64;Nullable Integer in) -> {
78+
* public final Function&lt;Integer, Float&gt; nullableLambda = (
79+
* &#64;Nullable Integer in) -&gt; {
7980
* Integer nonNullIn = in == null ? 0 : in;
8081
* return nonNullIn + 0.5f;
8182
* };

0 commit comments

Comments
 (0)