File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
.codeql/custom-queries/09-cryptographic-security Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 88 * @problem.severity warning
99 * @tags maintainability
1010 * error-handling
11- * @autofix
1211 */
1312
1413import java
1514
16- import semmle.code.java.Autofix
17-
1815from CatchClause cc
1916where
2017 cc .getBlock ( ) .getNumStmt ( ) = 0 and
2118 not exists ( Stmt s | s .getParent ( ) = cc .getBlock ( ) ) and
2219 not cc .getVariable ( ) .getType ( ) .( RefType ) .hasQualifiedName ( "java.lang" , "InterruptedException" )
23- select cc , "Blocco catch vuoto - potrebbe nascondere errori importanti" ,
24- Autofix:: insertAfter ( cc .getBlock ( ) , "System.err.println(\"Exception caught: \" + " + cc .getVariable ( ) .getName ( ) + ");" )
25-
20+ select cc , "Blocco catch vuoto - potrebbe nascondere errori importanti"
You can’t perform that action at this time.
0 commit comments