| commit | 7293a504f23963f77d5edc0db2ec102bd9900504 | [log] [tgz] |
|---|---|---|
| author | paulhu <paulhu@google.com> | Fri May 29 00:29:22 2020 +0800 |
| committer | paulhu <paulhu@google.com> | Fri May 29 00:29:22 2020 +0800 |
| tree | 7438100639354633d2ca0f73a4170ef7c8d04693 | |
| parent | ff2641428fbe9f7766f8ab901680c9bb7524f005 [diff] |
Use Class#getSimpleName instead of KClass#getSimpleName KClass#getSimpleName need refer to kotlin-reflect.jar which need include it in Andorid.bp. However, it's not necessary to use KClass#getSimpleName but use Class#getSimpleName instead. Test: atest TetheringTests Bug: 157527499 Change-Id: I49bc336a276d30152402eba926cc583bc81e8e5c Merged-In: I49bc336a276d30152402eba926cc583bc81e8e5c
diff --git a/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringNotificationUpdaterTest.kt b/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringNotificationUpdaterTest.kt index 745468f..7d5471f 100644 --- a/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringNotificationUpdaterTest.kt +++ b/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringNotificationUpdaterTest.kt
@@ -130,7 +130,7 @@ context = TestContext(InstrumentationRegistry.getInstrumentation().context) doReturn(notificationManager).`when`(mockContext) .getSystemService(Context.NOTIFICATION_SERVICE) - fakeTetheringThread = HandlerThread(this::class.simpleName) + fakeTetheringThread = HandlerThread(this::class.java.simpleName) fakeTetheringThread.start() notificationUpdater = WrappedNotificationUpdater(context, fakeTetheringThread.looper) setupResources()