Skip to content

Commit

Permalink
Merge pull request #7519 from murdos/small-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
pascalgrimaud authored Sep 19, 2023
2 parents 8b41e23 + 9b9be7d commit 1a74197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class SpringFactory {
private final PropertyKey key;
private final PropertyValue value;

public SpringFactory(SpringFactoryBuilder builder) {
private SpringFactory(SpringFactoryBuilder builder) {
Assert.notNull("type", builder.type);
Assert.notNull("key", builder.key);
Assert.notNull("value", builder.value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.JGitInternalException;
Expand Down Expand Up @@ -38,7 +37,7 @@ public void init(JHipsterProjectFolder folder) {
}

private boolean isGit(JHipsterProjectFolder folder) {
return Files.exists(Paths.get(folder.get()).resolve(".git"));
return Files.exists(folder.filePath(".git"));
}

@Override
Expand Down

0 comments on commit 1a74197

Please sign in to comment.