Skip to content

Commit

Permalink
#605 Replace lambda with Predicate to fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
adiherzog committed Nov 29, 2017
1 parent 734b0bb commit 124fefc
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import java.io.File;
import java.util.*;
import java.util.function.Predicate;

/**
* Manages all the currently available builds and maintains aliases to the most recent builds for each branch.
Expand Down Expand Up @@ -191,7 +192,13 @@ private BranchBuilds addNewBranchToBranchBuilds(BuildImportSummary buildImportSu
}

private boolean isBranchAlias(String branchName) {
return configurationRepository.getConfiguration().getBranchAliases().stream().anyMatch(alias -> alias.getName().equals(branchName));
return configurationRepository.getConfiguration().getBranchAliases().stream()
.anyMatch(new Predicate<BranchAlias>() {
@Override
public boolean test(BranchAlias branchAlias) {
return branchAlias.getName().equals(branchName);
}
});
}

private void addImportedBuild(BuildImportSummary buildImportSummary, BranchBuilds branchBuilds) {
Expand Down

0 comments on commit 124fefc

Please sign in to comment.