Skip to content

Fix Kotlin compiler warnings in Destinations.kt and MainActivity.kt #131

Description

@ssawchenko

Written by Claude Code

Surfaced during the Gradle 9 migration (ss/130_gradle_9_migration). These are pre-existing Kotlin compiler warnings that should be addressed in a follow-up.

steamclog/src/main/java/com/steamclock/steamclog/Destinations.kt

  • Lines 34, 123, 159 — Overrides a deprecated DebugTree/Tree member (from Timber) without being marked @Deprecated itself. Should either propagate the @Deprecated annotation or suppress with justification.
  • Lines 41, 127, 166 — Parameter name mismatch with supertype: the overriding parameter is not named t as it is in DebugTree/Tree. This can cause unexpected behaviour when callers use named arguments.
  • Line 259 — Unnecessary safe call (?.) on a non-null File receiver.

app/src/main/java/com/steamclock/steamclogsample/MainActivity.kt (sample app)

  • Line 223 — Use of a delicate API without acknowledging the risk (missing @OptIn or equivalent).
  • Line 76 — Redundant else branch in an exhaustive when expression.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions