Closed
Bug 1529204
Opened 6 years ago
Closed 6 years ago
Fix warnings triggered when building glean and sample-glean
Categories
(Toolkit :: Telemetry, enhancement, P3)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox67 | --- | affected |
People
(Reporter: Dexter, Assigned: mdroettboom)
References
Details
(Whiteboard: [telemetry:mobilesdk:backlog])
Attachments
(2 files)
Building glean and the companion sample app produces a bunch of warnings that should be fix. This bug is for dealing with them.
Reporter | ||
Updated•6 years ago
|
Priority: -- → P3
Whiteboard: [telemetry:mobilesdk:m?]
Reporter | ||
Updated•6 years ago
|
Whiteboard: [telemetry:mobilesdk:m?] → [telemetry:mobilesdk:backlog]
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → mdroettboom
Assignee | ||
Comment 1•6 years ago
•
|
||
The warnings on master as of right now:
> Task :service-glean:compileDebugKotlin
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/BooleanMetricType.kt: (47, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/BooleanMetricType.kt: (47, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/CounterMetricType.kt: (60, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/CounterMetricType.kt: (60, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/DatetimeMetricType.kt: (49, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/DatetimeMetricType.kt: (49, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/DatetimeMetricType.kt: (74, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/DatetimeMetricType.kt: (74, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/EventMetricType.kt: (105, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/EventMetricType.kt: (105, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/Glean.kt: (231, 29): 'versionCode: Int' is deprecated. Deprecated in Java
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/LabeledMetricType.kt: (132, 68): Unchecked cast: BooleanMetricType to T
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/LabeledMetricType.kt: (133, 68): Unchecked cast: CounterMetricType to T
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/LabeledMetricType.kt: (134, 69): Unchecked cast: DatetimeMetricType to T
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/LabeledMetricType.kt: (135, 71): Unchecked cast: StringListMetricType to T
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/LabeledMetricType.kt: (136, 67): Unchecked cast: StringMetricType to T
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/LabeledMetricType.kt: (137, 69): Unchecked cast: TimespanMetricType to T
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/LabeledMetricType.kt: (138, 65): Unchecked cast: UuidMetricType to T
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/StringListMetricType.kt: (73, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/StringListMetricType.kt: (73, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/StringListMetricType.kt: (108, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/StringListMetricType.kt: (108, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/StringMetricType.kt: (68, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/StringMetricType.kt: (68, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/UuidMetricType.kt: (66, 18): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/UuidMetricType.kt: (66, 30): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/error/ErrorRecording.kt: (87, 9): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/error/ErrorRecording.kt: (87, 21): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/ping/BaselinePing.kt: (16, 29): Parameter 'applicationContext' is never used
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/storages/StorageEngineManager.kt: (141, 63): No cast needed
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/storages/StorageEngineManager.kt: (142, 63): No cast needed
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/storages/StorageEngineManager.kt: (143, 65): No cast needed
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/storages/StorageEngineManager.kt: (144, 69): No cast needed
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/storages/StorageEngineManager.kt: (145, 61): No cast needed
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/storages/StorageEngineManager.kt: (146, 65): No cast needed
w: android-components/components/service/glean/src/main/java/mozilla/components/service/glean/storages/StorageEngineManager.kt: (147, 57): No cast needed
> Task :service-glean:compileDebugUnitTestKotlin
w: android-components/components/service/glean/src/test/java/mozilla/components/service/glean/DispatchersTest.kt: (23, 13): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/test/java/mozilla/components/service/glean/DispatchersTest.kt: (23, 25): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ObsoleteCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)'
w: android-components/components/service/glean/src/test/java/mozilla/components/service/glean/debug/GleanDebugActivityTest.kt: (38, 22): 'addResolveInfoForIntent(Intent!, ResolveInfo!): Unit' is deprecated. Deprecated in Java
w: android-components/components/service/glean/src/test/java/mozilla/components/service/glean/ping/PingMakerTest.kt: (142, 53): 'application: Application!' is deprecated. Deprecated in Java
w: android-components/components/service/glean/src/test/java/mozilla/components/service/glean/scheduler/MetricsPingSchedulerTest.kt: (22, 80): 'application: Application!' is deprecated. Deprecated in Java
w: android-components/components/service/glean/src/test/java/mozilla/components/service/glean/storages/EventsStorageEngineTest.kt: (29, 27): This declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ExperimentalCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.ExperimentalCoroutinesApi::class)'
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•6 years ago
|
||
Reopening, since some of these warnings have returned.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Status: REOPENED → RESOLVED
Closed: 6 years ago → 6 years ago
Resolution: --- → FIXED
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•