Skip to content

Commit b914bb8

Browse files
committed
make Page not implement List
GSON will automatically use the Page as list and ignore all other attributes
1 parent 5d3c662 commit b914bb8

File tree

1 file changed

+1
-1
lines changed
  • kotlin-atlassian-client-core-common/src/main/kotlin/com/linkedplanet/kotlinatlassianclientcore/common/api

1 file changed

+1
-1
lines changed

kotlin-atlassian-client-core-common/src/main/kotlin/com/linkedplanet/kotlinatlassianclientcore/common/api/Page.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ open class Page<T>(
2727
@field:NotNull val totalPages: Int,
2828
@field:NotNull val currentPageIndex: Int,
2929
@field:NotNull val pageSize: Int
30-
) : List<T> by items {
30+
) {
3131
@Suppress("unused") // useful for inheritance by clients
3232
constructor() : this(emptyList<T>(), 0, 0, 0, 1)
3333

0 commit comments

Comments
 (0)