Skip to content

Commit 24fcb57

Browse files
committed
Added extra javadoc to $._
1 parent c4bd554 commit 24fcb57

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • core/src/main/java/fj/data

core/src/main/java/fj/data/$.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ public final class $<A, B> extends P1<B> {
1515
this.b = b;
1616
}
1717

18-
/**
19-
* @deprecated JDK 8 warns '_' may not be supported after SE 8. Replaced by {@link #constant} and synonym {@link #__} (prefer constant).
20-
*/
21-
@Deprecated
18+
/**
19+
* Returns a function that given an argument, returns a function that ignores its argument.
20+
* @deprecated JDK 8 warns '_' may not be supported after SE 8. As of release 4.5, use {@link #constant} (note the synonym {@link #__}).
21+
* @return A function that given an argument, returns a function that ignores its argument.
22+
*/
23+
@Deprecated
2224
public static <A, B> $<A, B> _(final B b) {
2325
return constant(b);
2426
}

0 commit comments

Comments
 (0)