...
This noncompliant code example uses a ReentrantLock
to protect a java.util.Date
instance, which is not thread-safe by design. The doSomethingSafely()
method must catch Throwable
to comply with guideline EXC06ERR06-J. Do not allow exceptions to expose sensitive information.
...