File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed
java/ql/lib/semmle/code/xml Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,7 @@ class AndroidManifestXmlFile extends XMLFile {
22
22
/**
23
23
* Holds if this Android manifest file is located in a build directory.
24
24
*/
25
- predicate isInBuildDirectory ( ) {
26
- exists ( AndroidManifestXmlFile file |
27
- file = this .getFile ( ) and
28
- file .getRelativePath ( ) .matches ( "%build%" )
29
- )
30
- }
25
+ predicate isInBuildDirectory ( ) { this .getFile ( ) .getRelativePath ( ) .matches ( "%build%" ) }
31
26
}
32
27
33
28
/**
@@ -65,19 +60,7 @@ class AndroidApplicationXmlElement extends XMLElement {
65
60
/**
66
61
* Holds if this application element has the attribute `android:debuggable` set to `true`.
67
62
*/
68
- predicate isDebuggable ( ) {
69
- exists ( AndroidXmlAttribute attr |
70
- this .getAnAttribute ( ) = attr and
71
- attr .getName ( ) = "debuggable" and
72
- attr .getValue ( ) = "true"
73
- )
74
- }
75
-
76
- /**
77
- * Overrides the getFile() predicate of the XMLElement class to get the
78
- * AndroidManifest.xml file itself.
79
- */
80
- override AndroidManifestXmlFile getFile ( ) { result = super .getFile ( ) }
63
+ predicate isDebuggable ( ) { this .getAttributeValue ( "debuggable" ) = "true" }
81
64
}
82
65
83
66
/**
You can’t perform that action at this time.
0 commit comments