I have the following piece of code in a java application
Thread.currentThread().sleep(10000);
However eclipse is showing me the following warning:
The static method sleep(long) from the type Thread should be accessed in a static way
I am very proud of never release code with warnings, and I would like to get rid of this warning (it occurs in two different classes). Do I need to post the entire code?