Skip to content

insert 函数抛出IndexOutOfBoundsException #31

@neofung

Description

@neofung

private void buildDoubleArrayTrie(int keySize)
{
progress = 0;
this.keySize = keySize;
resize(65536 * 32); // 32个双字节
base[0] = 1;
nextCheckPos = 0;
State root_node = this.rootState;
List<Map.Entry<Integer, State>> siblings = new ArrayList<Map.Entry<Integer, State>>(root_node.getSuccess().entrySet().size());
fetch(root_node, siblings);
insert(siblings);
}

#846 行,如果siblings是空列表,还有需要插入么,如果为空列表,则会导致insert 函数抛出IndexOutOfBoundsException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions