Skip to content

Commit

Permalink
some eclint fixes, add todo for repoprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Feb 19, 2020
1 parent 26fffb1 commit 642a9bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.vavr.collection.Seq;
import io.vavr.control.Option;

// TODO add javadoc to RepoProvider
public interface RepoProvider<T extends Repo> {
Seq<T> repositories();
Option<T> download(T repo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

public class FunctionCaller {

public static final <T>Seq<T> seq(CheckedFunction0<Seq<T>> function) {
public static final <T>Seq<T> seq(CheckedFunction0<Seq<T>> function) {
return Try.of(function)
.filter( seq -> seq != null )
.getOrElse(empty());
}

public static final <T>Option<T> option(CheckedFunction0<Option<T>> function) {
public static final <T>Option<T> option(CheckedFunction0<Option<T>> function) {
return Try.of(function)
.filter( option -> option != null )
.getOrElse(none())
Expand Down

0 comments on commit 642a9bc

Please sign in to comment.