Skip to content

Commit d36aa68

Browse files
author
a-brandt
committed
fixed sonarlint issue
1 parent a9657ae commit d36aa68

File tree

3 files changed

+46
-38
lines changed

3 files changed

+46
-38
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public class CollectionOptions {
6868
private List<String> shardKeys;
6969

7070
public CollectionOptions() {
71+
// do nothing here
7172
}
7273

7374
public Boolean getWaitForSync() {

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

Lines changed: 44 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -27,46 +27,52 @@
2727
*/
2828
public enum CollectionStatus {
2929

30-
/**
31-
* initial state of a new collection
32-
*/
33-
NEW_BORN_COLLECTION(1),
30+
/**
31+
* initial state of a new collection
32+
*/
33+
NEW_BORN_COLLECTION(1),
3434

35-
/**
36-
* collection is not in memory
37-
*/
38-
UNLOADED(2),
35+
/**
36+
* collection is not in memory
37+
*/
38+
UNLOADED(2),
3939

40-
/**
41-
* collection is in memory
42-
*/
43-
LOADED(3),
40+
/**
41+
* collection is in memory
42+
*/
43+
LOADED(3),
4444

45-
/**
46-
* temporary state of a collection in the process of being unloaded
47-
*/
48-
IN_THE_PROCESS_OF_BEING_UNLOADED(4),
45+
/**
46+
* temporary state of a collection in the process of being unloaded
47+
*/
48+
IN_THE_PROCESS_OF_BEING_UNLOADED(4),
4949

50-
/**
51-
* deleted state
52-
*/
53-
DELETED(5)
54-
;
55-
56-
private static class Holder implements Serializable {
57-
private static final long serialVersionUID = -7016368432042468015L;
58-
private static TreeMap<Integer, CollectionStatus> lookupMap = new TreeMap<Integer, CollectionStatus>();
59-
}
60-
61-
private final int status;
62-
private CollectionStatus(int status) {
63-
this.status = status;
64-
Holder.lookupMap.put(status, this);
65-
}
66-
public int status() {
67-
return status;
68-
}
69-
public static CollectionStatus valueOf(int status) {
70-
return Holder.lookupMap.get(status);
71-
}
50+
/**
51+
* deleted state
52+
*/
53+
DELETED(5);
54+
55+
private static class Holder implements Serializable {
56+
private static final long serialVersionUID = -7016368432042468015L;
57+
private static TreeMap<Integer, CollectionStatus> lookupMap = new TreeMap<Integer, CollectionStatus>();
58+
59+
private Holder() {
60+
// do nothing here
61+
}
62+
}
63+
64+
private final int status;
65+
66+
private CollectionStatus(int status) {
67+
this.status = status;
68+
Holder.lookupMap.put(status, this);
69+
}
70+
71+
public int status() {
72+
return status;
73+
}
74+
75+
public static CollectionStatus valueOf(int status) {
76+
return Holder.lookupMap.get(status);
77+
}
7278
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class WarningEntity {
3232
String message;
3333

3434
public WarningEntity() {
35+
// do nothing here
3536
}
3637

3738
public WarningEntity(Long code, String message) {

0 commit comments

Comments
 (0)