diff --git a/build.gradle b/build.gradle index 3c2400737..927c3054e 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.palantir.baseline:gradle-baseline-java:5.18.0' + classpath 'com.palantir.baseline:gradle-baseline-java:5.19.0' classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.13.0' classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0' classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0' diff --git a/tritium-lib/src/test/java/com/palantir/tritium/io/InstrumentedStreamsTest.java b/tritium-lib/src/test/java/com/palantir/tritium/io/InstrumentedStreamsTest.java index 35a8629ff..2148f0945 100644 --- a/tritium-lib/src/test/java/com/palantir/tritium/io/InstrumentedStreamsTest.java +++ b/tritium-lib/src/test/java/com/palantir/tritium/io/InstrumentedStreamsTest.java @@ -51,7 +51,7 @@ void instrumentedCopy() throws IOException { ByteArrayOutputStream output = new ByteArrayOutputStream(bytes.length); InputStream instrumentedInputStream = InstrumentedStreams.input(input, registry, "in"); OutputStream instrumentedOutputStream = InstrumentedStreams.output(output, registry, "out")) { - assertThat(ByteStreams.copy(instrumentedInputStream, instrumentedOutputStream)) + assertThat(instrumentedInputStream.transferTo(instrumentedOutputStream)) .isEqualTo(bytes.length); assertThat(output.toByteArray()).isEqualTo(bytes); assertThat(metrics.read("in").getCount()).isNotZero().isEqualTo(i * bytes.length); @@ -82,7 +82,7 @@ void instrumentedGzip() throws IOException { OutputStream gzipOut = new GZIPOutputStream(instrumentedRawOutputStream); OutputStream instrumentedGzipOutputStream = InstrumentedStreams.output(gzipOut, registry, "to-compress")) { - assertThat(ByteStreams.copy(instrumentedInputStream, instrumentedGzipOutputStream)) + assertThat(instrumentedInputStream.transferTo(instrumentedGzipOutputStream)) .isEqualTo(totalSize); assertThat(metrics.read("in").getCount()).isNotZero().isEqualTo(totalSize); assertThat(metrics.write("to-compress").getCount())