Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f256d2 commit 0e3db78Copy full SHA for 0e3db78
1 file changed
java/ql/lib/semmle/code/java/GeneratedFiles.qll
@@ -51,9 +51,9 @@ library class MarkerCommentGeneratedFile extends GeneratedFile {
51
/**
52
* A marker comment that indicates that it is in a generated file.
53
*/
54
-private class GeneratedFileMarker extends Top {
+private class GeneratedFileMarker extends Top instanceof JavadocElement {
55
GeneratedFileMarker() {
56
- exists(string msg | msg = this.(JavadocElement).getText() |
+ exists(string msg | msg = this.getText() |
57
msg.regexpMatch("(?i).*\\bGenerated By\\b.*\\bDo not edit\\b.*") or
58
msg.regexpMatch("(?i).*\\bThis (file|class|interface|art[ei]fact) (was|is|(has been)) (?:auto[ -]?)?gener(e?)ated.*") or
59
msg.regexpMatch("(?i).*\\bAny modifications to this file will be lost\\b.*") or
0 commit comments