Skip to content

Commit 56f8a27

Browse files
Kotlin coding conventions places companion object at the bottom of the class
1 parent a9083d7 commit 56f8a27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/network/src/main/java/com/google/samples/apps/nowinandroid/core/network/fake/FakeNiaNetworkDataSource.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ class FakeNiaNetworkDataSource @Inject constructor(
3939
private val assets: FakeAssetManager = JvmUnitTestFakeAssetManager,
4040
) : NiaNetworkDataSource {
4141

42-
companion object {
43-
private const val NEWS_ASSET = "news.json"
44-
private const val TOPICS_ASSET = "topics.json"
45-
}
46-
4742
@OptIn(ExperimentalSerializationApi::class)
4843
override suspend fun getTopics(ids: List<String>?): List<NetworkTopic> =
4944
withContext(ioDispatcher) {
@@ -61,6 +56,11 @@ class FakeNiaNetworkDataSource @Inject constructor(
6156

6257
override suspend fun getNewsResourceChangeList(after: Int?): List<NetworkChangeList> =
6358
getNewsResources().mapToChangeList(NetworkNewsResource::id)
59+
60+
companion object {
61+
private const val NEWS_ASSET = "news.json"
62+
private const val TOPICS_ASSET = "topics.json"
63+
}
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)