Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdedude committed Jul 6, 2022
1 parent 035f718 commit 4678f38
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ public InternalNode(long id, Collection<String> labels, Map<String, Value> prope
this(id, String.valueOf(id), labels, properties);
}

public InternalNode(
long id,
String elementId,
Collection<String> labels,
Map<String, Value> properties) {
public InternalNode(long id, String elementId, Collection<String> labels, Map<String, Value> properties) {
super(id, elementId, properties);
this.labels = labels;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected Value unpackPath() throws IOException {
Map<String, Value> props = unpackMap();
String elementId = unpacker.unpackString();
uniqRels[i] = new InternalRelationship(
id, elementId, -1, String.valueOf(-1), -1, String.valueOf(-1), relType, props);
id, elementId, -1, String.valueOf(-1), -1, String.valueOf(-1), relType, props);
}

// Path sequence
Expand Down Expand Up @@ -148,7 +148,7 @@ protected Value unpackRelationship() throws IOException {
String endElementId = unpacker.unpackString();

InternalRelationship adapted = new InternalRelationship(
urn, elementId, startUrn, startElementId, endUrn, endElementId, relType, props);
urn, elementId, startUrn, startElementId, endUrn, endElementId, relType, props);
return new RelationshipValue(adapted);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.junit.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.neo4j.driver.Values.NULL;
import static org.neo4j.driver.Values.value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.junit.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.neo4j.driver.Values.NULL;
import static org.neo4j.driver.Values.value;

import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,7 @@ class TypeSystemTest {
private final InternalNode node =
new InternalNode(42L, String.valueOf(42L), Collections.emptyList(), Collections.emptyMap());
private final InternalRelationship relationship = new InternalRelationship(
42L,
String.valueOf(42L),
42L,
String.valueOf(42L),
43L,
String.valueOf(43L),
"T",
Collections.emptyMap());
42L, String.valueOf(42L), 42L, String.valueOf(42L), 43L, String.valueOf(43L), "T", Collections.emptyMap());

private Value integerValue = value(13);
private Value floatValue = value(13.1);
Expand Down

0 comments on commit 4678f38

Please sign in to comment.