From 4678f38ab324b01f420480ebae9a6841ce638dfa Mon Sep 17 00:00:00 2001 From: Rouven Bauer Date: Wed, 6 Jul 2022 13:29:50 +0200 Subject: [PATCH] Code style --- .../java/org/neo4j/driver/internal/InternalNode.java | 6 +----- .../driver/internal/messaging/v5/ValueUnpackerV5.java | 4 ++-- .../java/org/neo4j/driver/internal/InternalNodeTest.java | 2 -- .../neo4j/driver/internal/InternalRelationshipTest.java | 3 --- .../test/java/org/neo4j/driver/types/TypeSystemTest.java | 9 +-------- 5 files changed, 4 insertions(+), 20 deletions(-) diff --git a/driver/src/main/java/org/neo4j/driver/internal/InternalNode.java b/driver/src/main/java/org/neo4j/driver/internal/InternalNode.java index db268659b4..71195a504f 100644 --- a/driver/src/main/java/org/neo4j/driver/internal/InternalNode.java +++ b/driver/src/main/java/org/neo4j/driver/internal/InternalNode.java @@ -39,11 +39,7 @@ public InternalNode(long id, Collection labels, Map prope this(id, String.valueOf(id), labels, properties); } - public InternalNode( - long id, - String elementId, - Collection labels, - Map properties) { + public InternalNode(long id, String elementId, Collection labels, Map properties) { super(id, elementId, properties); this.labels = labels; } diff --git a/driver/src/main/java/org/neo4j/driver/internal/messaging/v5/ValueUnpackerV5.java b/driver/src/main/java/org/neo4j/driver/internal/messaging/v5/ValueUnpackerV5.java index 393b87be15..2d920c8b5a 100644 --- a/driver/src/main/java/org/neo4j/driver/internal/messaging/v5/ValueUnpackerV5.java +++ b/driver/src/main/java/org/neo4j/driver/internal/messaging/v5/ValueUnpackerV5.java @@ -97,7 +97,7 @@ protected Value unpackPath() throws IOException { Map 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 @@ -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); } } diff --git a/driver/src/test/java/org/neo4j/driver/internal/InternalNodeTest.java b/driver/src/test/java/org/neo4j/driver/internal/InternalNodeTest.java index 0e6dc75923..0cfc009264 100644 --- a/driver/src/test/java/org/neo4j/driver/internal/InternalNodeTest.java +++ b/driver/src/test/java/org/neo4j/driver/internal/InternalNodeTest.java @@ -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; diff --git a/driver/src/test/java/org/neo4j/driver/internal/InternalRelationshipTest.java b/driver/src/test/java/org/neo4j/driver/internal/InternalRelationshipTest.java index 3c85c27e88..5d156d2bb9 100644 --- a/driver/src/test/java/org/neo4j/driver/internal/InternalRelationshipTest.java +++ b/driver/src/test/java/org/neo4j/driver/internal/InternalRelationshipTest.java @@ -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; diff --git a/driver/src/test/java/org/neo4j/driver/types/TypeSystemTest.java b/driver/src/test/java/org/neo4j/driver/types/TypeSystemTest.java index dd776b558a..2269cd9ae9 100644 --- a/driver/src/test/java/org/neo4j/driver/types/TypeSystemTest.java +++ b/driver/src/test/java/org/neo4j/driver/types/TypeSystemTest.java @@ -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);