Skip to content

Commit ec69615

Browse files
author
Achim Brandt
committed
fixed warnings
1 parent d9cd605 commit ec69615

30 files changed

+730
-689
lines changed

src/main/java/com/arangodb/ArangoConfigure.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ public int getProxyPort() {
402402
* Don't use this method. Please use {@link #setArangoHost(ArangoHost)
403403
* setArangoHost}
404404
*
405-
* @deprecated
406-
* @param port
405+
* @param clientPort
407406
* the port number
407+
* @deprecated
408408
*/
409409
@Deprecated
410410
public void setClinetPort(int clientPort) {

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

Lines changed: 142 additions & 148 deletions
Large diffs are not rendered by default.

src/main/java/com/arangodb/ArangoException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public ArangoException() {
3131
}
3232

3333
public ArangoException(BaseEntity entity) {
34-
super((entity.getErrorNumber() == 0 ? "" : "[" + entity.getErrorNumber() + "]") + entity.getErrorMessage());
34+
super((entity.getErrorNumber() == 0 ? "" : "[" + entity.getErrorNumber() + "] ") + entity.getErrorMessage());
3535
this.entity = entity;
3636
}
3737

src/main/java/com/arangodb/BaseArangoDriver.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ protected void validateDocumentHandle(String documentHandle) throws ArangoExcept
9292
* @param database
9393
* @param allowNull
9494
* @throws ArangoException
95-
* @see http
96-
* ://www.arangodb.com/manuals/current/NamingConventions.html#DatabaseNames
95+
* @see <a
96+
* href="http://www.arangodb.com/manuals/current/NamingConventions.html#DatabaseNames">DatabaseNames
97+
* documentation</a>
9798
*/
9899
protected void validateDatabaseName(String database, boolean allowNull) throws ArangoException {
99100
boolean valid = false;
@@ -169,12 +170,17 @@ protected ReplicationDumpHeader toReplicationDumpHeader(HttpResponseEntity res)
169170
}
170171

171172
/**
172-
* HTTPレスポンスから指定した型へ変換する。 レスポンスがエラーであるかを確認して、エラーの場合は例外を投げる。
173+
* Creates an entity object
173174
*
174175
* @param res
175-
* @param type
176+
* the response of the database
177+
* @param clazz
178+
* the class of the entity object
179+
* @param pclazz
180+
* the class of the object wrapped in the entity object
176181
* @param validate
177-
* @return
182+
* true for validation
183+
* @return the result entity object of class T (T extends BaseEntity)
178184
* @throws ArangoException
179185
*/
180186
protected <T extends BaseEntity> T createEntity(

src/main/java/com/arangodb/InternalCursorDriver.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,22 @@ <T, S extends DocumentEntity<T>> DocumentCursorResult<T, S> executeBaseCursorQue
5151
* Get the shortest path from a vertex to another vertex
5252
*
5353
* @param database
54+
* the database name
5455
* @param graphName
56+
* the graph name
5557
* @param startVertexExample
58+
* a start vertex example object (or null)
5659
* @param endVertexExample
60+
* a start vertex example object (or null)
5761
* @param shortestPathOptions
62+
* shortest path options
5863
* @param aqlQueryOptions
64+
* AQL query options
5965
* @param vertexClass
66+
* the vertex class
6067
* @param edgeClass
61-
* @return
68+
* the edge class
69+
* @return a ShortestPathEntity object
6270
* @throws ArangoException
6371
*/
6472
public <V, E> ShortestPathEntity<V, E> getShortesPath(

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <T> VertexEntity<T> createVertex(
250250
* @param clazz
251251
* @param ifMatchRevision
252252
* @param ifNoneMatchRevision
253-
* @return
253+
* @return a VertexEntity object
254254
* @throws ArangoException
255255
*/
256256
<T> VertexEntity<T> getVertex(
@@ -301,7 +301,7 @@ <T> VertexEntity<T> replaceVertex(
301301
* @param waitForSync
302302
* @param ifMatchRevision
303303
* @param ifNoneMatchRevision
304-
* @return
304+
* @return a VertexEntity object
305305
* @throws ArangoException
306306
*/
307307
<T> VertexEntity<T> updateVertex(
@@ -326,7 +326,7 @@ <T> VertexEntity<T> updateVertex(
326326
* @param waitForSync
327327
* @param ifMatchRevision
328328
* @param ifNoneMatchRevision
329-
* @return
329+
* @return a DeletedEntity object
330330
* @throws ArangoException
331331
*/
332332
DeletedEntity deleteVertex(
@@ -349,7 +349,7 @@ DeletedEntity deleteVertex(
349349
* @param toHandle
350350
* @param value
351351
* @param waitForSync
352-
* @return <T> EdgeEntity<T>
352+
* @return a EdgeEntity object
353353
* @throws ArangoException
354354
*/
355355
<T> EdgeEntity<T> createEdge(
@@ -370,10 +370,9 @@ <T> EdgeEntity<T> createEdge(
370370
* @param edgeCollectionName
371371
* @param key
372372
* @param clazz
373-
* @param rev
374373
* @param ifNoneMatchRevision
375374
* @param ifMatchRevision
376-
* @return <T> EdgeEntity<T>
375+
* @return a EdgeEntity object
377376
* @throws ArangoException
378377
*/
379378
<T> EdgeEntity<T> getEdge(
@@ -474,7 +473,7 @@ <T> EdgeEntity<T> updateEdge(
474473
* @param labels
475474
* @param driver
476475
* @param properties
477-
* @return
476+
* @return a CursorEntity object
478477
* @throws ArangoException
479478
*/
480479
@Deprecated

src/main/java/com/arangodb/entity/Direction.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
*
2222
* @author tamtam180 - kirscheless at gmail.com
2323
*
24-
* @Deprecated As of release 2.5.4, replaced by {@link com.arangodb.Direction}
24+
* @deprecated As of release 2.5.4, replaced by {@link com.arangodb.Direction}
2525
*
2626
*/
2727
@Deprecated
2828
public enum Direction {
29-
ANY, IN, OUT
29+
ANY,
30+
IN,
31+
OUT
3032
}

src/main/java/com/arangodb/entity/EdgeDefinitionsEntity.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6-
import com.arangodb.ArangoException;
7-
86
public class EdgeDefinitionsEntity {
97

108
/**
@@ -40,7 +38,7 @@ public int getSize() {
4038
/**
4139
* get all edge definitions
4240
*
43-
* @return
41+
* @return a list of EdgeDefinitionEntity objects
4442
*/
4543
public List<EdgeDefinitionEntity> getEdgeDefinitions() {
4644
return edgeDefinitions;
@@ -62,7 +60,6 @@ public void setEdgeDefinitions(List<EdgeDefinitionEntity> edgeDefinitions) {
6260
*
6361
* @param edgeDefinition
6462
* the edge definition to be added
65-
* @throws ArangoException
6663
*/
6764
public void addEdgeDefinition(EdgeDefinitionEntity edgeDefinition) {
6865
if (!this.edgeCollections.contains(edgeDefinition.getCollection())) {

src/main/java/com/arangodb/entity/EntityDeserializers.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ public static class DeserializeSingleEntry {
641641
* desirializes any jsonElement
642642
*
643643
* @param jsonElement
644-
* @return
644+
* @return a object
645645
*/
646646
public static Object deserializeJsonElement(JsonElement jsonElement) {
647647
if (jsonElement.getClass() == JsonPrimitive.class) {
@@ -1908,7 +1908,6 @@ public EdgeEntity<?> deserialize(JsonElement json, Type typeOfT, JsonDeserializa
19081908
}
19091909

19101910
public static class TraversalEntityDeserializer implements JsonDeserializer<TraversalEntity<?, ?>> {
1911-
@SuppressWarnings("unchecked")
19121911
@Override
19131912
public TraversalEntity<?, ?> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
19141913
throws JsonParseException {

src/main/java/com/arangodb/entity/EntityFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public static <T> String toJsonString(T obj, boolean includeNullValue) {
195195
/**
196196
* @param obj
197197
* @param includeNullValue
198-
* @return
198+
* @return a JsonElement object
199199
* @since 1.4.0
200200
*/
201201
public static <T> JsonElement toJsonElement(T obj, boolean includeNullValue) {

0 commit comments

Comments
 (0)