Skip to content

Commit 4b7c57c

Browse files
Added a comment for getBeanIdentifier()
Co-authored-by: Chris Smowton <[email protected]>
1 parent 0a5d58e commit 4b7c57c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/ql/src/experimental/Security/CWE/CWE-502/UnsafeSpringExporterInConfigurationClass.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ private class UnsafeBeanInitMethod extends Method {
4747
)
4848
}
4949

50+
/**
51+
* Gets this bean's name if given by the `Bean` annotation, or this method's identifier otherwise.
52+
*/
5053
string getBeanIdentifier() { result = identifier }
5154
}
5255

0 commit comments

Comments
 (0)