Skip to content

False positive in ThrowsCount rule #3222

@t-kameyama

Description

@t-kameyama
import java.io.IOException

fun foo(x: Int) {
    fun bar(x: Int) {
        when (x) {
            1 -> throw IOException()
            2 -> throw IOException()
            3 -> throw IOException()
        }
    }
    return bar(x)
}

foo at line 3 should not be reported as well as ReturnCount rule.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions