Skip to content

Commit 7b3cdae

Browse files
committed
Add missing @deprecated annotations (previously only on javadoc).
1 parent e1a0983 commit 7b3cdae

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

core/src/main/java/fj/P1.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ public static <A> F<P1<A>, A> __1() {
4242
/**
4343
* Promote any function to a transformation between P1s.
4444
*
45-
* @deprecated As of release 4.5, use {@link #map_}
45+
* @deprecated As of release 4.5, use {@link #map_}
4646
* @param f A function to promote to a transformation between P1s.
4747
* @return A function promoted to operate on P1s.
4848
*/
49+
@Deprecated
4950
public static <A, B> F<P1<A>, P1<B>> fmap(final F<A, B> f) {
5051
return map_(f);
5152
}

core/src/main/java/fj/Semigroup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,9 @@ public NonEmptyList<A> sum(NonEmptyList<A> nea, F0<Stream<NonEmptyList<A>>> neas
527527
* A semigroup for optional values.
528528
* @deprecated since 4.7. Use {@link #firstOptionSemigroup()}.
529529
*
530-
** @return A semigroup for optional values.
530+
* @return A semigroup for optional values.
531531
*/
532+
@Deprecated
532533
public static <A> Semigroup<Option<A>> optionSemigroup() {
533534
return firstOptionSemigroup();
534535
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,7 @@ public static <A> F<ArrayList<A>, List<A>> ArrayList_List() {
14201420
*
14211421
* @return A function that converts Java lists to lists.
14221422
*/
1423+
@Deprecated
14231424
public static <A> F<java.util.List<A>, List<A>> JUList_List() {
14241425
return Java::JavaList_List;
14251426
}

0 commit comments

Comments
 (0)