Performance Warning: Obsolete SDK_INT Version Check
Categories
(GeckoView :: General, defect, P5)
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)
Updated•6 years ago
|
Updated•6 years ago
|
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•1 year ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Comment 3•1 year ago
|
||
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")
.
Updated•1 year ago
|
Comment 4•7 months ago
•
|
||
(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
Description
•