Kleine robuustheids- en stijlpunten in de Kotlin-patches #100
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: low · Categorie: code-quality · Effort: S
Probleem
Gebundelde nits:
MiniJson: een letterlijke BOM in de bron (gebruik).readNumberaccepteert een losse-. Een foute\ugooit eenNumberFormatExceptionin plaats van eenPatchException. Eenis Number-tak is overbodig.isReleaseBuild-veld viatoString().contains(...). Match opFieldReference.name.gelderlander*;dependsOnin 5 patches;featureFlagOverridePatchheeft geencompatibleWith;toList();addShareActionzonder te controleren of dieVteruggeeft en of er precies één match is.sget-objectvan het eigen type;move-resultin met gewoneaddInstructionsin plaats vanaddInstructionsAtControlFlowLabel;isSetVisibilityis te ruim.Waar
patches/src/main/kotlin/nl/midasvo/patches/shared/util/MiniJson.kt#L24,37-38,135-139,211-212patches/src/main/kotlin/nl/midasvo/patches/firebase/DisableFirebaseInAppMessagingPatch.kt#L10-12patches/src/main/kotlin/nl/midasvo/patches/firebase/Fingerprints.kt#L6-14extensions/extension/src/main/java/nl/midasvo/extension/settings/MidasSettingsActivity.java#L207-223patches/src/main/kotlin/nl/midasvo/patches/edition/tracking/DisableTrackingPatch.kt#L78-90patches/src/main/kotlin/nl/midasvo/patches/kubus/forcedupdate/DisableForcedUpdatePatch.kt#L9patches/src/main/kotlin/nl/midasvo/patches/kubus/reviewprompts/HideReviewPromptsPatch.kt#L21patches/src/main/kotlin/nl/midasvo/patches/kubus/surveys/HideSurveysPatch.kt#L13,21-22patches/src/main/kotlin/nl/midasvo/patches/kubus/hidesharebuttons/HideShareButtonsPatch.kt#L22-23patches/src/main/kotlin/nl/midasvo/patches/kubus/featureflags/FeatureFlagOverridePatch.kt#L78-81patches/src/main/kotlin/nl/midasvo/patches/kubus/settings/MidasSettingsPatch.kt#L52-56patches/src/main/kotlin/nl/midasvo/patches/kubus/tracking/KubusManifestCleanupPatch.kt#L14-44patches/src/main/kotlin/nl/midasvo/patches/kubus/ads/HideAdsPatch.kt#L33-35patches/src/main/kotlin/nl/midasvo/patches/edition/markdown/CopyArticleMarkdownPatch.kt#L41-53patches/src/main/kotlin/nl/midasvo/patches/edition/markdown/Fingerprints.kt#L11-21patches/src/main/kotlin/nl/midasvo/patches/videoland/ads/HideAdsPatch.kt#L37-41patches/src/main/kotlin/nl/midasvo/patches/videoland/quality/ForceHdPatch.kt#L58-68patches/src/main/kotlin/nl/midasvo/patches/videoland/assets/LogVideoAssetsPatch.kt#L81-84patches/src/main/kotlin/nl/midasvo/patches/videoland/skipintro/AutoSkipIntroPatch.kt#L102-108, 122-134Bewijs
U1-6 (patches/src/main/kotlin/nl/midasvo/patches/shared/util/MiniJson.kt)
U2-2 (patches/src/main/kotlin/nl/midasvo/patches/edition/tracking/DisableTrackingPatch.kt)
U3-4 (patches/src/main/kotlin/nl/midasvo/patches/kubus/forcedupdate/DisableForcedUpdatePatch.kt)
U4-5 (patches/src/main/kotlin/nl/midasvo/patches/edition/markdown/CopyArticleMarkdownPatch.kt)
U5-5 (patches/src/main/kotlin/nl/midasvo/patches/videoland/ads/HideAdsPatch.kt)
Impact
Klein per punt. Samen betekenen ze meer kans op een stille fout na een update.
Voorstel
Pak ze op in één opruim-commit. De twee bytecode-punten (
addInstructionsAtControlFlowLabel, de check opVen één match) eerst.Acceptatiecriteria
Applied:op een Edition-, Kubus- en Videoland-APK.Code review @
33e02db(2026-10-14) · findings: U1-6, U2-2, U3-4, U4-5, U5-5Opgelost in PR #120, gemerged in dev en uitgebracht in v1.10.0 (onderdeel van #105).