Skip to content
Prev Previous commit
Next Next commit
code inspection fixes
  • Loading branch information
michele committed Oct 9, 2019
commit 45103bbd06474df88d5ed11bea2e3ffe40a47e32
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* @author Michele Rastelli
*/
public class ExceptionUtil {
class ExceptionUtil {
static <T> Function<Throwable, T> catchGetDocumentExceptions(Boolean isCatchException) {
return throwable -> {
if (throwable instanceof CompletionException) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
import java.util.HashMap;
import java.util.Map;

import java.util.HashMap;
import java.util.Map;

/**
* @author Mark Vollmary
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected Request dropRequest() {
protected Request dropRequest(final boolean dropCollections) {
final Request request = request(db.name(), RequestType.DELETE, PATH_API_GHARIAL, name);
if (dropCollections) {
request.putQueryParam("dropCollections", dropCollections);
request.putQueryParam("dropCollections", true);
}
return request;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
import java.util.HashMap;
import java.util.Map;

import java.util.HashMap;
import java.util.Map;

/**
* @author Mark Vollmary
*
Expand Down
1 change: 1 addition & 0 deletions src/test/java/com/arangodb/ArangoCollectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public void insertDocumentWithArrayWithNullValues() {
assertThat(insertedDoc.getKey(), is(notNullValue()));
assertThat(insertedDoc.getRev(), is(notNullValue()));
assertThat(insertedDoc.getId(), is(COLLECTION_NAME + "/" + insertedDoc.getKey()));
//noinspection unchecked
assertThat(((List<String>) insertedDoc.getNew().getAttribute("arr")), contains("a", null));
}

Expand Down
8 changes: 4 additions & 4 deletions src/test/java/com/arangodb/StreamTransactionGraphTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public class StreamTransactionGraphTest extends BaseTest {
private static final String VERTEX_COLLECTION_1 = "vertex_collection_1_stream_transaction_graph_test";
private static final String VERTEX_COLLECTION_2 = "vertex_collection_2_stream_transaction_graph_test";

private ArangoGraph graph;
private ArangoVertexCollection vertexCollection1;
private ArangoVertexCollection vertexCollection2;
private ArangoEdgeCollection edgeCollection;
private final ArangoGraph graph;
private final ArangoVertexCollection vertexCollection1;
private final ArangoVertexCollection vertexCollection2;
private final ArangoEdgeCollection edgeCollection;

public StreamTransactionGraphTest(final Builder builder) {
super(builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class StreamTransactionGraphTest extends BaseTest {
private static final String VERTEX_COLLECTION_1 = "vertex_collection_1_stream_transaction_graph_test";
private static final String VERTEX_COLLECTION_2 = "vertex_collection_2_stream_transaction_graph_test";

private ArangoGraphAsync graph;
private final ArangoGraphAsync graph;
private ArangoVertexCollectionAsync vertexCollection1;
private ArangoVertexCollectionAsync vertexCollection2;
private ArangoEdgeCollectionAsync edgeCollection;
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/arangodb/async/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
/**
* @author Michele Rastelli
*/
public class TestUtils {
public static TestRule acquireHostListRule = (base, description) -> {
class TestUtils {
static final TestRule acquireHostListRule = (base, description) -> {
assumeTrue(!TestUtils.isAcquireHostList());
return base;
};
Expand Down