File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
java/ql/src/Likely Bugs/Concurrency Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11/**
2- * @name Direct call to a run() method
2+ * @name Direct call to a ' run()' method
33 * @description Directly calling a 'Thread' object's 'run' method does not start a separate thread
4- * but executes the method within the current thread.
4+ * but executes the method within the current thread and may indicate misunderstanding
5+ * on the programmer's part.
56 * @kind problem
67 * @problem.severity recommendation
78 * @precision high
89 * @id java/call-to-thread-run
9- * @tags reliability
10+ * @previous-id java/run-method-called-on-java-lang-thread-directly
11+ * @tags quality
12+ * reliability
1013 * correctness
1114 * concurrency
1215 * external/cwe/cwe-572
1316 */
1417
1518import java
1619
20+ /**
21+ * The `run()` method of the class `java.lang.Thread` or
22+ * of its subclasses.
23+ */
1724class RunMethod extends Method {
1825 RunMethod ( ) {
1926 this .hasName ( "run" ) and
You can’t perform that action at this time.
0 commit comments