Skip to content

Commit 9dcddee

Browse files
authored
upgrade to htsjdk 2.16.1 (broadinstitute#1224)
1 parent 2705825 commit 9dcddee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def ensureBuildPrerequisites(requiredJavaVersion, buildPrerequisitesMessage) {
6464
}
6565
ensureBuildPrerequisites(requiredJavaVersion, buildPrerequisitesMessage)
6666

67-
final htsjdkVersion = System.getProperty('htsjdk.version', '2.16.0')
67+
final htsjdkVersion = System.getProperty('htsjdk.version', '2.16.1')
6868

6969
// We use a custom shaded build of the NIO library to avoid a regression in the authentication layer.
7070
// GATK does the same, see https://github.com/broadinstitute/gatk/issues/3591

src/main/java/picard/vcf/GatherVcfs.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.io.FileOutputStream;
2424
import java.io.IOException;
2525
import java.nio.file.Files;
26+
import java.nio.file.Path;
2627
import java.util.*;
2728

2829
/**
@@ -267,7 +268,7 @@ private static void gatherWithBlockCopying(final List<File> vcfs, final File out
267268
// If we found the end of the header then write the remainder of this block out as a
268269
// new gzip block and then break out of the while loop
269270
if (firstNonHeaderByteIndex >= 0) {
270-
final BlockCompressedOutputStream blockOut = new BlockCompressedOutputStream(out, null);
271+
final BlockCompressedOutputStream blockOut = new BlockCompressedOutputStream(out, (Path)null);
271272
blockOut.write(blockContents, firstNonHeaderByteIndex, blockContents.length - firstNonHeaderByteIndex);
272273
blockOut.flush();
273274
// Don't close blockOut because closing underlying stream would break everything

0 commit comments

Comments
 (0)