I Use This!
Activity Not Available
Analyzed almost 2 years ago. based on code collected almost 2 years ago.

Project Summary

There are so many DBC libraries for Java out there, yet none of them that I've looked at met the following criteria:

* easy to use with little overhead (i.e. no extra class-hierarchies for contracts)
* complete code-integration (no comment-parsing stuff that needs adjustment as soon as you change a method- or parameter-name) in pure Java
* being able to not only throw an assertion when a contract fails, but also to silently log the contract violation and leave the application running (e.g. in production systems)
* easily extensible with own contracts or checks
* assign contracts to foreign classes (e.g. preventing to call "new Integer")
* lots of more ideas, e.g. profiling or logging method calls, customizable behavior for each contract definition, etc.


contracts dbc java

In a Nutshell, Java on Contracts...

Quick Reference

Mozilla Public License 1.1

Commercial Use



Place Warranty

Use Patent Claims



Hold Liable


Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

Include Install Instructions

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    learn about Open Hub updates and features on the Open Hub blog
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    you can embed statistics from Open Hub on your site


2 Other

30 Day Summary

Apr 10 2016 — May 10 2016

12 Month Summary

May 10 2015 — May 10 2016