mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Merge pull request #10115 from atorralba/atorralba/fragment-fix
Java: Add support for androidx.fragment.app.Fragment
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: minorAnalysis
|
||||
---
|
||||
* The class `AndroidFragment` now also models the Android Jetpack version of the `Fragment` class (`androidx.fragment.app.Fragment`).
|
||||
@@ -4,7 +4,9 @@ import java
|
||||
|
||||
/** The class `android.app.Fragment`. */
|
||||
class AndroidFragment extends Class {
|
||||
AndroidFragment() { this.getAnAncestor().hasQualifiedName("android.app", "Fragment") }
|
||||
AndroidFragment() {
|
||||
this.getAnAncestor().hasQualifiedName(["android.app", "androidx.fragment.app"], "Fragment")
|
||||
}
|
||||
}
|
||||
|
||||
/** The method `instantiate` of the class `android.app.Fragment`. */
|
||||
|
||||
Reference in New Issue
Block a user