Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58a0fb33 authored by William Escande's avatar William Escande
Browse files

Fwk: Lint fix SupportAnnotationUsage

Bug: 289445022
Test: m Bluetooth
Flag: Exempt lint only
Change-Id: Ia20228451ad854cdde58809a44937531f211e4bc
parent 406fc434
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -92,6 +92,9 @@ java_sdk_library {
        "error_prone_android_framework",
    ],
    lint: {
        error_checks: [
            "SupportAnnotationUsage",
        ],
        strict_updatability_linting: true,
        baseline_filename: "lint-baseline.xml",
    },
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ public final class DistanceMeasurementMethod implements Parcelable {
    @FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING_25Q2_APIS)
    @Deprecated
    @SystemApi
    public @DistanceMeasurementMethodId double getId() {
    public double getId() {
        return mId;
    }

+0 −11
Original line number Diff line number Diff line
@@ -375,15 +375,4 @@
            column="16"/>
    </issue>

    <issue
        id="SupportAnnotationUsage"
        message="This annotation does not apply for type double; expected int"
        errorLine1="    public @DistanceMeasurementMethodId double getId() {"
        errorLine2="           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="packages/modules/Bluetooth/framework/java/android/bluetooth/le/DistanceMeasurementMethod.java"
            line="97"
            column="12"/>
    </issue>

</issues>