Skip to content

while 方法可能少写break #1

@timlincool

Description

@timlincool

java新手第一次使用github,如有缺失请见谅

使用 findbugs找到的,报以下错误
Value of Node.label from previous case is overwritten here due to switch statement fall through [Scariest(1), High confidence]

在 com.hankcs.hanlp.dependency.common.Node的第182行

        case wh:
            label = "x";
        case begin:
            label = "root";
            break;

case wh 没有break ,不确定这样是否会造成问题。

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions