All Questions
3 questions
2
votes
1
answer
126
views
How to configure Eclipse (Java) to recognize custom assertion when checking against potential null pointer
I have the following piece of Java code:
public void silence(final Object key) {
final Chain chain = (Chain)getChain(key);
checkPrecondition(chain != null);
chain.silence();
}
The ...
-1
votes
1
answer
974
views
When JSR-308 will become part of JDK? [closed]
See my blog post for excerpt from Java Posse #386 - Newscast for May 31st 2012 that expands this topic.
Does JSR 308 promotes design-by-contract to Java? It is step further from assertions? When it ...
1
vote
3
answers
611
views
partial design by contract with assertions
I would like to get some opinions on an idea for a partial implementation of design by contract.
The goal is to add to the languages that don't offer it a light version of contracts (invariants and ...