aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
index 33ba807..60d03ad 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
@@ -26,7 +26,8 @@ class KPrefDelegate<T : Any> internal constructor(
private object UNINITIALIZED
- @Volatile private var _value: Any = UNINITIALIZED
+ @Volatile
+ private var _value: Any = UNINITIALIZED
private val lock = lock ?: this
init {
@@ -89,5 +90,6 @@ class KPrefDelegate<T : Any> internal constructor(
}
class KPrefException(message: String) : IllegalAccessException(message) {
- constructor(element: Any?) : this("Invalid type in pref cache: ${element?.javaClass?.simpleName ?: "null"}")
+ constructor(element: Any?) : this("Invalid type in pref cache: ${element?.javaClass?.simpleName
+ ?: "null"}")
} \ No newline at end of file