aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/ca
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-23 15:34:59 -0800
committerAllan Wang <me@allanwang.ca>2020-02-23 15:34:59 -0800
commit5038b93102949bb127b6cb9cb26809490739b3fa (patch)
tree1c0793625b9d05c98b4d0abfccd35ffa90819094 /core/src/main/kotlin/ca
parent3e7f62f89bc4e95cfae7394463e3fd503777011f (diff)
downloadkau-5038b93102949bb127b6cb9cb26809490739b3fa.tar.gz
kau-5038b93102949bb127b6cb9cb26809490739b3fa.tar.bz2
kau-5038b93102949bb127b6cb9cb26809490739b3fa.zip
Apply spotless
Diffstat (limited to 'core/src/main/kotlin/ca')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt2
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefFactory.kt17
2 files changed, 17 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 c17d3df..217bc6e 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
@@ -104,7 +104,7 @@ class KPrefDelegateInMemory<T> internal constructor(
private val lock = this
init {
- pref.add(this)
+ pref.add(this)
}
override fun invalidate() {
diff --git a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefFactory.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefFactory.kt
index 0c49b88..dd6da29 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefFactory.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefFactory.kt
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2020 Allan Wang
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package ca.allanwang.kau.kpref
import android.content.Context
@@ -19,4 +34,4 @@ class KPrefFactoryAndroid(context: Context) : KPrefFactory {
object KPrefFactoryInMemory : KPrefFactory {
override fun createBuilder(preferenceName: String): KPrefBuilder = KPrefBuilderInMemory
-} \ No newline at end of file
+}