diff --git a/vcs/src/main/java/org/openjdk/skara/vcs/git/GitRepository.java b/vcs/src/main/java/org/openjdk/skara/vcs/git/GitRepository.java index 3c476f32d..3a4fb1d06 100644 --- a/vcs/src/main/java/org/openjdk/skara/vcs/git/GitRepository.java +++ b/vcs/src/main/java/org/openjdk/skara/vcs/git/GitRepository.java @@ -1125,7 +1125,7 @@ private List allFilesWithStaged(Hash hash, List paths) throws I private List allFilesWithWorkingTree(Hash hash, List paths) throws IOException { // Get staged files first - var entries = new ArrayList(allFilesWithStaged(hash, paths)); + var entries = new ArrayList<>(allFilesWithStaged(hash, paths)); // Get unstaged files var cmd = new ArrayList(); cmd.addAll(List.of("git", "-c", "core.quotePath=false", "ls-files", "--others", "--exclude-standard")); @@ -1135,7 +1135,6 @@ private List allFilesWithWorkingTree(Hash hash, List paths) thr .execute()) { var res = await(p); for (var filename : res.stdout()) { - var entry = new FileEntry(hash, null, hash,