diff --git a/src/test/java/org/apache/commons/lang3/test/NotVisibleExceptionFactory.java b/src/test/java/org/apache/commons/lang3/test/NotVisibleExceptionFactory.java index c5bb1befe..79e077f78 100644 --- a/src/test/java/org/apache/commons/lang3/test/NotVisibleExceptionFactory.java +++ b/src/test/java/org/apache/commons/lang3/test/NotVisibleExceptionFactory.java @@ -45,7 +45,7 @@ public class NotVisibleExceptionFactory { } @Override - public Throwable getCause() { + public synchronized Throwable getCause() { return cause; } }