| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="6" by="lint 8.7.0-alpha02" type="baseline" client="gradle" dependencies="false" name="AGP (8.7.0-alpha02)" variant="all" version="8.7.0-alpha02"> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable weights with type List<? extends Float>: replace with FloatList" |
| errorLine1=" val weights =" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/CurvedColumn.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method radialGradientBackground has parameter colors with type List<Color>: replace with LongList" |
| errorLine1=" colors: List<Color>," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/CurvedDraw.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method angularGradientBackground has parameter colors with type List<Color>: replace with LongList" |
| errorLine1=" colors: List<Color>," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/CurvedDraw.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method colorsToColorStops has parameter colors with type List<Color>: replace with LongList" |
| errorLine1="private fun colorsToColorStops(colors: List<Color>): Array<Pair<Float, Color>> =" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/CurvedDraw.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable weights with type List<? extends Float>: replace with FloatList" |
| errorLine1=" val weights =" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/CurvedRow.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type Map<RevealValue, Float> of createAnchors: replace with IntFloatMap" |
| errorLine1="): Map<RevealValue, Float> {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeToReveal.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="constructor RevealState has parameter anchors with type Map<RevealValue, Float>: replace with IntFloatMap" |
| errorLine1=" internal val anchors: Map<RevealValue, Float>," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeToReveal.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field anchors with type Map<RevealValue, Float>: replace with IntFloatMap" |
| errorLine1=" internal val anchors: Map<RevealValue, Float>," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeToReveal.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type Map<RevealValue, Float> of getAnchors$compose_foundation: replace with IntFloatMap" |
| errorLine1=" internal val anchors: Map<RevealValue, Float>," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeToReveal.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type Map<RevealValue, Float> of getSwipeAnchors: replace with IntFloatMap" |
| errorLine1=" public val swipeAnchors: Map<RevealValue, Float>" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeToReveal.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method rememberRevealState has parameter anchors with type Map<RevealValue, Float>: replace with IntFloatMap" |
| errorLine1=" anchors: Map<RevealValue, Float> = createAnchors()," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeToReveal.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable previousAnchors with type Map<T, ? extends Float>: replace with ObjectFloatMap" |
| errorLine1=" val previousAnchors = state.anchors" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable newAnchors with type Map<T, Float>: replace with ObjectFloatMap" |
| errorLine1=" val newAnchors = mutableMapOf<T, Float>()" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method setAnchors$compose_foundation has parameter anchors with type Map<T, Float>: replace with ObjectFloatMap" |
| errorLine1=" internal var anchors by mutableStateOf(emptyMap<T, Float>())" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type Map<T, Float> of getAnchors$compose_foundation: replace with ObjectFloatMap" |
| errorLine1=" internal var anchors by mutableStateOf(emptyMap<T, Float>())" |
| errorLine2=" ~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method updateAnchors$compose_foundation has parameter newAnchors with type Map<T, Float>: replace with ObjectFloatMap" |
| errorLine1=" internal fun updateAnchors(newAnchors: Map<T, Float>): Boolean {" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable currentAnchors with type Map<T, ? extends Float>: replace with ObjectFloatMap" |
| errorLine1=" val currentAnchors = anchors" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method onAnchorsChanged has parameter previousAnchors with type Map<T, Float>: replace with ObjectFloatMap" |
| errorLine1=" previousAnchors: Map<T, Float>," |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method onAnchorsChanged has parameter newAnchors with type Map<T, Float>: replace with ObjectFloatMap" |
| errorLine1=" newAnchors: Map<T, Float>" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method closestAnchor has parameter $this$closestAnchor with type Map<T, Float>: replace with ObjectFloatMap" |
| errorLine1="private fun <T> Map<T, Float>.closestAnchor(offset: Float = 0f, searchUpwards: Boolean = false): T {" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method minOrNull has parameter $this$minOrNull with type Map<T, Float>: replace with ObjectFloatMap" |
| errorLine1="private fun <T> Map<T, Float>.minOrNull() = minOfOrNull { (_, offset) -> offset }" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method maxOrNull has parameter $this$maxOrNull with type Map<T, Float>: replace with ObjectFloatMap" |
| errorLine1="private fun <T> Map<T, Float>.maxOrNull() = maxOfOrNull { (_, offset) -> offset }" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/foundation/SwipeableV2.kt"/> |
| </issue> |
| |
| </issues> |