diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-10-08 22:41:20 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-10-08 22:41:20 +0200 |
commit | 67578ff1eb68c6df87ea50268c4ac2258f28812f (patch) | |
tree | e150a388687e9c3d13022e370407f9be74281106 /src | |
parent | 7ae1a4e0daebb67d6f75628817e4c27f85015667 (diff) | |
download | skyhanni-67578ff1eb68c6df87ea50268c4ac2258f28812f.tar.gz skyhanni-67578ff1eb68c6df87ea50268c4ac2258f28812f.tar.bz2 skyhanni-67578ff1eb68c6df87ea50268c4ac2258f28812f.zip |
code cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt index 6bcd6dcb4..e69a53d31 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt @@ -223,7 +223,9 @@ object SkyHanniConfigSearchResetCommand { val className = obj.getClassName() if (!classFilter(className)) continue val objectName = obj.getObjectName() - if (obj !is Runnable && objectName.startsWith(className) && (objectName.startsWith("at.hannibal2.skyhanni.config.features.") || + if (obj !is Runnable && + objectName.startsWith(className) && + (objectName.startsWith("at.hannibal2.skyhanni.config.features.") || objectName.startsWith("at.hannibal2.skyhanni.config.storage.Storage")) ) { "<category>" @@ -275,7 +277,14 @@ object SkyHanniConfigSearchResetCommand { val newObj = field.makeAccessible().get(obj) map[fieldName] = newObj @Suppress("ComplexCondition") - if (newObj != null && newObj !is Boolean && newObj !is String && newObj !is Long && newObj !is Int && newObj !is Double && newObj !is Position && !newObj.javaClass.isEnum) { + if (newObj != null && + newObj !is Boolean && + newObj !is String && + newObj !is Long && + newObj !is Int && + newObj !is Double && + newObj !is Position && + !newObj.javaClass.isEnum) { map.putAll(loadAllFields(fieldName, newObj, depth + 1)) } } |