fix
Synchronizing on Object instance instead of Boolean.
@@ -77,7 +77,7 @@ public final class RsPrettyXml implements Response {
/**
* Synchronization lock.
*/
- private final Boolean lock;
+ private final Object lock;
/**
* Ctor.
@@ -86,7 +86,7 @@ public final class RsPrettyXml implements Response {
public RsPrettyXml(final Response res) {
this.transformed = new CopyOnWriteArrayList<Response>();
this.origin = res;
- this.lock = true;
+ this.lock = new Object();
}
@Override
