You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to manually manage threads usually gets quickly out of control and may result in various problems like uncontrollable spawning of threads.
227
+
Threads can also not be cancelled properly.
228
+
229
+
Use managed Thread services like ``ExecutorService`` and ``CompletableFuture`` instead.
230
+
</description>
231
+
<priority>3</priority>
232
+
<properties>
233
+
<propertyname="xpath">
234
+
<value>
235
+
<![CDATA[
236
+
//MethodCall[pmd-java:matchesSig('java.lang.Thread#start()') or pmd-java:matchesSig('java.lang.Thread#startVirtualThread(java.lang.Runnable)') or pmd-java:matchesSig('java.lang.Thread$Builder#start(java.lang.Runnable)')]
237
+
]]>
238
+
</value>
239
+
</property>
240
+
</properties>
241
+
</rule>
242
+
221
243
<rulename="JavaObjectSerializationIsUnsafe"
222
244
language="java"
223
245
message="Using Java Object (De-)Serialization is unsafe and has led to too many security vulnerabilities"
0 commit comments