Skip to content

Commit a938b12

Browse files
committed
Fix a deprecation warning about CloseShieldOutputStream
1 parent 168109d commit a938b12

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/variantsync/diffdetective/analysis/strategies/AnalyzeAllAndExport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void start(Repository repo, Path outputPath) {
3434
public OutputStream onCommit(CommitDiff commit) {
3535
// lineGraphDestination is reused for all commits. CloseShieldOutputStream ensures that it
3636
// isn't closed after processing this commit.
37-
return new CloseShieldOutputStream(lineGraphDestination);
37+
return CloseShieldOutputStream.wrap(lineGraphDestination);
3838
}
3939

4040
@Override

src/main/java/org/variantsync/diffdetective/analysis/strategies/AnalyzeAndExportIncrementally.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public OutputStream onCommit(CommitDiff commit) {
6666

6767
// lineGraphDestination is reused for all commits. CloseShieldOutputStream ensures that it
6868
// isn't closed after processing this commit.
69-
return new CloseShieldOutputStream(lineGraphDestination);
69+
return CloseShieldOutputStream.wrap(lineGraphDestination);
7070
}
7171

7272
@Override

0 commit comments

Comments
 (0)