Skip to content

Commit c055e14

Browse files
author
Achim Brandt
committed
issue17: TransactionEntity.ReadWriteCollections is not a static class
1 parent cccb2cb commit c055e14

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

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

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -25,72 +25,72 @@
2525
*/
2626
public class TransactionEntity extends BaseEntity {
2727

28-
public class ReadWriteCollections {
28+
public static class ReadWriteCollections {
2929

30-
List<String> read = new ArrayList<String>();
30+
List<String> read = new ArrayList<String>();
3131

32-
List<String> write = new ArrayList<String>();
33-
}
32+
List<String> write = new ArrayList<String>();
33+
}
3434

35-
ReadWriteCollections collections = new ReadWriteCollections();
35+
ReadWriteCollections collections = new ReadWriteCollections();
3636

37-
String action;
37+
String action;
3838

39-
Boolean waitForSync;
39+
Boolean waitForSync;
4040

41-
int lockTimeout;
41+
int lockTimeout;
4242

43-
Object params;
43+
Object params;
4444

45-
public TransactionEntity(String action) {
46-
this.action = action;
47-
}
45+
public TransactionEntity(String action) {
46+
this.action = action;
47+
}
4848

49-
public ReadWriteCollections getCollections() {
50-
return collections;
51-
}
49+
public ReadWriteCollections getCollections() {
50+
return collections;
51+
}
5252

53-
public void setCollections(ReadWriteCollections collections) {
54-
this.collections = collections;
55-
}
53+
public void setCollections(ReadWriteCollections collections) {
54+
this.collections = collections;
55+
}
5656

57-
public void addReadCollection(String collection) {
58-
this.collections.read.add(collection);
59-
}
57+
public void addReadCollection(String collection) {
58+
this.collections.read.add(collection);
59+
}
6060

61-
public void addWriteCollection(String collection) {
62-
this.collections.write.add(collection);
63-
}
61+
public void addWriteCollection(String collection) {
62+
this.collections.write.add(collection);
63+
}
6464

65-
public String getAction() {
66-
return action;
67-
}
65+
public String getAction() {
66+
return action;
67+
}
6868

69-
public void setAction(String action) {
70-
this.action = action;
71-
}
69+
public void setAction(String action) {
70+
this.action = action;
71+
}
7272

73-
public Boolean getWaitForSync() {
74-
return waitForSync;
75-
}
73+
public Boolean getWaitForSync() {
74+
return waitForSync;
75+
}
7676

77-
public void setWaitForSync(Boolean waitForSync) {
78-
this.waitForSync = waitForSync;
79-
}
77+
public void setWaitForSync(Boolean waitForSync) {
78+
this.waitForSync = waitForSync;
79+
}
8080

81-
public int getLockTimeout() {
82-
return lockTimeout;
83-
}
81+
public int getLockTimeout() {
82+
return lockTimeout;
83+
}
8484

85-
public void setLockTimeout(int lockTimeout) {
86-
this.lockTimeout = lockTimeout;
87-
}
85+
public void setLockTimeout(int lockTimeout) {
86+
this.lockTimeout = lockTimeout;
87+
}
8888

89-
public Object getParams() {
90-
return params;
91-
}
89+
public Object getParams() {
90+
return params;
91+
}
9292

93-
public void setParams(Object params) {
94-
this.params = params;
95-
}
93+
public void setParams(Object params) {
94+
this.params = params;
95+
}
9696
}

0 commit comments

Comments
 (0)