From fbfeb98ecf17ca468c0648c8af050db035d58bb9 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 18 Dec 2015 22:50:21 +0300 Subject: [PATCH] Deprecate some top-level constants to make 'em private later. --- libraries/stdlib/src/kotlin/io/Constants.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/stdlib/src/kotlin/io/Constants.kt b/libraries/stdlib/src/kotlin/io/Constants.kt index 9838589ef1b..2832a0fca2b 100644 --- a/libraries/stdlib/src/kotlin/io/Constants.kt +++ b/libraries/stdlib/src/kotlin/io/Constants.kt @@ -7,11 +7,14 @@ package kotlin.io * Returns the default buffer size when working with buffered streams. */ public val defaultBufferSize: Int = 64 * 1024 + /** * Returns the default block size for forEachBlock(). */ +@Deprecated("This constant will become private soon, use its value instead.", ReplaceWith("4096")) public val defaultBlockSize: Int = 4096 /** * Returns the minimum block size for forEachBlock(). */ +@Deprecated("This constant will become private soon, use its value instead.", ReplaceWith("512")) public val minimumBlockSize: Int = 512 \ No newline at end of file