mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[log] defensive copying
This commit is contained in:
@@ -7,6 +7,7 @@ import com.intellij.vcs.log.Hash;
|
||||
import com.intellij.vcs.log.VcsCommit;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -26,7 +27,7 @@ public class VcsCommitImpl implements VcsCommit {
|
||||
|
||||
public VcsCommitImpl(@NotNull Hash hash, @NotNull List<Hash> parents) {
|
||||
myHash = hash;
|
||||
myParents = parents;
|
||||
myParents = new ArrayList<Hash>(parents);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user