Skip to content

Commit 728a6f0

Browse files
committed
use DurationJavaTime prefix
1 parent f66f830 commit 728a6f0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

google-cloud-datastore/src/main/java/com/google/cloud/datastore/models/ExecutionStats.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ public Map<String, Object> getDebugStats() {
5353
return debugStats;
5454
}
5555

56-
/** This method is obsolete. Use {@link #getExecutionJavaTimeDuration()} instead. */
57-
@ObsoleteApi("Use getExecutionJavaTimeDuration() instead")
56+
/** This method is obsolete. Use {@link #getExecutionDurationJavaTime()} instead. */
57+
@ObsoleteApi("Use getExecutionDurationJavaTime() instead")
5858
public org.threeten.bp.Duration getExecutionDuration() {
59-
return toThreetenDuration(getExecutionJavaTimeDuration());
59+
return toThreetenDuration(getExecutionDurationJavaTime());
6060
}
6161

6262
/** Returns the total time to execute the query in the backend. */
63-
public java.time.Duration getExecutionJavaTimeDuration() {
63+
public java.time.Duration getExecutionDurationJavaTime() {
6464
return executionDuration;
6565
}
6666

google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ private void assertExecutionStats(
674674
Truth.assertThat(debugStats.get("index_entries_scanned"))
675675
.isEqualTo(expectedIndexEntriesScanned);
676676

677-
Duration executionDuration = executionStats.getExecutionJavaTimeDuration();
677+
Duration executionDuration = executionStats.getExecutionDurationJavaTime();
678678
Truth.assertThat(executionDuration).isIn(Range.greaterThan(Duration.ofMillis(0)));
679679

680680
long readOperations = executionStats.getReadOperations();

google-cloud-datastore/src/test/java/com/google/cloud/datastore/models/ExecutionStatsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class ExecutionStatsTest {
4141
@Test
4242
public void testModel() {
4343
Truth.assertThat(executionStats.getDebugStats()).isEqualTo(Structs.asMap(struct));
44-
Truth.assertThat(executionStats.getExecutionJavaTimeDuration())
44+
Truth.assertThat(executionStats.getExecutionDurationJavaTime())
4545
.isEqualTo(java.time.Duration.ofNanos(duration.getNanos()));
4646
Truth.assertThat(executionStats.getReadOperations()).isEqualTo(2);
4747
Truth.assertThat(executionStats.getResultsReturned()).isEqualTo(3);

0 commit comments

Comments
 (0)