mirror of
https://github.com/github/codeql.git
synced 2026-02-01 15:52:59 +01:00
patch upper-case acronyms to be PascalCase
This commit is contained in:
@@ -427,8 +427,8 @@ class PersistenceCallbackMethod extends CallableEntryPoint {
|
||||
* A source class which is referred to by fully qualified name in the value of an arbitrary XML
|
||||
* attribute which has a name containing "className" or "ClassName".
|
||||
*/
|
||||
class ArbitraryXMLEntryPoint extends ReflectivelyConstructedClass {
|
||||
ArbitraryXMLEntryPoint() {
|
||||
class ArbitraryXmlEntryPoint extends ReflectivelyConstructedClass {
|
||||
ArbitraryXmlEntryPoint() {
|
||||
this.fromSource() and
|
||||
exists(XMLAttribute attribute |
|
||||
attribute.getName() = "className" or
|
||||
@@ -446,6 +446,9 @@ class ArbitraryXMLEntryPoint extends ReflectivelyConstructedClass {
|
||||
}
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for ArbitraryXmlEntryPoint */
|
||||
deprecated class ArbitraryXMLEntryPoint = ArbitraryXmlEntryPoint;
|
||||
|
||||
/** A Selenium PageObject, created by a call to PageFactory.initElements(..). */
|
||||
class SeleniumPageObjectEntryPoint extends ReflectivelyConstructedClass {
|
||||
SeleniumPageObjectEntryPoint() { this instanceof SeleniumPageObject }
|
||||
|
||||
@@ -13,7 +13,7 @@ class SpringInjectionCallableEntryPoint extends CallableEntryPoint {
|
||||
this instanceof SpringBeanReflectivelyConstructed or
|
||||
// A setter method specified in the context.
|
||||
this instanceof SpringBeanPropertySetterMethod or
|
||||
exists(this.(SpringBeanXMLAutowiredSetterMethod).getInjectedBean()) or
|
||||
exists(this.(SpringBeanXmlAutowiredSetterMethod).getInjectedBean()) or
|
||||
this instanceof SpringBeanAutowiredCallable
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class ServletConstructedClass extends ReflectivelyConstructedClass {
|
||||
// referred to as a servlet-class in at least one. If no `web.xml` files are found, we assume
|
||||
// that XML extraction was not enabled, and therefore consider all `Servlet` classes as live.
|
||||
(
|
||||
isWebXMLIncluded()
|
||||
isWebXmlIncluded()
|
||||
implies
|
||||
exists(WebServletClass servletClass | this = servletClass.getClass())
|
||||
)
|
||||
@@ -29,12 +29,12 @@ class ServletConstructedClass extends ReflectivelyConstructedClass {
|
||||
*/
|
||||
class ServletListenerClass extends ReflectivelyConstructedClass {
|
||||
ServletListenerClass() {
|
||||
this.getAnAncestor() instanceof ServletWebXMLListenerType and
|
||||
this.getAnAncestor() instanceof ServletWebXmlListenerType and
|
||||
// If we have seen any `web.xml` files, this listener will be considered to be live only if it is
|
||||
// referred to as a listener-class in at least one. If no `web.xml` files are found, we assume
|
||||
// that XML extraction was not enabled, and therefore consider all listener classes as live.
|
||||
(
|
||||
isWebXMLIncluded()
|
||||
isWebXmlIncluded()
|
||||
implies
|
||||
exists(WebListenerClass listenerClass | this = listenerClass.getClass())
|
||||
)
|
||||
@@ -51,7 +51,7 @@ class ServletFilterClass extends ReflectivelyConstructedClass {
|
||||
// If we have seen any `web.xml` files, this filter will be considered to be live only if it is
|
||||
// referred to as a filter-class in at least one. If no `web.xml` files are found, we assume
|
||||
// that XML extraction was not enabled, and therefore consider all filter classes as live.
|
||||
(isWebXMLIncluded() implies exists(WebFilterClass filterClass | this = filterClass.getClass()))
|
||||
(isWebXmlIncluded() implies exists(WebFilterClass filterClass | this = filterClass.getClass()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user