Open Bug 1510666 Opened 6 years ago Updated 2 months ago

Performance Warning: Obsolete SDK_INT Version Check

Categories

(GeckoView :: General, defect, P5)

Unspecified
Android
defect

Tracking

(Not tracked)

People

(Reporter: fluffyemily, Unassigned, Mentored)

References

(Blocks 2 open bugs)

Details

(Keywords: good-first-bug, Whiteboard: [lang=java])

Attachments

(1 obsolete file)

This check flags version checks that are not necessary, because the minSdkVersion (or surrounding known API level) is already at least as high as the version checked for. Similarly, it also looks for resources in -vNN folders, such as values-v14 where the version qualifier is less than or equal to the minSdkVersion, where the contents should be merged into the best folder. Affected Classes: AndroidGamepadManager VideoCaptureDeviceInfoAndroid
Keywords: good-first-bug
OS: Unspecified → Android
Priority: -- → P5
Product: Firefox for Android → GeckoView
Severity: normal → S3
Assignee: nobody → loganrosen
Status: NEW → ASSIGNED
Attachment #9345230 - Attachment is obsolete: true
Depends on: 1820295

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: loganrosen → nobody
Status: ASSIGNED → NEW
Obsolete SDK_INT Version Check
../../../../../../../mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/GeckoBundle.java:963: Unnecessary; SDK_INT is always >= 21

But this code runs on Java unit test, so we cannot remove it. So we should use @SuppressLint("ObsoleteSdkInt").

Mentor: m_kato
Whiteboard: [lang=java]
Blocks: 1906885

(In reply to Emily Toop (:fluffyemily) from comment #0)

This check flags version checks that are not necessary, because the
minSdkVersion (or surrounding known API level) is already at least as high
as the version checked for.

Similarly, it also looks for resources in -vNN folders, such as values-v14
where the version qualifier is less than or equal to the minSdkVersion,
where the contents should be merged into the best folder.

Affected Classes:

AndroidGamepadManager
VideoCaptureDeviceInfoAndroid

Please note that the classes marked as affected here are no longer an issue. (AndroidGamepadManager, VideoCaptureDeviceInfoAndroid)
See comment 3 above for the class that is still affected here. GeckoBundle

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: