[go: nahoru, domu]

Remove by lazy in health/services/client/data directory

There are still some other directories with by lazy usage that
need to be updated but I wanted to start with a more tangible
batch of files while I'm in the learning phase.

RelNote: N/A
Test: ./gradlew :health:health-services-client:test
Bug: 241153311
Bug: 240489206
Change-Id: I61e3115a4a70db51780d4b6f4f1a7c0db6503549
diff --git a/health/health-services-client/src/main/java/androidx/health/services/client/data/HealthEvent.kt b/health/health-services-client/src/main/java/androidx/health/services/client/data/HealthEvent.kt
index 5650cff..19bdd36 100644
--- a/health/health-services-client/src/main/java/androidx/health/services/client/data/HealthEvent.kt
+++ b/health/health-services-client/src/main/java/androidx/health/services/client/data/HealthEvent.kt
@@ -79,13 +79,12 @@
         fromHealthEventProto(proto)
     )
 
-    internal val proto: DataProto.HealthEvent by lazy {
+    internal val proto: DataProto.HealthEvent =
         DataProto.HealthEvent.newBuilder()
             .setType(type.toProto())
             .setEventTimeEpochMs(eventTime.toEpochMilli())
             .addAllMetrics(toEventProtoList(metrics))
             .build()
-    }
 
     override fun equals(other: Any?): Boolean {
         if (this === other) return true