Fabian Kraemer committed aff9b30

JRA-26808: Inverted setMutable check for DirtyFlagMap, otherwise it would lock if requested with true.

Comments (0)

Files changed (1)


     public void setMutable(boolean mutable) {
-        if(locked.compareAndSet(!mutable, mutable))
+        if(locked.compareAndSet(mutable, !mutable))
             // the reference is leaked anyway, e.g. getWrappedMap and entrySet, so no further attempt for
             // synchronisation. normally you'd have a custom decorator blocking modification if the flag is set, but