File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
scijava-ops-spi/src/main/java/org/scijava/ops/spi Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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 * @OpField(names = "nullableLambda")
77- * public final Function< Integer, Float> nullableLambda = (
78- * @Nullable Integer in) -> {
78+ * public final Function< Integer, Float> nullableLambda = (
79+ * @Nullable Integer in) -> {
7980 * Integer nonNullIn = in == null ? 0 : in;
8081 * return nonNullIn + 0.5f;
8182 * };
You can’t perform that action at this time.
0 commit comments