Clone
Randall Hauch
committed
on 28 Mar 11
MODE-1128 Eliminated the dependency on JCIP and its annotations
Changed the POM and Java source to eliminate the dependency on JCIP annotati… Show more
MODE-1128 Eliminated the dependency on JCIP and its annotations

Changed the POM and Java source to eliminate the dependency on JCIP annotations. ModeShape

was using only 4 of the annotations (number of corresponding import statements is listed in parentheses):

net.jcip.annotations.GuardedBy (10)

net.jcip.annotations.Immutable (310)

net.jcip.annotations.NotThreadSafe (95)

net.jcip.annotations.ThreadSafe (97)

These were replaced with new annotations in 'org.modeshape.common.annotation' that are semantically

and lexically the same as the JCIP annotations.

The 'net.jcip' dependency was removed from all POMs. This change should be backward compatible.

If user code is explicitly using these annotations within Maven projects, they will have to have explicit

dependencies, and when upgrading to 2.5.0.Beta2 they will not have any issues. Similarly, non-Maven

projects will already have the JCIP JAR on their classpath, and can remove the library if they are not

explicitly using it.

All unit and integration tests continue to pass with these changes.

Show less

2.5.x + 16 more