File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
java/ql/lib/semmle/code/java/frameworks/android Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ import semmle.code.xml.AndroidManifest
1111 */
1212class AndroidComponent extends Class {
1313 AndroidComponent ( ) {
14- this .getASupertype * ( ) .hasQualifiedName ( "android.app" , "Activity" ) or
15- this .getASupertype * ( ) .hasQualifiedName ( "android.app" , "Service" ) or
16- this .getASupertype * ( ) .hasQualifiedName ( "android.content" , "BroadcastReceiver" ) or
17- this .getASupertype * ( ) .hasQualifiedName ( "android.content" , "ContentProvider" ) or
18- this .getASupertype * ( ) .hasQualifiedName ( "android.content" , "ContentResolver" )
14+ // The casts here are due to misoptimisation if they are missing
15+ // but are not needed semantically.
16+ this .( Class ) .getASupertype * ( ) .hasQualifiedName ( "android.app" , "Activity" ) or
17+ this .( Class ) .getASupertype * ( ) .hasQualifiedName ( "android.app" , "Service" ) or
18+ this .( Class ) .getASupertype * ( ) .hasQualifiedName ( "android.content" , "BroadcastReceiver" ) or
19+ this .( Class ) .getASupertype * ( ) .hasQualifiedName ( "android.content" , "ContentProvider" ) or
20+ this .( Class ) .getASupertype * ( ) .hasQualifiedName ( "android.content" , "ContentResolver" )
1921 }
2022
2123 /** The XML element corresponding to this Android component. */
You can’t perform that action at this time.
0 commit comments