1<?xml version="1.0" encoding="UTF-8"?> 2<issues format="6" by="lint 8.10.0-alpha07" type="baseline" client="gradle" dependencies="false" name="AGP (8.10.0-alpha07)" variant="all" version="8.10.0-alpha07"> 3 4 <issue 5 id="BanThreadSleep" 6 message="Uses Thread.sleep()" 7 errorLine1=" Thread.sleep(5000)" 8 errorLine2=" ~~~~~"> 9 <location 10 file="src/androidTest/kotlin/androidx/glance/appwidget/AppWidgetHostRule.kt"/> 11 </issue> 12 13 <issue 14 id="BanThreadSleep" 15 message="Uses Thread.sleep()" 16 errorLine1=" Thread.sleep(500)" 17 errorLine2=" ~~~~~"> 18 <location 19 file="src/androidTest/kotlin/androidx/glance/appwidget/AppWidgetHostRule.kt"/> 20 </issue> 21 22 <issue 23 id="BanThreadSleep" 24 message="Uses Thread.sleep()" 25 errorLine1=" Thread.sleep(sleepMs)" 26 errorLine2=" ~~~~~"> 27 <location 28 file="src/androidTest/kotlin/androidx/glance/appwidget/CoroutineBroadcastReceiverTest.kt"/> 29 </issue> 30 31 <issue 32 id="UnspecifiedRegisterReceiverFlag" 33 message="`broadcastReceiver` is missing `RECEIVER_EXPORTED` or `RECEIVER_NOT_EXPORTED` flag for unprotected broadcasts registered for androidx.glance.appwidget.utils.TEST_ACTION" 34 errorLine1=" context.registerReceiver(" 35 errorLine2=" ^"> 36 <location 37 file="src/androidTest/kotlin/androidx/glance/appwidget/CoroutineBroadcastReceiverTest.kt"/> 38 </issue> 39 40 <issue 41 id="ListIterator" 42 message="Creating an unnecessary Iterator to iterate through a List" 43 errorLine1=" it.children.addAll(children.map { it.copy() })" 44 errorLine2=" ~~~"> 45 <location 46 file="src/main/java/androidx/glance/appwidget/AndroidRemoteViews.kt"/> 47 </issue> 48 49 <issue 50 id="ListIterator" 51 message="Creating an unnecessary Iterator to iterate through a List" 52 errorLine1=" Snapshot.withMutableSnapshot { lambdas[event.key]?.forEach { it.block() } }" 53 errorLine2=" ~~~~~~~"> 54 <location 55 file="src/main/java/androidx/glance/appwidget/AppWidgetSession.kt"/> 56 </issue> 57 58 <issue 59 id="ListIterator" 60 message="Creating an unnecessary Iterator to iterate through a List" 61 errorLine1=" rv.setContentDescription(viewDef.mainViewId, contentDescription.joinToString())" 62 errorLine2=" ~~~~~~~~~~~~"> 63 <location 64 file="src/main/java/androidx/glance/appwidget/ApplyModifiers.kt"/> 65 </issue> 66 67 <issue 68 id="ListIterator" 69 message="Creating an unnecessary Iterator to iterate through a List" 70 errorLine1=" manager.getGlanceIds(javaClass).forEach { update(context, it) }" 71 errorLine2=" ~~~~~~~"> 72 <location 73 file="src/main/java/androidx/glance/appwidget/GlanceAppWidget.kt"/> 74 </issue> 75 76 <issue 77 id="ListIterator" 78 message="Creating an unnecessary Iterator to iterate through a List" 79 errorLine1=" manager.getGlanceIds(javaClass).forEach { glanceId ->" 80 errorLine2=" ~~~~~~~"> 81 <location 82 file="src/main/java/androidx/glance/appwidget/GlanceAppWidget.kt"/> 83 </issue> 84 85 <issue 86 id="ListIterator" 87 message="Creating an unnecessary Iterator to iterate through a List" 88 errorLine1=" .toMap()" 89 errorLine2=" ~~~~~"> 90 <location 91 file="src/main/java/androidx/glance/appwidget/GlanceAppWidgetManager.kt"/> 92 </issue> 93 94 <issue 95 id="ListIterator" 96 message="Creating an unnecessary Iterator to iterate through a List" 97 errorLine1=" return receivers.flatMap { receiver ->" 98 errorLine2=" ~~~~~~~"> 99 <location 100 file="src/main/java/androidx/glance/appwidget/GlanceAppWidgetManager.kt"/> 101 </issue> 102 103 <issue 104 id="ListIterator" 105 message="Creating an unnecessary Iterator to iterate through a List" 106 errorLine1=" appWidgetManager.installedProviders.first { it.provider == target }" 107 errorLine2=" ~~~~~"> 108 <location 109 file="src/main/java/androidx/glance/appwidget/GlanceAppWidgetManager.kt"/> 110 </issue> 111 112 <issue 113 id="ListIterator" 114 message="Creating an unnecessary Iterator to iterate through a List" 115 errorLine1=" appWidgetManager.installedProviders.firstOrNull { it.provider == componentName }" 116 errorLine2=" ~~~~~~~~~~~"> 117 <location 118 file="src/main/java/androidx/glance/appwidget/GlanceAppWidgetManager.kt"/> 119 </issue> 120 121 <issue 122 id="ListIterator" 123 message="Creating an unnecessary Iterator to iterate through a List" 124 errorLine1=" .filter { it.provider.packageName == packageName }" 125 errorLine2=" ~~~~~~"> 126 <location 127 file="src/main/java/androidx/glance/appwidget/GlanceAppWidgetManager.kt"/> 128 </issue> 129 130 <issue 131 id="ListIterator" 132 message="Creating an unnecessary Iterator to iterate through a List" 133 errorLine1=" .map { it.provider.className }" 134 errorLine2=" ~~~"> 135 <location 136 file="src/main/java/androidx/glance/appwidget/GlanceAppWidgetManager.kt"/> 137 </issue> 138 139 <issue 140 id="ListIterator" 141 message="Creating an unnecessary Iterator to iterate through a List" 142 errorLine1=" .toSet()" 143 errorLine2=" ~~~~~"> 144 <location 145 file="src/main/java/androidx/glance/appwidget/GlanceAppWidgetManager.kt"/> 146 </issue> 147 148 <issue 149 id="ListIterator" 150 message="Creating an unnecessary Iterator to iterate through a List" 151 errorLine1=" if (children.any { it.shouldIgnoreResult() }) return true" 152 errorLine2=" ~~~"> 153 <location 154 file="src/main/java/androidx/glance/appwidget/IgnoreResult.kt"/> 155 </issue> 156 157 <issue 158 id="ListIterator" 159 message="Creating an unnecessary Iterator to iterate through a List" 160 errorLine1=" .forEach {" 161 errorLine2=" ~~~~~~~"> 162 <location 163 file="src/main/java/androidx/glance/appwidget/LayoutSelection.kt"/> 164 </issue> 165 166 <issue 167 id="ListIterator" 168 message="Creating an unnecessary Iterator to iterate through a List" 169 errorLine1=" itemList.forEachIndexed { index, (itemId, composable) ->" 170 errorLine2=" ~~~~~~~~~~~~~~"> 171 <location 172 file="src/main/java/androidx/glance/appwidget/lazy/LazyList.kt"/> 173 </issue> 174 175 <issue 176 id="ListIterator" 177 message="Creating an unnecessary Iterator to iterate through a List" 178 errorLine1=" it.children.addAll(children.map { it.copy() })" 179 errorLine2=" ~~~"> 180 <location 181 file="src/main/java/androidx/glance/appwidget/lazy/LazyList.kt"/> 182 </issue> 183 184 <issue 185 id="ListIterator" 186 message="Creating an unnecessary Iterator to iterate through a List" 187 errorLine1=" it.children.addAll(children.map { it.copy() })" 188 errorLine2=" ~~~"> 189 <location 190 file="src/main/java/androidx/glance/appwidget/lazy/LazyList.kt"/> 191 </issue> 192 193 <issue 194 id="ListIterator" 195 message="Creating an unnecessary Iterator to iterate through a List" 196 errorLine1=" .foldIndexed(false) { position, previous, itemEmittable ->" 197 errorLine2=" ~~~~~~~~~~~"> 198 <location 199 file="src/main/java/androidx/glance/appwidget/translators/LazyListTranslator.kt"/> 200 </issue> 201 202 <issue 203 id="ListIterator" 204 message="Creating an unnecessary Iterator to iterate through a List" 205 errorLine1=" itemList.forEachIndexed { index, (itemId, composable) ->" 206 errorLine2=" ~~~~~~~~~~~~~~"> 207 <location 208 file="src/main/java/androidx/glance/appwidget/lazy/LazyVerticalGrid.kt"/> 209 </issue> 210 211 <issue 212 id="ListIterator" 213 message="Creating an unnecessary Iterator to iterate through a List" 214 errorLine1=" it.children.addAll(children.map { it.copy() })" 215 errorLine2=" ~~~"> 216 <location 217 file="src/main/java/androidx/glance/appwidget/lazy/LazyVerticalGrid.kt"/> 218 </issue> 219 220 <issue 221 id="ListIterator" 222 message="Creating an unnecessary Iterator to iterate through a List" 223 errorLine1=" it.children.addAll(children.map { it.copy() })" 224 errorLine2=" ~~~"> 225 <location 226 file="src/main/java/androidx/glance/appwidget/lazy/LazyVerticalGrid.kt"/> 227 </issue> 228 229 <issue 230 id="ListIterator" 231 message="Creating an unnecessary Iterator to iterate through a List" 232 errorLine1=" .foldIndexed(false) { position, previous, itemEmittable ->" 233 errorLine2=" ~~~~~~~~~~~"> 234 <location 235 file="src/main/java/androidx/glance/appwidget/translators/LazyVerticalGridTranslator.kt"/> 236 </issue> 237 238 <issue 239 id="ListIterator" 240 message="Creating an unnecessary Iterator to iterate through a List" 241 errorLine1=" if (container.children.isNotEmpty() && container.children.all { it is EmittableSizeBox }) {" 242 errorLine2=" ~~~"> 243 <location 244 file="src/main/java/androidx/glance/appwidget/NormalizeCompositionTree.kt"/> 245 </issue> 246 247 <issue 248 id="ListIterator" 249 message="Creating an unnecessary Iterator to iterate through a List" 250 errorLine1=" for (item in container.children) {" 251 errorLine2=" ~~"> 252 <location 253 file="src/main/java/androidx/glance/appwidget/NormalizeCompositionTree.kt"/> 254 </issue> 255 256 <issue 257 id="ListIterator" 258 message="Creating an unnecessary Iterator to iterate through a List" 259 errorLine1=" children.forEach { child ->" 260 errorLine2=" ~~~~~~~"> 261 <location 262 file="src/main/java/androidx/glance/appwidget/NormalizeCompositionTree.kt"/> 263 </issue> 264 265 <issue 266 id="ListIterator" 267 message="Creating an unnecessary Iterator to iterate through a List" 268 errorLine1=" children.any { child ->" 269 errorLine2=" ~~~"> 270 <location 271 file="src/main/java/androidx/glance/appwidget/NormalizeCompositionTree.kt"/> 272 </issue> 273 274 <issue 275 id="ListIterator" 276 message="Creating an unnecessary Iterator to iterate through a List" 277 errorLine1=" children.any { child ->" 278 errorLine2=" ~~~"> 279 <location 280 file="src/main/java/androidx/glance/appwidget/NormalizeCompositionTree.kt"/> 281 </issue> 282 283 <issue 284 id="ListIterator" 285 message="Creating an unnecessary Iterator to iterate through a List" 286 errorLine1=" children.forEachIndexed { index, child ->" 287 errorLine2=" ~~~~~~~~~~~~~~"> 288 <location 289 file="src/main/java/androidx/glance/appwidget/NormalizeCompositionTree.kt"/> 290 </issue> 291 292 <issue 293 id="ListIterator" 294 message="Creating an unnecessary Iterator to iterate through a List" 295 errorLine1=" children.foldIndexed(mutableMapOf<String, MutableList<LambdaAction>>()) { index, actions, child" 296 errorLine2=" ~~~~~~~~~~~"> 297 <location 298 file="src/main/java/androidx/glance/appwidget/NormalizeCompositionTree.kt"/> 299 </issue> 300 301 <issue 302 id="ListIterator" 303 message="Creating an unnecessary Iterator to iterate through a List" 304 errorLine1=" fold(GlanceModifier) { acc: GlanceModifier, mod: GlanceModifier? ->" 305 errorLine2=" ~~~~"> 306 <location 307 file="src/main/java/androidx/glance/appwidget/NormalizeCompositionTree.kt"/> 308 </issue> 309 310 <issue 311 id="ListIterator" 312 message="Creating an unnecessary Iterator to iterate through a List" 313 errorLine1=" val layoutIdCount = views.map { it.layoutId }.distinct().count()" 314 errorLine2=" ~~~~~~~~"> 315 <location 316 file="src/main/java/androidx/glance/appwidget/RemoteCollectionItems.kt"/> 317 </issue> 318 319 <issue 320 id="ListIterator" 321 message="Creating an unnecessary Iterator to iterate through a List" 322 errorLine1=" viewTypeCount = views.map { it.layoutId }.distinct().count()" 323 errorLine2=" ~~~"> 324 <location 325 file="src/main/java/androidx/glance/appwidget/RemoteCollectionItems.kt"/> 326 </issue> 327 328 <issue 329 id="ListIterator" 330 message="Creating an unnecessary Iterator to iterate through a List" 331 errorLine1=" viewTypeCount = views.map { it.layoutId }.distinct().count()" 332 errorLine2=" ~~~~~~~~"> 333 <location 334 file="src/main/java/androidx/glance/appwidget/RemoteCollectionItems.kt"/> 335 </issue> 336 337 <issue 338 id="ListIterator" 339 message="Creating an unnecessary Iterator to iterate through a List" 340 errorLine1=" it.children.addAll(children.map { it.copy() })" 341 errorLine2=" ~~~"> 342 <location 343 file="src/main/java/androidx/glance/appwidget/RemoteViewsRoot.kt"/> 344 </issue> 345 346 <issue 347 id="ListIterator" 348 message="Creating an unnecessary Iterator to iterate through a List" 349 errorLine1=" if (children.all { it is EmittableSizeBox }) {" 350 errorLine2=" ~~~"> 351 <location 352 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 353 </issue> 354 355 <issue 356 id="ListIterator" 357 message="Creating an unnecessary Iterator to iterate through a List" 358 errorLine1=" children.map { child ->" 359 errorLine2=" ~~~"> 360 <location 361 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 362 </issue> 363 364 <issue 365 id="ListIterator" 366 message="Creating an unnecessary Iterator to iterate through a List" 367 errorLine1=" Api31Impl.createRemoteViews(views.toMap())" 368 errorLine2=" ~~~~~"> 369 <location 370 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 371 </issue> 372 373 <issue 374 id="ListIterator" 375 message="Creating an unnecessary Iterator to iterate through a List" 376 errorLine1=" combineLandscapeAndPortrait(views.map { it.second })" 377 errorLine2=" ~~~"> 378 <location 379 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 380 </issue> 381 382 <issue 383 id="ListIterator" 384 message="Creating an unnecessary Iterator to iterate through a List" 385 errorLine1=" element.children.forEach {" 386 errorLine2=" ~~~~~~~"> 387 <location 388 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 389 </issue> 390 391 <issue 392 id="ListIterator" 393 message="Creating an unnecessary Iterator to iterate through a List" 394 errorLine1=" check(children.count { it is EmittableRadioButton && it.checked } <= 1) {" 395 errorLine2=" ~~~~~"> 396 <location 397 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 398 </issue> 399 400 <issue 401 id="ListIterator" 402 message="Creating an unnecessary Iterator to iterate through a List" 403 errorLine1=" element.children.forEachIndexed { index, child ->" 404 errorLine2=" ~~~~~~~~~~~~~~"> 405 <location 406 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 407 </issue> 408 409 <issue 410 id="ListIterator" 411 message="Creating an unnecessary Iterator to iterate through a List" 412 errorLine1=" children.take(10).forEachIndexed { index, child ->" 413 errorLine2=" ~~~~"> 414 <location 415 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 416 </issue> 417 418 <issue 419 id="ListIterator" 420 message="Creating an unnecessary Iterator to iterate through a List" 421 errorLine1=" children.take(10).forEachIndexed { index, child ->" 422 errorLine2=" ~~~~~~~~~~~~~~"> 423 <location 424 file="src/main/java/androidx/glance/appwidget/RemoteViewsTranslator.kt"/> 425 </issue> 426 427 <issue 428 id="ListIterator" 429 message="Creating an unnecessary Iterator to iterate through a List" 430 errorLine1=" it.children.addAll(children.map { it.copy() })" 431 errorLine2=" ~~~"> 432 <location 433 file="src/main/java/androidx/glance/appwidget/SizeBox.kt"/> 434 </issue> 435 436 <issue 437 id="ListIterator" 438 message="Creating an unnecessary Iterator to iterate through a List" 439 errorLine1=" .map { findBestSize(it, sizeMode.sizes) ?: smallestSize }" 440 errorLine2=" ~~~"> 441 <location 442 file="src/main/java/androidx/glance/appwidget/SizeBox.kt"/> 443 </issue> 444 445 <issue 446 id="ListIterator" 447 message="Creating an unnecessary Iterator to iterate through a List" 448 errorLine1=" sizes.distinct().map { size -> SizeBox(size, sizeMode, content) }" 449 errorLine2=" ~~~"> 450 <location 451 file="src/main/java/androidx/glance/appwidget/SizeBox.kt"/> 452 </issue> 453 454 <issue 455 id="ListIterator" 456 message="Creating an unnecessary Iterator to iterate through a List" 457 errorLine1=" spans.forEach { span -> content.setSpan(span, 0, length, Spanned.SPAN_INCLUSIVE_EXCLUSIVE) }" 458 errorLine2=" ~~~~~~~"> 459 <location 460 file="src/main/java/androidx/glance/appwidget/translators/TextTranslator.kt"/> 461 </issue> 462 463 <issue 464 id="ListIterator" 465 message="Creating an unnecessary Iterator to iterate through a List" 466 errorLine1=" val layouts = config.layoutList.associate { it.layout to it.layoutIndex }.toMutableMap()" 467 errorLine2=" ~~~~~~~~~"> 468 <location 469 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 470 </issue> 471 472 <issue 473 id="ListIterator" 474 message="Creating an unnecessary Iterator to iterate through a List" 475 errorLine1=" addAllChildren(element.children.map { createNode(context, it) })" 476 errorLine2=" ~~~"> 477 <location 478 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 479 </issue> 480 481 <issue 482 id="PrimitiveInCollection" 483 message="constructor InsertedViewInfo has parameter children with type Map<Integer, ? extends Map<SizeSelector, Integer>>: replace with IntObjectMap" 484 errorLine1=" val children: Map<Int, Map<SizeSelector, Int>> = emptyMap()," 485 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 486 <location 487 file="src/main/java/androidx/glance/appwidget/LayoutSelection.kt"/> 488 </issue> 489 490 <issue 491 id="PrimitiveInCollection" 492 message="field children with type Map<Integer, Map<SizeSelector, Integer>>: replace with IntObjectMap" 493 errorLine1=" val children: Map<Int, Map<SizeSelector, Int>> = emptyMap()," 494 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 495 <location 496 file="src/main/java/androidx/glance/appwidget/LayoutSelection.kt"/> 497 </issue> 498 499 <issue 500 id="PrimitiveInCollection" 501 message="return type Map<Integer, Map<SizeSelector, Integer>> of getChildren: replace with IntObjectMap" 502 errorLine1=" val children: Map<Int, Map<SizeSelector, Int>> = emptyMap()," 503 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 504 <location 505 file="src/main/java/androidx/glance/appwidget/LayoutSelection.kt"/> 506 </issue> 507 508 <issue 509 id="PrimitiveInCollection" 510 message="field LayoutMap with type Map<LayoutType, Integer>: replace with ObjectIntMap" 511 errorLine1="/** Mapping from layout type to fixed layout (if any). */" 512 errorLine2="^"> 513 <location 514 file="src/main/java/androidx/glance/appwidget/LayoutSelection.kt"/> 515 </issue> 516 517 <issue 518 id="PrimitiveInCollection" 519 message="field ids with type ArrayList<Long>: replace with LongList" 520 errorLine1=" private val ids = arrayListOf<Long>()" 521 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 522 <location 523 file="src/main/java/androidx/glance/appwidget/RemoteCollectionItems.kt"/> 524 </issue> 525 526 <issue 527 id="PrimitiveInCollection" 528 message="constructor Responsive has parameter sizes with type Set<DpSize>: replace with LongSet" 529 errorLine1=" class Responsive(val sizes: Set<DpSize>) : SizeMode, PreviewSizeMode {" 530 errorLine2=" ~~~~~~~~~~~"> 531 <location 532 file="src/main/java/androidx/glance/appwidget/SizeMode.kt"/> 533 </issue> 534 535 <issue 536 id="PrimitiveInCollection" 537 message="field sizes with type Set<DpSize>: replace with LongSet" 538 errorLine1=" class Responsive(val sizes: Set<DpSize>) : SizeMode, PreviewSizeMode {" 539 errorLine2=" ~~~~~~~~~~~"> 540 <location 541 file="src/main/java/androidx/glance/appwidget/SizeMode.kt"/> 542 </issue> 543 544 <issue 545 id="PrimitiveInCollection" 546 message="return type Set<DpSize> of getSizes: replace with LongSet" 547 errorLine1=" class Responsive(val sizes: Set<DpSize>) : SizeMode, PreviewSizeMode {" 548 errorLine2=" ~~~~~~~~~~~"> 549 <location 550 file="src/main/java/androidx/glance/appwidget/SizeMode.kt"/> 551 </issue> 552 553 <issue 554 id="PrimitiveInCollection" 555 message="constructor LayoutConfiguration has parameter layoutConfig with type Map<LayoutNode, Integer>: replace with ObjectIntMap" 556 errorLine1=" private val layoutConfig: MutableMap<LayoutNode, Int>," 557 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 558 <location 559 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 560 </issue> 561 562 <issue 563 id="PrimitiveInCollection" 564 message="field layoutConfig with type Map<LayoutNode, Integer>: replace with ObjectIntMap" 565 errorLine1=" private val layoutConfig: MutableMap<LayoutNode, Int>," 566 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 567 <location 568 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 569 </issue> 570 571 <issue 572 id="PrimitiveInCollection" 573 message="constructor LayoutConfiguration has parameter usedLayoutIds with type Set<Integer>: replace with IntSet" 574 errorLine1=" private val usedLayoutIds: MutableSet<Int> = mutableSetOf()," 575 errorLine2=" ~~~~~~~~~~~~~~~"> 576 <location 577 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 578 </issue> 579 580 <issue 581 id="PrimitiveInCollection" 582 message="field usedLayoutIds with type Set<Integer>: replace with IntSet" 583 errorLine1=" private val usedLayoutIds: MutableSet<Int> = mutableSetOf()," 584 errorLine2=" ~~~~~~~~~~~~~~~"> 585 <location 586 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 587 </issue> 588 589 <issue 590 id="PrimitiveInCollection" 591 message="constructor LayoutConfiguration has parameter existingLayoutIds with type Set<Integer>: replace with IntSet" 592 errorLine1=" private val existingLayoutIds: MutableSet<Int> = mutableSetOf()," 593 errorLine2=" ~~~~~~~~~~~~~~~"> 594 <location 595 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 596 </issue> 597 598 <issue 599 id="PrimitiveInCollection" 600 message="field existingLayoutIds with type Set<Integer>: replace with IntSet" 601 errorLine1=" private val existingLayoutIds: MutableSet<Int> = mutableSetOf()," 602 errorLine2=" ~~~~~~~~~~~~~~~"> 603 <location 604 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 605 </issue> 606 607 <issue 608 id="PrimitiveInCollection" 609 message="variable layouts with type Map<LayoutNode, Integer>: replace with ObjectIntMap" 610 errorLine1=" val layouts = config.layoutList.associate { it.layout to it.layoutIndex }.toMutableMap()" 611 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 612 <location 613 file="src/main/java/androidx/glance/appwidget/WidgetLayout.kt"/> 614 </issue> 615 616</issues> 617