Skip to content

Commit a9483cb

Browse files
TestEntity: use common getter style, fix nullable for setExternalId
1 parent d802964 commit a9483cb

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

tests/objectbox-java-test/src/main/java/io/objectbox/TestEntity.java

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -245,65 +245,58 @@ public List<String> getSimpleStringList() {
245245
return simpleStringList;
246246
}
247247

248-
public TestEntity setSimpleStringList(List<String> simpleStringList) {
248+
public void setSimpleStringList(List<String> simpleStringList) {
249249
this.simpleStringList = simpleStringList;
250-
return this;
251250
}
252251

253252
public short getSimpleShortU() {
254253
return simpleShortU;
255254
}
256255

257-
public TestEntity setSimpleShortU(short simpleShortU) {
256+
public void setSimpleShortU(short simpleShortU) {
258257
this.simpleShortU = simpleShortU;
259-
return this;
260258
}
261259

262260
public int getSimpleIntU() {
263261
return simpleIntU;
264262
}
265263

266-
public TestEntity setSimpleIntU(int simpleIntU) {
264+
public void setSimpleIntU(int simpleIntU) {
267265
this.simpleIntU = simpleIntU;
268-
return this;
269266
}
270267

271268
public long getSimpleLongU() {
272269
return simpleLongU;
273270
}
274271

275-
public TestEntity setSimpleLongU(long simpleLongU) {
272+
public void setSimpleLongU(long simpleLongU) {
276273
this.simpleLongU = simpleLongU;
277-
return this;
278274
}
279275

280276
public Map<String, Object> getStringObjectMap() {
281277
return stringObjectMap;
282278
}
283279

284-
public TestEntity setStringObjectMap(Map<String, Object> stringObjectMap) {
280+
public void setStringObjectMap(Map<String, Object> stringObjectMap) {
285281
this.stringObjectMap = stringObjectMap;
286-
return this;
287282
}
288283

289284
@Nullable
290285
public Object getFlexProperty() {
291286
return flexProperty;
292287
}
293288

294-
public TestEntity setFlexProperty(@Nullable Object flexProperty) {
289+
public void setFlexProperty(@Nullable Object flexProperty) {
295290
this.flexProperty = flexProperty;
296-
return this;
297291
}
298292

299293
@Nullable
300294
public boolean[] getBooleanArray() {
301295
return booleanArray;
302296
}
303297

304-
public TestEntity setBooleanArray(@Nullable boolean[] booleanArray) {
298+
public void setBooleanArray(@Nullable boolean[] booleanArray) {
305299
this.booleanArray = booleanArray;
306-
return this;
307300
}
308301

309302
@Nullable
@@ -373,10 +366,8 @@ public byte[] getExternalId() {
373366
return externalId;
374367
}
375368

376-
@Nullable
377-
public TestEntity setExternalId(byte[] externalId) {
369+
public void setExternalId(@Nullable byte[] externalId) {
378370
this.externalId = externalId;
379-
return this;
380371
}
381372

382373
@Override

0 commit comments

Comments
 (0)