mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Merge pull request #15923 from hvitved/shared-xml-impl
Properly shared `XML.qll` implementation
This commit is contained in:
@@ -19,7 +19,8 @@ class SpringBean extends SpringXmlElement {
|
||||
not this.getNamespace().getUri() = "http://camel.apache.org/schema/spring"
|
||||
}
|
||||
|
||||
override string toString() { result = this.getBeanIdentifier() }
|
||||
/** Gets a printable representation of this XML element. */
|
||||
string toString() { result = this.getBeanIdentifier() }
|
||||
|
||||
/**
|
||||
* Holds if this element is a top-level bean definition.
|
||||
|
||||
@@ -9,7 +9,8 @@ import semmle.code.java.frameworks.spring.SpringValue
|
||||
class SpringProperty extends SpringXmlElement {
|
||||
SpringProperty() { this.getName() = "property" }
|
||||
|
||||
override string toString() { result = this.getPropertyName() }
|
||||
/** Gets a printable representation of this XML element. */
|
||||
string toString() { result = this.getPropertyName() }
|
||||
|
||||
/** Gets the value of the `name` attribute. */
|
||||
string getPropertyName() { result = this.getAttributeValue("name") }
|
||||
|
||||
Reference in New Issue
Block a user