Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

The usage of Label.equal() in neo4j #2

@chenmiao

Description

@chenmiao

Thanks for your code. Also I'm new to Neo4j.

I found in the Neo4jBatchHandeler.java class, there is a code block using Label.equal()

for (Label lbl : labels) {
if (label.equals(lbl)) {//it seems should't be this way, but should be label.name.equals(lbl)
hit = true;
break;
}
labelList.add(lbl);
}

According to Neo4j API, http://api.neo4j.org/2.0.0/org/neo4j/graphdb/Label.html
Label.name() is the unique identifier for Label, so it looks like

if (label.equals(lbl))
should be
if (label.name().equals(lbl))

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