Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed May 7, 2024
1 parent 91d0b0d commit fdcf955
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ private static List<Profile> prune(List<Profile> profiles) {
.map(p -> {
Profile.Builder builder = Profile.newBuilder(p, true);
prune((ModelBase.Builder) builder, p);
return builder.build(null)
.build();
return builder.build(null).build();
})
.filter(p -> !isEmpty(p))
.collect(Collectors.toList());
Expand All @@ -293,7 +292,7 @@ private static boolean isEmpty(Profile profile) {
&& profile.getBuild() == null
&& profile.getDependencies().isEmpty()
&& (profile.getDependencyManagement() == null
|| profile.getDependencyManagement().getDependencies().isEmpty())
|| profile.getDependencyManagement().getDependencies().isEmpty())
&& profile.getDistributionManagement() == null
&& profile.getModules().isEmpty()
&& profile.getProperties().isEmpty()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ void transformJarConsumerPom() throws Exception {
when(systemSessionMock.getData()).thenReturn(sessionDataMock);
when(sessionDataMock.get(any())).thenReturn(new NoTransformerContext());

Path beforePomFile =
Paths.get("src/test/resources/projects/transform/jar/before.pom").toAbsolutePath();
Path beforePomFile = Paths.get("src/test/resources/projects/transform/jar/before.pom")
.toAbsolutePath();
Path afterPomFile =
Paths.get("src/test/resources/projects/transform/jar/after.pom").toAbsolutePath();
Path tempFile = Files.createTempFile("", ".pom");
Expand Down

0 comments on commit fdcf955

Please sign in to comment.