Skip to content

Commit ba1dade

Browse files
committed
refactor: update parameter at arangodb
Signed-off-by: Otavio Santana <[email protected]>
1 parent a6cba99 commit ba1dade

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jnosql-arangodb/src/main/java/org/eclipse/jnosql/databases/arangodb/communication/ArangoDBDocumentManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public interface ArangoDBDocumentManager extends DocumentManager {
5555
* <p>FOR u IN users FILTER u.status == @status RETURN u </p>
5656
*
5757
* @param query the query
58-
* @param typeClass The type of the result
58+
* @param type The type of the result
5959
* @param <T> the type
6060
* @return the query result
6161
* @throws NullPointerException when either query or values are null
6262
*/
63-
<T> Stream<T> aql(String query, Class<T> typeClass);
63+
<T> Stream<T> aql(String query, Class<T> type);
6464
}

jnosql-arangodb/src/main/java/org/eclipse/jnosql/databases/arangodb/communication/DefaultArangoDBDocumentManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ public <T> Stream<T> aql(String query, Map<String, Object> values, Class<T> type
161161
}
162162

163163
@Override
164-
public <T> Stream<T> aql(String query, Class<T> typeClass) {
164+
public <T> Stream<T> aql(String query, Class<T> type) {
165165
requireNonNull(query, "query is required");
166-
requireNonNull(typeClass, "typeClass is required");
167-
ArangoCursor<T> result = arangoDB.db(database).query(query,typeClass, emptyMap(), null);
166+
requireNonNull(type, "typeClass is required");
167+
ArangoCursor<T> result = arangoDB.db(database).query(query, type, emptyMap(), null);
168168
return StreamSupport.stream(result.spliterator(), false);
169169
}
170170

0 commit comments

Comments
 (0)