What you have to do is what the warning messages say. Recompile this class with the -Xlint:deprecation parameter.
The compiler will then tell you which deprecated API you are using or overriding.
Alternatively, if you showed us the source code for this class, we can determine the problem for you ... or compile it yourself.
But I'm going to guess that you are using one of the deprecated methods in the Thread class:
countStackFrames()destroy()pause()resume()stop()stop(Throwable)suspend()
These methods are either unreliable or unsafe, or both. You are strongly advised not to use them. Read this explanation: Why are Thread.stop, Thread.suspend, and Thread.resume deprecated? "
Stephen c
source share