Skip to content

Commit

Permalink
favorit lamba expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
bmscomp committed Oct 5, 2023
1 parent f6431cb commit 118d47e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ protected void doExecute() throws MojoExecutionException {
getLog().info("Deployment configuration:");
systemProperties.entrySet().stream()
.filter(e -> e.getKey().contains("quarkus.deployment"))
.forEach(e -> {
getLog().info(" - " + e.getKey() + ": " + e.getValue());
});
.forEach(e -> getLog().info(" - " + e.getKey() + ": " + e.getValue()));
} else {
super.doExecute();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ protected void doExecute() throws MojoExecutionException {
getLog().info("Container image configuration:");
systemProperties.entrySet().stream()
.filter(e -> e.getKey().contains("quarkus.container-image"))
.forEach(e -> {
getLog().info(" - " + e.getKey() + ": " + e.getValue());
});
.forEach(e -> getLog().info(" - " + e.getKey() + ": " + e.getValue()));
} else {
super.doExecute();
}
Expand All @@ -47,7 +45,7 @@ protected void doExecute() throws MojoExecutionException {
@Override
protected List<Dependency> forcedDependencies(LaunchMode mode) {
List<Dependency> dependencies = new ArrayList<>();
getBuilder().getExtensionArtifact(mavenProject()).ifPresent(d -> dependencies.add(d));
getBuilder().getExtensionArtifact(mavenProject()).ifPresent(dependencies::add);
return dependencies;
}
}

0 comments on commit 118d47e

Please sign in to comment.