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

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

Open
chenmiao opened this issue Apr 22, 2014 · 0 comments
Open

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

chenmiao opened this issue Apr 22, 2014 · 0 comments

Comments

@chenmiao
Copy link

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))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant