Minor, make BinaryVersion.numbers private

Use BinaryVersion.toArray instead, as in all other usages
This commit is contained in:
Alexander Udalov
2018-05-16 12:19:11 +02:00
parent 1b15619457
commit ffa6b6233b
2 changed files with 6 additions and 4 deletions
@@ -14,7 +14,7 @@ package org.jetbrains.kotlin.metadata.deserialization
* - Patch version can be increased freely and is only supposed to be used for debugging. Increase the patch version when you
* make a change to binaries which is both forward- and backward compatible.
*/
abstract class BinaryVersion(vararg val numbers: Int) {
abstract class BinaryVersion(private vararg val numbers: Int) {
val major: Int = numbers.getOrNull(0) ?: UNKNOWN
val minor: Int = numbers.getOrNull(1) ?: UNKNOWN
val patch: Int = numbers.getOrNull(2) ?: UNKNOWN