Skip to content

Commit 6aab7cc

Browse files
committed
LogViewerActivity: cast array to Any type instead of using union inference
Type argument for reified type parameter 'T' was inferred to the intersection of ['Comparable<*>' & 'Serializable']. Reification of an intersection type results in the common supertype being used. This may lead to subtle issues and an explicit type argument is encouraged. This will become an error in a future release. Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent e7d9bea commit 6aab7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class LogViewerActivity : AppCompatActivity() {
353353
override fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?): Cursor? =
354354
logForUri(uri)?.let {
355355
val m = MatrixCursor(arrayOf(android.provider.OpenableColumns.DISPLAY_NAME, android.provider.OpenableColumns.SIZE), 1)
356-
m.addRow(arrayOf("wireguard-log.txt", it.size.toLong()))
356+
m.addRow(arrayOf<Any>("wireguard-log.txt", it.size.toLong()))
357357
m
358358
}
359359

0 commit comments

Comments
 (0)