Skip to content

Commit

Permalink
fix(api): ensure that timestamp and timestampString values are...
Browse files Browse the repository at this point in the history
...not returned when not requested in field selection
  • Loading branch information
cmark committed May 5, 2023
1 parent 6a4c643 commit e42c85e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018-2022 B2i Healthcare Pte Ltd, http://b2i.sg
* Copyright 2018-2023 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -60,7 +60,7 @@ static final class Builder {
private String branch;
private String author;
private String comment;
private long timestamp;
private Long timestamp;
private List<CommitDetail> details;
private String groupId;
private RevisionBranchPoint mergeSource;
Expand All @@ -86,7 +86,7 @@ public Builder comment(final String comment) {
return this;
}

public Builder timestamp(final long timestamp) {
public Builder timestamp(final Long timestamp) {
this.timestamp = timestamp;
return this;
}
Expand Down Expand Up @@ -222,7 +222,7 @@ public static final class Fields {
}
)
private final String comment;
private final long timestamp;
private final Long timestamp;
private final String groupId;
private final List<CommitDetail> details;
private final RevisionBranchPoint mergeSource;
Expand All @@ -238,7 +238,7 @@ private Commit(
final String branch,
final String author,
final String comment,
final long timestamp,
final Long timestamp,
final String groupId,
final List<CommitDetail> details,
final RevisionBranchPoint mergeSource,
Expand Down Expand Up @@ -281,7 +281,7 @@ public String getComment() {
return comment;
}

public long getTimestamp() {
public Long getTimestamp() {
return timestamp;
}

Expand Down

0 comments on commit e42c85e

Please sign in to comment.