Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimberArgTypes: wrong detection of measureTimeMillis() return type in Kotlin 1.5 #412

Open
hrach opened this issue May 14, 2021 · 0 comments

Comments

@hrach
Copy link

hrach commented May 14, 2021

After updating to Kotlin 1.5 we receive this lint error, but actually being a false positive.

 Error: Wrong argument type for formatting argument '#1' in connectingPlaces() took %d ms: conversion is 'd', received Object (argument #2 in method call) [TimberArgTypes]
      Timber.d("connectingPlaces() took %d ms", connectingPlaces)

Relevant code:

    val connectingPlaces = measureTimeMillis {
       // ...
    }
    Timber.d("connectingPlaces() took %d ms", connectingPlaces)
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

No branches or pull requests

1 participant