Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODE-1128 Eliminated the dependency on JCIP and its annotations #47

Merged
merged 1 commit into from
Mar 28, 2011

Conversation

rhauch
Copy link
Contributor

@rhauch rhauch commented Mar 28, 2011

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.

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.
@rhauch rhauch merged commit f108598 into ModeShape:master Mar 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant