diff options
author | Sven Gothel <[email protected]> | 2023-05-04 00:48:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-05-04 00:48:15 +0200 |
commit | 69d22df0a6132dbf8b88fd04090c0bc81129237f (patch) | |
tree | 08e57ae187171b828b5b015042faa0e871afa271 /src/junit | |
parent | 6545ab42048dfda5f6cb72ce272a331078cd200e (diff) |
IOUtil.copyStream2{File|Stream)(..): Drop unused and misleading 'totalNumBytes' argument, since we have no user-feedback callback passed.
Diffstat (limited to 'src/junit')
-rw-r--r-- | src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java | 2 | ||||
-rw-r--r-- | src/junit/com/jogamp/junit/util/MiscUtils.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java b/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java index 90a954b..bbe815d 100644 --- a/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java +++ b/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java @@ -265,7 +265,7 @@ public class TestByteBufferInputStream extends SingletonJunitCase { final long t1 = System.currentTimeMillis(); final File out = new File(fileOut); - IOUtil.copyStream2File(bis, out, -1); + IOUtil.copyStream2File(bis, out); final long t2 = System.currentTimeMillis(); final String suffix; diff --git a/src/junit/com/jogamp/junit/util/MiscUtils.java b/src/junit/com/jogamp/junit/util/MiscUtils.java index 3576fed..03d4d13 100644 --- a/src/junit/com/jogamp/junit/util/MiscUtils.java +++ b/src/junit/com/jogamp/junit/util/MiscUtils.java @@ -103,7 +103,7 @@ public class MiscUtils { } final InputStream in = new BufferedInputStream(new FileInputStream(src)); try { - stats.totalBytes += IOUtil.copyStream2File(in, dest, 0); + stats.totalBytes += IOUtil.copyStream2File(in, dest); } finally { in.close(); } |