Tag Archives: preconditions

Failing Fast With Guava’s Preconditions

One of the many Good Programmer’s mantras is to always have your input data checked against invalid values. So we decorate our public interfaces with assertions or intricate if-then-else constructs checking all possible combinations of the input data, throwing around … Continue reading

Posted in Java and Quality, Java Basics | Tagged , , , | 1 Comment

Google announces cofoja – Contracts for Java

Google announced the new project cofoja (Contracts for Java) that is hosted on Google Code. The project Website describes the project as follows: Contracts for Java enables you to write annotate your code with contracts in the form of preconditions, … Continue reading

Posted in Java and Quality | Tagged , , , , | Leave a comment