drop deprecated syntax for anonymous initializer blocks
This commit is contained in:
@@ -13,11 +13,11 @@ class BinaryTree<T> : IMutableSet<T> {
|
||||
|
||||
// override var size : Int { get; private set; }
|
||||
|
||||
this(compare : Comparison<T>) {
|
||||
constructor(compare : Comparison<T>) {
|
||||
this.compare = asMatchableComparison(comparison)
|
||||
}
|
||||
|
||||
this() : this(naturalOrder<T>()) {
|
||||
constructor() : this(naturalOrder<T>()) {
|
||||
}
|
||||
|
||||
private [operator] fun T.compareTo(other : T) : Int = compare(this, other)
|
||||
@@ -135,7 +135,7 @@ class BinaryTree<T> : IMutableSet<T> {
|
||||
val up = Stack<TreeNode>()
|
||||
var lastNode : TreeNode
|
||||
|
||||
this() {
|
||||
init {
|
||||
if (root != null)
|
||||
down.push(root)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user