File tree Expand file tree Collapse file tree
java/ql/src/semmle/code/java/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,25 +53,18 @@ private class DefaultOgnlInjectionSink extends OgnlInjectionSink {
5353
5454/** The class `org.apache.commons.ognl.Ognl` or `ognl.Ognl`. */
5555private class TypeOgnl extends Class {
56- TypeOgnl ( ) {
57- this .hasQualifiedName ( "org.apache.commons.ognl" , "Ognl" ) or
58- this .hasQualifiedName ( "ognl" , "Ognl" )
59- }
56+ TypeOgnl ( ) { this .hasQualifiedName ( [ "org.apache.commons.ognl" , "ognl" ] , "Ognl" ) }
6057}
6158
6259/** The interface `org.apache.commons.ognl.Node` or `ognl.Node`. */
6360private class TypeNode extends Interface {
64- TypeNode ( ) {
65- this .hasQualifiedName ( "org.apache.commons.ognl" , "Node" ) or
66- this .hasQualifiedName ( "ognl" , "Node" )
67- }
61+ TypeNode ( ) { this .hasQualifiedName ( [ "org.apache.commons.ognl" , "ognl" ] , "Node" ) }
6862}
6963
7064/** The interface `org.apache.commons.ognl.enhance.ExpressionAccessor` or `ognl.enhance.ExpressionAccessor`. */
7165private class TypeExpressionAccessor extends Interface {
7266 TypeExpressionAccessor ( ) {
73- this .hasQualifiedName ( "org.apache.commons.ognl.enhance" , "ExpressionAccessor" ) or
74- this .hasQualifiedName ( "ognl.enhance" , "ExpressionAccessor" )
67+ this .hasQualifiedName ( [ "org.apache.commons.ognl.enhance" , "ognl.enhance" ] , "ExpressionAccessor" )
7568 }
7669}
7770
You can’t perform that action at this time.
0 commit comments