Skip to content

Fix all compiler warnings in CI build#229

Merged
codebutler merged 1 commit intomasterfrom
fix/compiler-warnings
Feb 17, 2026
Merged

Fix all compiler warnings in CI build#229
codebutler merged 1 commit intomasterfrom
fix/compiler-warnings

Conversation

@codebutler
Copy link
Owner

@codebutler codebutler commented Feb 16, 2026

Summary

  • Remove redundant type checks (assertTrue(x is T)) where the compiler already knows the type from generic return types
  • Remove unnecessary !! on non-null exception messages in DesfireProtocolTest
  • Remove unnecessary elvis operators on non-null UnauthorizedException.message in DesfireCardReader
  • Remove unnecessary safe calls on non-null receivers
  • Add @file:OptIn for ExperimentalWasmDsl in app/web and ExperimentalKotlinGradlePluginApi in tools/mdst
  • Clean up unused imports across test files

Test plan

  • CI passes on both "Build & Test (JVM + Android + Web)" and "Build & Test (iOS)" jobs

🤖 Generated with Claude Code

@codebutler codebutler force-pushed the fix/compiler-warnings branch 2 times, most recently from c8c6506 to 65d2d22 Compare February 17, 2026 00:04
- Replace deprecated compose.foundation/material3/materialIconsExtended
  with version catalog entries (libs.compose.*)
- Add @OptIn for ExperimentalWasmDsl in app/web and
  ExperimentalKotlinGradlePluginApi in tools/mdst
- Remove unnecessary elvis operators on non-null UnauthorizedException.message
- Remove unnecessary !! on non-null exception messages in DesfireProtocolTest
- Remove redundant type checks (assertTrue(x is T)) where compiler
  already knows the type from generic return types
- Remove unnecessary casts after smart casts from assertTrue contracts
- Remove unnecessary safe calls on non-null receivers
- Clean up unused imports via ktlintFormat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codebutler codebutler force-pushed the fix/compiler-warnings branch from 65d2d22 to 8f4e514 Compare February 17, 2026 00:06
@codebutler codebutler merged commit 8a008a6 into master Feb 17, 2026
6 checks passed
@codebutler codebutler deleted the fix/compiler-warnings branch February 17, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant