Skip to content

Commit

Permalink
Remove unnecessary protected modifier from DateTime and set cursorAft…
Browse files Browse the repository at this point in the history
…er to endCursor where appropriate
  • Loading branch information
Ajay Kannan committed Feb 2, 2016
1 parent 47d5580 commit 8dcbff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ Object fromPb(byte[] bytesPb) throws InvalidProtocolBufferException {
com.google.protobuf.Timestamp.parseFrom(bytesPb)));
}

protected static long timestampPbToMicroseconds(com.google.protobuf.Timestamp timestampPb) {
static long timestampPbToMicroseconds(com.google.protobuf.Timestamp timestampPb) {
return timestampPb.getSeconds() * 1000000 + timestampPb.getNanos() / 1000;
}

protected static com.google.protobuf.Timestamp microsecondsToTimestampPb(long microseconds) {
static com.google.protobuf.Timestamp microsecondsToTimestampPb(long microseconds) {
long seconds = microseconds / 1000000;
int nanos = (int) (microseconds % 1000000) * 1000;
return com.google.protobuf.Timestamp.newBuilder().setSeconds(seconds).setNanos(nanos).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ protected T computeNext() {
sendRequest();
}
if (!entityResultPbIter.hasNext()) {
cursor = runQueryResponsePb.getBatch().getEndCursor();
return endOfData();
}
com.google.datastore.v1beta3.EntityResult entityResultPb = entityResultPbIter.next();
Expand Down

0 comments on commit 8dcbff0

Please sign in to comment.