我的代码中有这个
Thread.currentThread().sleep(x);
Eclipse告诉我使用静态
Thread.sleep(x);
相反,为什么?有什么区别,这两种方法之间的功能有什么不同吗?
java eclipse multithreading warnings sleep
eclipse ×1
java ×1
multithreading ×1
sleep ×1
warnings ×1