Skip to content

Commit bb23866

Browse files
authored
Add missing doc comments
1 parent a72b134 commit bb23866

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/ql/src/experimental/Security/CWE/CWE-016/InsecureSpringActuatorConfig.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ class ApplicationProperties extends ConfigPair {
5252
class ManagementSecurityConfig extends ApplicationProperties {
5353
ManagementSecurityConfig() { this.getNameElement().getName() = "management.security.enabled" }
5454

55+
/** Gets the whitespace-trimmed value of this property. */
5556
string getValue() { result = this.getValueElement().getValue().trim() }
5657

58+
/** Holds if `management.security.enabled` is set to `false`. */
5759
predicate hasSecurityDisabled() { getValue() = "false" }
5860

61+
/** Holds if `management.security.enabled` is set to `true`. */
5962
predicate hasSecurityEnabled() { getValue() = "true" }
6063
}
6164

@@ -65,6 +68,7 @@ class ManagementEndPointInclude extends ApplicationProperties {
6568
this.getNameElement().getName() = "management.endpoints.web.exposure.include"
6669
}
6770

71+
/** Gets the whitespace-trimmed value of this property. */
6872
string getValue() { result = this.getValueElement().getValue().trim() }
6973
}
7074

0 commit comments

Comments
 (0)