This repository was archived by the owner on Oct 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66}
77
88group = " org.cufy"
9- version = " 1.0-SNAPSHOT "
9+ version = " 1.0.0 "
1010
1111repositories {
1212 mavenCentral()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -45,39 +45,9 @@ open class Weakness {
4545 * the given [instance] in this weakness
4646 * instance.
4747 *
48- * @since 1.0.1
48+ * @since 1.0.0
4949 */
5050 operator fun get (instance : Any ): MutableMap <String , Any ?> {
5151 return map.getOrPut(instance) { mutableMapOf () }
5252 }
53-
54- /* *
55- * Get the value associated with the given
56- * [name] in for the given [instance].
57- *
58- * @since 1.0.0
59- */
60- @Deprecated(
61- " Old Weakness API. Will be removed on 2.0.0" ,
62- ReplaceWith (" get(instance).get(name)" ),
63- DeprecationLevel .WARNING
64- )
65- operator fun get (instance : Any , name : String ): Any? {
66- return this [instance][name]
67- }
68-
69- /* *
70- * Associate the given [value] to the
71- * given [name] in for the given [instance].
72- *
73- * @since 1.0.0
74- */
75- @Deprecated(
76- " Old Weakness API" ,
77- ReplaceWith (" get(instance).set(name, value)" ),
78- DeprecationLevel .WARNING
79- )
80- operator fun set (instance : Any , name : String , value : Any? ) {
81- this [instance][name] = value
82- }
8353}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import kotlin.reflect.jvm.jvmErasure
2626 * @param defaultType pass to override the property type.
2727 * @param defaultValue a function to lazily initialize
2828 * the field with.
29- * @since 1.1 .0
29+ * @since 1.0 .0
3030 */
3131fun <T > weak (
3232 defaultName : String? = null,
@@ -57,7 +57,7 @@ fun <T> weak(
5757 * @param weakness the weakness instance.
5858 * @param defaultValue a function to lazily initialize
5959 * the field with.
60- * @since 1.1 .0
60+ * @since 1.0 .0
6161 */
6262fun <T > weak (
6363 weakness : Weakness ,
You can’t perform that action at this time.
0 commit comments