Skip to content

Commit

Permalink
* Refactoring and simplification of Try/Trying package
Browse files Browse the repository at this point in the history
* Completed Try tests
  • Loading branch information
xyzsd committed Dec 18, 2023
1 parent 17ab8ec commit 94a6f1d
Show file tree
Hide file tree
Showing 10 changed files with 471 additions and 295 deletions.
2 changes: 1 addition & 1 deletion src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Module declaration for the net.xyzsd.dichotomy module.
* This module exports three packages:
* <ul>
* <li>>net.xyzsd.dichotomy.trying.function</li>
* <li>net.xyzsd.dichotomy.trying.function</li>
* <li>net.xyzsd.dichotomy</li>
* <li>net.xyzsd.dichotomy.trying</li>
* </ul>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/xyzsd/dichotomy/Either.java
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ public boolean ifPredicateLeft(@NotNull Predicate<L> lp) {
@Override
public @NotNull <L2> Either<L2, R> mapLeft(@NotNull Function<? super L, ? extends L2> leftMapper) {
requireNonNull( leftMapper );
return (Either<L2, R>) Either.ofLeft( leftMapper.apply( value ) );
return Either.ofLeft( leftMapper.apply( value ) );
}

/**
Expand Down
Loading

0 comments on commit 94a6f1d

Please sign in to comment.