| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="6" by="lint 8.3.0-alpha04" type="baseline" client="gradle" dependencies="false" name="AGP (8.3.0-alpha04)" variant="all" version="8.3.0-alpha04"> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="constructor FortyFiveDegreeLinearGradient has parameter colors with type List<Color>: replace with LongList" |
| errorLine1=" private val colors: List<Color>," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Card.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field colors with type List<Color>: replace with LongList" |
| errorLine1=" private val colors: List<Color>," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Card.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="constructor FortyFiveDegreeLinearGradient has parameter stops with type List<Float>: replace with FloatList" |
| errorLine1=" private val stops: List<Float>? = null," |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Card.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field stops with type List<Float>: replace with FloatList" |
| errorLine1=" private val stops: List<Float>? = null," |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Card.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable backgroundColors with type List<? extends Color>: replace with LongList" |
| errorLine1=" val backgroundColors: List<Color>" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Chip.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable disabledBackgroundColors with type List<? extends Color>: replace with LongList" |
| errorLine1=" val disabledBackgroundColors: List<Color>" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Chip.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method setAnchors$lint_module has parameter <set-?> with type Map<Float, ? extends T>: replace with FloatObjectMap" |
| errorLine1=" internal var anchors by mutableStateOf(emptyMap<Float, T>())" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type Map<Float, T> of getAnchors$lint_module: replace with FloatObjectMap" |
| errorLine1=" internal var anchors by mutableStateOf(emptyMap<Float, T>())" |
| errorLine2=" ~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method ensureInit$lint_module has parameter newAnchors with type Map<Float, ? extends T>: replace with FloatObjectMap" |
| errorLine1=" internal fun ensureInit(newAnchors: Map<Float, T>) {" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method processNewAnchors$lint_module has parameter oldAnchors with type Map<Float, ? extends T>: replace with FloatObjectMap" |
| errorLine1=" oldAnchors: Map<Float, T>," |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method processNewAnchors$lint_module has parameter newAnchors with type Map<Float, ? extends T>: replace with FloatObjectMap" |
| errorLine1=" newAnchors: Map<Float, T>" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable bounds with type List<? extends Float>: replace with FloatList" |
| errorLine1=" val bounds = findBounds(offset.value, anchors.keys)" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method swipeable has parameter anchors with type Map<Float, ? extends T>: replace with FloatObjectMap" |
| errorLine1=" anchors: Map<Float, T>," |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable oldAnchors with type Map<Float, ? extends T>: replace with FloatObjectMap" |
| errorLine1=" val oldAnchors = state.anchors" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method findBounds has parameter anchors with type Set<Float>: replace with FloatSet" |
| errorLine1=" anchors: Set<Float>" |
| errorLine2=" ~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<Float> of findBounds: replace with FloatList" |
| errorLine1="): List<Float> {" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method computeTarget has parameter anchors with type Set<Float>: replace with FloatSet" |
| errorLine1=" anchors: Set<Float>," |
| errorLine2=" ~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable bounds with type List<? extends Float>: replace with FloatList" |
| errorLine1=" val bounds = findBounds(offset, anchors)" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method getOffset has parameter $this$getOffset with type Map<Float, ? extends T>: replace with FloatObjectMap" |
| errorLine1="private fun <T> Map<Float, T>.getOffset(state: T): Float? {" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method resistanceConfig has parameter anchors with type Set<Float>: replace with FloatSet" |
| errorLine1=" anchors: Set<Float>," |
| errorLine2=" ~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable checkedBackgroundColors with type List<? extends Color>: replace with LongList" |
| errorLine1=" val checkedBackgroundColors: List<Color>" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ToggleChip.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable disabledCheckedBackgroundColors with type List<? extends Color>: replace with LongList" |
| errorLine1=" val disabledCheckedBackgroundColors: List<Color>" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ToggleChip.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable uncheckedBackgroundColors with type List<? extends Color>: replace with LongList" |
| errorLine1=" val uncheckedBackgroundColors: List<Color>" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ToggleChip.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable disabledUncheckedBackgroundColors with type List<? extends Color>: replace with LongList" |
| errorLine1=" val disabledUncheckedBackgroundColors: List<Color>" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ToggleChip.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'indicatorFactory' with type Function1<? super Integer, ? extends Unit>." |
| errorLine1=" val indicatorFactory: @Composable (Int) -> Unit = { page ->" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/HorizontalPageIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method LinearPageIndicator has parameter 'indicatorFactory' with type Function1<? super Integer, Unit>." |
| errorLine1=" indicatorFactory: @Composable (Int) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/HorizontalPageIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method CurvedPageIndicator has parameter 'indicatorFactory' with type Function1<? super Integer, Unit>." |
| errorLine1=" indicatorFactory: @Composable (Int) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/HorizontalPageIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Picker has parameter 'option' with type Function2<? super PickerScope, ? super Integer, Unit>." |
| errorLine1=" option: @Composable PickerScope.(optionIndex: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Picker.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Picker has parameter 'option' with type Function2<? super PickerScope, ? super Integer, Unit>." |
| errorLine1=" option: @Composable PickerScope.(optionIndex: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Picker.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Picker has parameter 'option' with type Function2<? super PickerScope, ? super Integer, Unit>." |
| errorLine1=" option: @Composable PickerScope.(optionIndex: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Picker.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Picker has parameter 'option' with type Function2<? super PickerScope, ? super Integer, Unit>." |
| errorLine1=" option: @Composable PickerScope.(optionIndex: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Picker.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method scalingParams has parameter 'viewportVerticalOffsetResolver' with type Function1<? super Constraints, Integer>." |
| errorLine1=" viewportVerticalOffsetResolver: (Constraints) -> Int = { (it.maxHeight / 5f).toInt() }" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Picker.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method defaultScalingParams has parameter 'viewportVerticalOffsetResolver' with type Function1<? super Constraints, Integer>." |
| errorLine1=" viewportVerticalOffsetResolver: (Constraints) -> Int = { (it.maxHeight / 5f).toInt() }" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Picker.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method PickerGroup has parameter 'onSelected' with type Function1<? super Integer, Unit>." |
| errorLine1=" onSelected: (selectedIndex: Int) -> Unit = {}," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PickerGroup.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method PickerGroup has parameter 'separator' with type Function1<? super Integer, Unit>." |
| errorLine1=" separator: (@Composable (Int) -> Unit)? = null" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PickerGroup.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor PickerGroupItem has parameter 'option' with type Function3<? super PickerScope, ? super Integer, ? super Boolean, Unit>." |
| errorLine1=" val option: @Composable PickerScope.(optionIndex: Int, pickerSelected: Boolean) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PickerGroup.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function3<PickerScope, Integer, Boolean, Unit> of 'getOption'." |
| errorLine1=" val option: @Composable PickerScope.(optionIndex: Int, pickerSelected: Boolean) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PickerGroup.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'boundsSize' with type Function1<? super Density, ? extends IntSize>." |
| errorLine1=" val boundsSize: Density.() -> IntSize = {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PositionIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'boundsOffset' with type Function1<? super Density, ? extends IntOffset>." |
| errorLine1=" val boundsOffset: Density.() -> IntOffset = {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PositionIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor FractionPositionIndicatorState has parameter 'fraction' with type Function0<Float>." |
| errorLine1=" private val fraction: () -> Float" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PositionIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BoundsLimiter has parameter 'offset' with type Function1<? super Density, IntOffset>." |
| errorLine1=" offset: Density.() -> IntOffset," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PositionIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BoundsLimiter has parameter 'size' with type Function1<? super Density, IntSize>." |
| errorLine1=" size: Density.() -> IntSize," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PositionIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BoundsLimiter has parameter 'onSizeChanged' with type Function1<? super IntSize, Unit>." |
| errorLine1=" onSizeChanged: (IntSize) -> Unit = { }," |
| errorLine2=" ~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PositionIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method transparentSizeModifier has parameter 'size' with type Function1<? super Density, IntSize>." |
| errorLine1="private fun Modifier.transparentSizeModifier(size: Density.() -> IntSize): Modifier = this.then(" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/PositionIndicator.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method rangeSemantics has parameter 'onValueChange' with type Function1<? super Float, Unit>." |
| errorLine1=" onValueChange: (Float) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/RangeDefaults.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'key' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" key: ((index: Int) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ScalingLazyColumn.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'itemContent' with type Function2<? super ScalingLazyListItemScope, ? super Integer, Unit>." |
| errorLine1=" itemContent: @Composable ScalingLazyListItemScope.(index: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ScalingLazyColumn.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method itemsIndexed has parameter 'key' with type Function2<? super Integer, ? super T, ? extends Object>." |
| errorLine1=" noinline key: ((index: Int, item: T) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ScalingLazyColumn.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method itemsIndexed has parameter 'key' with type Function2<? super Integer, ? super T, ? extends Object>." |
| errorLine1=" noinline key: ((index: Int, item: T) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ScalingLazyColumn.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method scalingParams has parameter 'viewportVerticalOffsetResolver' with type Function1<? super Constraints, Integer>." |
| errorLine1=" viewportVerticalOffsetResolver: (Constraints) -> Int = { (it.maxHeight / 20f).toInt() }" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ScalingLazyColumn.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method autoCenteringHeight has parameter 'getHeight' with type Function0<Integer>." |
| errorLine1="private fun Modifier.autoCenteringHeight(getHeight: () -> Int) =" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ScalingLazyColumn.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor DefaultScalingParams has parameter 'viewportVerticalOffsetResolver' with type Function1<? super Constraints, Integer>." |
| errorLine1=" val viewportVerticalOffsetResolver: (Constraints) -> Int," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ScalingLazyColumnMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function1<Constraints, Integer> of 'getViewportVerticalOffsetResolver'." |
| errorLine1=" val viewportVerticalOffsetResolver: (Constraints) -> Int," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/ScalingLazyColumnMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method InlineSlider has parameter 'onValueChange' with type Function1<? super Float, Unit>." |
| errorLine1=" onValueChange: (Float) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'updateValue' with type Function1<? super Integer, ? extends Unit>." |
| errorLine1=" val updateValue: (Int) -> Unit = { stepDiff ->" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method InlineSlider has parameter 'onValueChange' with type Function1<? super Integer, Unit>." |
| errorLine1=" onValueChange: (Int) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Stepper has parameter 'onValueChange' with type Function1<? super Float, Unit>." |
| errorLine1=" onValueChange: (Float) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Stepper.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Stepper has parameter 'onValueChange' with type Function1<? super Integer, Unit>." |
| errorLine1=" onValueChange: (Int) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Stepper.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Stepper has parameter 'onValueChange' with type Function1<? super Float, Unit>." |
| errorLine1=" onValueChange: (Float) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Stepper.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Stepper has parameter 'onValueChange' with type Function1<? super Integer, Unit>." |
| errorLine1=" onValueChange: (Int) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Stepper.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method setThresholds$lint_module has parameter '<set-?>' with type Function2<? super Float, ? super Float, Float>." |
| errorLine1=" internal var thresholds: (Float, Float) -> Float by mutableStateOf({ _, _ -> 0f })" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<Float, Float, Float> of 'getThresholds$lint_module'." |
| errorLine1=" internal var thresholds: (Float, Float) -> Float by mutableStateOf({ _, _ -> 0f })" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method computeTarget has parameter 'thresholds' with type Function2<? super Float, ? super Float, Float>." |
| errorLine1=" thresholds: (Float, Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method currentTime has parameter 'time' with type Function0<Long>." |
| errorLine1=" time: () -> Long," |
| errorLine2=" ~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/TimeText.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'updatedTimeLambda' with type Function0<? extends Long>." |
| errorLine1=" val updatedTimeLambda by rememberUpdatedState(time)" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/material/TimeText.kt"/> |
| </issue> |
| |
| </issues> |