Skip to content

Commit 0b11acc

Browse files
committed
anticipating FindBugs warnings : fixed field visibility + using immutable state contructor parameter
1 parent 5807731 commit 0b11acc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

org.ektorp/src/test/java/org/ektorp/http/BulkTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public void doUpdateInBulkWithManyElements(CouchDbConnector db) {
219219

220220
for (int i = 0; i < elementsCount; i++) {
221221
String currentId = "TestDocumentBean-" + i;
222-
TestDocumentBean bean = new TestDocumentBean(RandomStringUtils.randomAlphanumeric(32), RandomStringUtils.randomAlphanumeric(16), new Date(), 0);
222+
TestDocumentBean bean = new TestDocumentBean(RandomStringUtils.randomAlphanumeric(32), RandomStringUtils.randomAlphanumeric(16), System.currentTimeMillis(), 0);
223223
String currentRevision = currentRevisionById.get(currentId);
224224
if (currentRevision != null) {
225225
bean.setId(currentId);
@@ -314,16 +314,16 @@ public void doUpdateInBulkWithOneSmallInputStream(CouchDbConnector db) throws Ex
314314

315315

316316
public static class TestDocumentBean extends CouchDbDocument {
317-
public String lastName;
318-
public String firstName;
319-
public Date dateOfBirth;
320-
public int version;
317+
private String lastName;
318+
private String firstName;
319+
private Long dateOfBirth;
320+
private int version;
321321

322322
public TestDocumentBean() {
323323

324324
}
325325

326-
public TestDocumentBean(String lastName, String firstName, Date dateOfBirth, int version) {
326+
public TestDocumentBean(String lastName, String firstName, Long dateOfBirth, int version) {
327327
this.lastName = lastName;
328328
this.firstName = firstName;
329329
this.dateOfBirth = dateOfBirth;

0 commit comments

Comments
 (0)