Remove toInt() conversion as it's hardly required.
#KT-14789
This commit is contained in:
@@ -24,16 +24,6 @@ public class KotlinVersion(val major: Int, val minor: Int, val patch: Int) : Com
|
|||||||
return major shl 16 + minor shl 8 + patch
|
return major shl 16 + minor shl 8 + patch
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the integer representation of this version.
|
|
||||||
*
|
|
||||||
* Integer representations of two [KotlinVersion] instances can be compared,
|
|
||||||
* so that if `v1.toInt() > v2.toInt()` then `v1 > v2`.
|
|
||||||
*
|
|
||||||
* This value should not be persisted, as it can change between program runs.
|
|
||||||
*/
|
|
||||||
public fun toInt(): Int = version
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the string representation of this version
|
* Returns the string representation of this version
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ public final class kotlin/KotlinVersion : java/lang/Comparable {
|
|||||||
public fun hashCode ()I
|
public fun hashCode ()I
|
||||||
public final fun isAtLeast (II)Z
|
public final fun isAtLeast (II)Z
|
||||||
public final fun isAtLeast (III)Z
|
public final fun isAtLeast (III)Z
|
||||||
public final fun toInt ()I
|
|
||||||
public fun toString ()Ljava/lang/String;
|
public fun toString ()Ljava/lang/String;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user