Fix warnings in CacheExporter

Signed-off-by: Graham <gpe@openrs2.org>
Graham 3 years ago
parent 09d3b6dbbf
commit 20868a39ad
  1. 4
      archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt

@ -165,9 +165,9 @@ public class CacheExporter @Inject constructor(
while (rows.next()) { while (rows.next()) {
val id = rows.getInt(1) val id = rows.getInt(1)
val game = rows.getString(2) val game = rows.getString(2)
val builds = rows.getArray(3).array as Array<Any> val builds = rows.getArray(3).array as Array<*>
val timestamp = rows.getTimestamp(4)?.toInstant() val timestamp = rows.getTimestamp(4)?.toInstant()
val names = rows.getArray(5).array as Array<String> @Suppress("UNCHECKED_CAST") val names = rows.getArray(5).array as Array<String>
val validIndexes = rows.getLong(6) val validIndexes = rows.getLong(6)
val stats = if (!rows.wasNull()) { val stats = if (!rows.wasNull()) {

Loading…
Cancel
Save