File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ library class MarkerCommentGeneratedFile extends GeneratedFile {
51
51
/**
52
52
* A marker comment that indicates that it is in a generated file.
53
53
*/
54
- private class GeneratedFileMarker extends Top {
54
+ private class GeneratedFileMarker extends Top instanceof JavadocElement {
55
55
GeneratedFileMarker ( ) {
56
- exists ( string msg | msg = this .( JavadocElement ) . getText ( ) |
56
+ exists ( string msg | msg = this .getText ( ) |
57
57
msg .regexpMatch ( "(?i).*\\bGenerated By\\b.*\\bDo not edit\\b.*" ) or
58
58
msg .regexpMatch ( "(?i).*\\bThis (file|class|interface|art[ei]fact) (was|is|(has been)) (?:auto[ -]?)?gener(e?)ated.*" ) or
59
59
msg .regexpMatch ( "(?i).*\\bAny modifications to this file will be lost\\b.*" ) or
You can’t perform that action at this time.
0 commit comments