mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Apply review suggestions
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
public void fileSystemStorageUnsafe(String name, String password) {
|
public void fileSystemStorageUnsafe(String name, String password) {
|
||||||
// BAD - sensitive data stored in plaintext
|
// BAD - sensitive data stored in cleartext
|
||||||
FileWriter fw = new FileWriter("some_file.txt");
|
FileWriter fw = new FileWriter("some_file.txt");
|
||||||
fw.write(name + ":" + password);
|
fw.write(name + ":" + password);
|
||||||
fw.close();
|
fw.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user