Permalink
Browse files

typo

  • Loading branch information...
1 parent 68ad4de commit 6fbed1b8db15c79fe87db734f6bf5e3d94c1c652 @technige technige committed Jan 14, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 geoff-core/src/main/java/org/neo4j/geoff/Neo4jNamespace.java
@@ -220,11 +220,11 @@ public void apply(Iterable<Rule> rules) throws RuleApplicationException {
NodeToken a, RelationshipToken r, NodeToken b, Map<String, Object> properties
)
{
+ ArrayList<Relationship> relationships = new ArrayList<Relationship>();
if (isIncorrectlyTyped(r, 0)) {
return new ArrayList<Relationship>();
}
- Relationship relationship;
- relationship = relationshipStore.get(r).get(0);
+ Relationship relationship = relationshipStore.get(r).get(0);
if (nodeStore.contains(a)) {
if (!areEqual(nodeStore.get(a).get(0), relationship.getStartNode())) {
// start node mismatch
@@ -233,15 +233,14 @@ public void apply(Iterable<Rule> rules) throws RuleApplicationException {
}
if (nodeStore.contains(b)) {
if (!areEqual(nodeStore.get(b).get(0), relationship.getEndNode())) {
- // start node mismatch
+ // end node mismatch
return new ArrayList<Relationship>();
}
}
nodeStore.put(a, relationship.getStartNode());
nodeStore.put(b, relationship.getEndNode());
setProperties(relationship, properties);
relationshipStore.put(r, relationship);
- ArrayList<Relationship> relationships = new ArrayList<Relationship>();
relationships.add(relationship);
return relationships;
}

0 comments on commit 6fbed1b

Please sign in to comment.