mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Apply review suggestions
This commit is contained in:
@@ -2,24 +2,23 @@
|
||||
|
||||
import java
|
||||
import semmle.code.java.security.SensitiveActions
|
||||
import semmle.code.xml.AndroidManifest
|
||||
|
||||
/** An Android Layout XML file. */
|
||||
class AndroidLayoutXmlFile extends XmlFile {
|
||||
AndroidLayoutXmlFile() { this.getAbsolutePath().matches("%/res/layout/%.xml") }
|
||||
private class AndroidLayoutXmlFile extends XmlFile {
|
||||
AndroidLayoutXmlFile() { this.getRelativePath().matches("%/res/layout/%.xml") }
|
||||
}
|
||||
|
||||
/** An XML element that represents an editable text field. */
|
||||
class AndroidEditableXmlElement extends XmlElement {
|
||||
XmlAttribute inputType;
|
||||
XmlAttribute id;
|
||||
AndroidXmlAttribute inputType;
|
||||
AndroidXmlAttribute id;
|
||||
|
||||
AndroidEditableXmlElement() {
|
||||
this.getFile() instanceof AndroidLayoutXmlFile and
|
||||
inputType = this.getAnAttribute() and
|
||||
inputType.getNamespace().getPrefix() = "android" and
|
||||
inputType.getName() = "inputType" and
|
||||
id = this.getAnAttribute() and
|
||||
id.getNamespace().getPrefix() = "android" and
|
||||
id.getName() = "id"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user