File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
java/ql/src/experimental/CWE-532 Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
public static void main (String [] args ) {
2
- {
3
- private static final Logger logger = LogManager .getLogger (SensitiveInfoLog .class );
4
-
5
- String password = "Pass@0rd" ;
2
+ {
3
+ private static final Logger logger = LogManager .getLogger (SensitiveInfoLog .class );
4
+
5
+ String password = "Pass@0rd" ;
6
6
7
- // BAD: user password is written to debug log
8
- logger .debug ("User password is " +password );
9
- }
7
+ // BAD: user password is written to debug log
8
+ logger .debug ("User password is " +password );
9
+ }
10
10
11
- {
12
- private static final Logger logger = LogManager .getLogger (SensitiveInfoLog .class );
11
+ {
12
+ private static final Logger logger = LogManager .getLogger (SensitiveInfoLog .class );
13
13
14
- String password = "Pass@0rd" ;
14
+ String password = "Pass@0rd" ;
15
15
16
- // GOOD: user password is never written to debug log
17
- }
16
+ // GOOD: user password is never written to debug log
17
+ }
18
18
}
You can’t perform that action at this time.
0 commit comments