Skip to content

Commit 6c5296d

Browse files
committed
Analysis: Resolve open has no effect in an object warnings
Warning Message: "'open' has no effect in an object"
1 parent c32e320 commit 6c5296d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/util/InstanceStateUtils.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class InstanceStateUtils {
2323
externalLogger?.logException(e, "Error trying to write cache for $varName.")
2424
}
2525

26-
open fun writeTempInstance(context: Context, externalLogger: AztecLog.ExternalLogger?, varName: String, obj: Any?, bundle: Bundle) {
26+
fun writeTempInstance(context: Context, externalLogger: AztecLog.ExternalLogger?, varName: String, obj: Any?, bundle: Bundle) {
2727
try {
2828
with(File.createTempFile(varName, ".inst", context.getCacheDir())) {
2929
deleteOnExit() // just make sure if we miss deleting this cache file the VM will eventually do it
@@ -46,7 +46,7 @@ class InstanceStateUtils {
4646
}
4747
}
4848

49-
open fun <T> readAndPurgeTempInstance(varName: String, defaultValue: T, bundle: Bundle): T {
49+
fun <T> readAndPurgeTempInstance(varName: String, defaultValue: T, bundle: Bundle): T {
5050
// the full path is kept in the bundle so, get it from there
5151
val filename = bundle.getString(cacheFilenameKey(varName))
5252

@@ -77,4 +77,4 @@ class InstanceStateUtils {
7777
return obj
7878
}
7979
}
80-
}
80+
}

0 commit comments

Comments
 (0)