-
Notifications
You must be signed in to change notification settings - Fork 21
Redundant statement of adding label to the label list? #3
Comments
Hi! That code is ridiculously deprecated. The API probably had some changes Regards, On Dienstag, 22. April 2014 18:51:33, chenmiao wrote:
|
Ok. Thanks. I found your code through Neo4j site Is there updated version of the code? Or some public code you would Since there could be some people like me, knowing something about semantic It'd be definitely good to update the code to reduce people's questions Thanks, |
Hey Miao, actually, you're not the first one to mail me about that stuff. I'm a There are quite some issues to talk about. But I'll spare you the Regards, On Dienstag, 22. April 2014 21:03:24, chenmiao wrote:
|
Thanks for your suggestions, Michael. It seems the bridging between RDF/OWL Sure, look forward to the updated blog. Thanks. Best, |
Still the same code block, where there is a statement about adding lbl to the lableList
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);
}
This looks to be a redundant line because the next code block does the same thing: adding non-hit label to the labelList
if (!hit) {
labelList.add(label); //seems to be redundant because of above statement labelList.add(lbl);
db.setNodeLabels(subjectNode, labelList.toArray(new Label[labelList.size()]));
addedLabels++;
}
So the line can be crossed out?
The text was updated successfully, but these errors were encountered: