Skip to content

Commit 6a52043

Browse files
committed
Moving/removing some comments between imports
Some of these comments are no longer needed Moving the other comments to satisfy ktlint's latest import ordering rule Bug: 276953541 Test: Treehugger runs busytown/*.sh Change-Id: I5389fae761979acbd34d35b090b9656b8f588cbd
1 parent 619665a commit 6a52043

File tree

9 files changed

+16
-23
lines changed

9 files changed

+16
-23
lines changed

bluetooth/integration-tests/testapp/src/main/java/androidx/bluetooth/integration/testapp/ui/scanner/ScannerFragment.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
package androidx.bluetooth.integration.testapp.ui.scanner
1818

19+
// TODO(ofy) Migrate from androidx.bluetooth.integration.testapp.experimental.BluetoothLe to
20+
// androidx.bluetooth.BluetoothDevice once in place
21+
// TODO(ofy) Migrate from androidx.bluetooth.integration.testapp.experimental.BluetoothLe to
22+
// androidx.bluetooth.BluetoothLe once scan API is in place
1923
import android.bluetooth.le.ScanResult
2024
import android.bluetooth.le.ScanSettings
2125
import android.os.Bundle
@@ -28,8 +32,6 @@ import android.widget.TextView
2832
import androidx.bluetooth.integration.testapp.R
2933
import androidx.bluetooth.integration.testapp.databinding.FragmentScannerBinding
3034
import android.annotation.SuppressLint
31-
// TODO(ofy) Migrate to androidx.bluetooth.BluetoothDevice once in place
32-
// TODO(ofy) Migrate to androidx.bluetooth.BluetoothLe once scan API is in place
3335
import androidx.bluetooth.integration.testapp.experimental.BluetoothLe
3436
import androidx.bluetooth.integration.testapp.ui.common.getColor
3537
import androidx.core.view.isVisible

compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/DerivedState.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ import androidx.compose.runtime.snapshots.current
2727
import androidx.compose.runtime.snapshots.newWritableRecord
2828
import androidx.compose.runtime.snapshots.sync
2929
import androidx.compose.runtime.snapshots.withCurrent
30-
// Explicit imports for these needed in common source sets.
31-
import kotlin.jvm.JvmName
3230
import kotlin.jvm.JvmMultifileClass
31+
import kotlin.jvm.JvmName
3332
import kotlin.math.min
3433

3534
/**

compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/ProduceState.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
@file:JvmMultifileClass
1919
package androidx.compose.runtime
2020

21-
import kotlinx.coroutines.CoroutineScope
22-
import kotlinx.coroutines.suspendCancellableCoroutine
2321
import kotlin.coroutines.CoroutineContext
24-
// Explicit imports for these needed in common source sets.
25-
import kotlin.jvm.JvmName
2622
import kotlin.jvm.JvmMultifileClass
23+
import kotlin.jvm.JvmName
24+
import kotlinx.coroutines.CoroutineScope
25+
import kotlinx.coroutines.suspendCancellableCoroutine
2726

2827
/**
2928
* Receiver scope for use with [produceState].

compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/SnapshotFlow.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@
1919
package androidx.compose.runtime
2020

2121
import androidx.compose.runtime.snapshots.Snapshot
22+
import kotlin.coroutines.CoroutineContext
23+
import kotlin.coroutines.EmptyCoroutineContext
24+
import kotlin.jvm.JvmMultifileClass
25+
import kotlin.jvm.JvmName
2226
import kotlinx.coroutines.channels.Channel
2327
import kotlinx.coroutines.flow.Flow
2428
import kotlinx.coroutines.flow.StateFlow
2529
import kotlinx.coroutines.flow.collect
2630
import kotlinx.coroutines.flow.flow
2731
import kotlinx.coroutines.withContext
28-
import kotlin.coroutines.CoroutineContext
29-
import kotlin.coroutines.EmptyCoroutineContext
30-
// Explicit imports for these needed in common source sets.
31-
import kotlin.jvm.JvmName
32-
import kotlin.jvm.JvmMultifileClass
3332

3433
/**
3534
* Collects values from this [StateFlow] and represents its latest value via [State].

compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/SnapshotMutationPolicy.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
@file:JvmMultifileClass
1919
package androidx.compose.runtime
2020

21+
import androidx.compose.runtime.internal.JvmDefaultWithCompatibility
2122
import androidx.compose.runtime.snapshots.MutableSnapshot
22-
// Explicit imports for these needed in common source sets.
23-
import kotlin.jvm.JvmName
2423
import kotlin.jvm.JvmMultifileClass
25-
import androidx.compose.runtime.internal.JvmDefaultWithCompatibility
24+
import kotlin.jvm.JvmName
2625

2726
/**
2827
* A policy to control how the result of [mutableStateOf] report and merge changes to

compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/SnapshotState.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ import androidx.compose.runtime.snapshots.StateRecord
2727
import androidx.compose.runtime.snapshots.overwritable
2828
import androidx.compose.runtime.snapshots.readable
2929
import androidx.compose.runtime.snapshots.withCurrent
30-
// Explicit imports for jvm annotations needed in common source sets.
31-
import kotlin.jvm.JvmName
3230
import kotlin.jvm.JvmMultifileClass
31+
import kotlin.jvm.JvmName
3332
import kotlin.reflect.KProperty
3433

3534
/**

compose/ui/ui-graphics/src/skikoMain/kotlin/androidx/compose/ui/graphics/SkiaBackedCanvas.skiko.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import org.jetbrains.skia.SamplingMode
3232
import org.jetbrains.skia.ClipMode as SkClipMode
3333
import org.jetbrains.skia.RRect as SkRRect
3434
import org.jetbrains.skia.Rect as SkRect
35-
// Using skiko use as it has versions for all mpp platforms
3635
import org.jetbrains.skia.impl.use
3736

3837
actual typealias NativeCanvas = org.jetbrains.skia.Canvas

navigation/navigation-dynamic-features-runtime/src/androidTest/java/androidx/navigation/dynamicfeatures/DynamicActivityNavigatorTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import org.junit.Rule
3131
import org.junit.Test
3232
import org.junit.runner.RunWith
3333
import org.mockito.Mockito.mock
34-
/* ktlint-disable no-unused-imports */ // https://github.com/pinterest/ktlint/issues/937
3534
import org.mockito.Mockito.`when` as mockWhen
3635

3736
/* ktlint-enable unused-imports */

navigation/navigation-dynamic-features-runtime/src/test/java/androidx/navigation/dynamicfeatures/DynamicInstallManagerTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ import com.google.common.truth.Truth.assertThat
2222
import org.junit.Test
2323
import org.junit.runner.RunWith
2424
import org.junit.runners.JUnit4
25-
/* ktlint-disable no-unused-imports */ // https://github.com/pinterest/ktlint/issues/937
26-
import org.mockito.Mockito.`when` as mockWhen
27-
/* ktlint-enable unused-imports */
2825
import org.mockito.Mockito.mock
2926
import org.mockito.Mockito.spy
27+
import org.mockito.Mockito.`when` as mockWhen
3028

3129
@RunWith(JUnit4::class)
3230
public class DynamicInstallManagerTest {

0 commit comments

Comments
 (0)