8000 Merge branch 'devel' of github.com:arangodb/arangodb-java-driver into… · anderick/arangodb-java-driver@c4e9b26 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4e9b26

Browse files
author
a-brandt
committed
Merge branch 'devel' of github.com:arangodb/arangodb-java-driver into devel
2 parents 4b08f9f + 65daa33 commit c4e9b26

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/main/java/com/arangodb/ArangoDriver.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,11 +1908,8 @@ public GraphEntity graphDeleteEdgeDefinition(String graphName, String edgeCollec
19081908
* @return <T> DocumentEntity<T>
19091909
* @throws ArangoException
19101910
*/
1911-
public <T> DocumentEntity<T> graphCreateVertex(
1912-
String graphName,
1913-
String collectionName,
1914-
Object vertex,
1915-
Boolean waitForSync) throws ArangoException {
1911+
public <T> DocumentEntity<T>
1912+
graphCreateVertex(String graphName, String collectionName, T vertex, Boolean waitForSync) throws ArangoException {
19161913
return graphDriver.createVertex(getDefaultDatabase(), graphName, collectionName, vertex, waitForSync);
19171914
}
19181915

src/main/java/com/arangodb/InternalGraphDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ <T> DocumentEntity<T> createVertex(
215215
String database,
216216
String graphName,
217217
String collectionName,
218-
Object vertex,
218+
T vertex,
219219
Boolean waitForSync) throws ArangoException;
220220

221221
<T> DocumentEntity<T> getVertex(

src/main/java/com/arangodb/impl/InternalGraphDriverImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public <T> DocumentEntity<T> createVertex(
330330
String database,
331331
String graphName,
332332
String collectionName,
333-
Object vertex,
333+
T vertex,
334334
Boolean waitForSync) throws ArangoException {
335335

336336
validateCollectionName(graphName);

src/test/java/com/arangodb/ArangoDriverGraphVertexTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void test_create_vertex_error_collection() throws ArangoException {
9696
}
9797

9898
@Test
99-
public void test_get_vertex() throws ArangoException {
99+
public void test_graphGetVertex() throws ArangoException {
100100
driver.createGraph(this.graphName, this.createEdgeDefinitions(2, 0), this.createOrphanCollections(2), true);
101101
DocumentEntity<TestComplexEntity01> vertex = driver.graphCreateVertex(
102102
this.graphName,

0 commit comments

Comments
 (0)
0