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

Doesn't handle escaped imports properly #7

Closed
dstarcev opened this issue Aug 5, 2016 · 1 comment
Closed

Doesn't handle escaped imports properly #7

dstarcev opened this issue Aug 5, 2016 · 1 comment

Comments

@dstarcev
Copy link

dstarcev commented Aug 5, 2016

It says the first import is unused. It's wrong. Quick fix is there #6

import org.mockito.Mockito.`when`
import org.mockito.Mockito.mock

class LinterFailure {
    fun foo() {
        val bar = mock(LinterFailure::class.java)

       `when`(bar.foo())
    }
}
@shyiko
Copy link
Collaborator

shyiko commented Aug 5, 2016

Thank you for the PR! Included in 0.1.2 (which should become available through Maven Central within the next 2 hours).

@shyiko shyiko closed this as completed Aug 5, 2016
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

2 participants