TreeNode is now not final.

This commit is contained in:
Adrian Kuta 2020-01-10 11:19:38 +01:00
parent 5adaec9c92
commit 567e134b97
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ android {
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 29 targetSdkVersion 29
versionCode 1 versionCode 1
versionName "1.0.5" versionName "1.0.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro' consumerProguardFiles 'consumer-rules.pro'

View File

@ -1,6 +1,6 @@
package com.github.adriankuta.datastructure.tree package com.github.adriankuta.datastructure.tree
class TreeNode<T>(val value: T) { open class TreeNode<T>(val value: T) {
private var parent: TreeNode<T>? = null private var parent: TreeNode<T>? = null
private val children = mutableListOf<TreeNode<T>>() private val children = mutableListOf<TreeNode<T>>()