Skip to content

Commit 5cef037

Browse files
mbaludaowen-mc
andauthored
Update java/ql/test/query-tests/security/CWE-798/semmle/tests/HardcodedCouchBaseCredentials.java
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
1 parent 9efefa6 commit 5cef037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/test/query-tests/security/CWE-798/semmle/tests/HardcodedCouchBaseCredentials.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void test() {
3232
.password("password"); // $ HardcodedCredentialsSourceCall $ HardcodedCredentialsApiCall
3333
PasswordAuthenticator.builder(
3434
(Supplier<UsernameAndPassword>)
35-
new UsernameAndPassword(
35+
() -> new UsernameAndPassword(
3636
"Administrator", // $ HardcodedCredentialsSourceCall $ MISSING: HardcodedCredentialsApiCall
3737
"password")); // $ HardcodedCredentialsSourceCall $ MISSING: HardcodedCredentialsApiCall
3838
PasswordAuthenticator.builder()

0 commit comments

Comments
 (0)