On Wednesday, December 8, 2010 9:16:16 PM UTC+1, PhilBeaudoin wrote:
>
> Just ran into an interesting little hack today. Basically, the interface 
> includes a method: 

public void __do_not_implement_this_interface_extend_FooImpl_instead(); 

I'm far from convinced I like it, but it sure is right in your face in case 
> you don't read javadocs! ;)


interestingly, that's exactly what Hamcrest (used in many testing tools: 
JUnit, Mockito, etc.) does:
http://code.google.com/p/hamcrest/source/browse/trunk/hamcrest-java/hamcrest-core/src/main/java/org/hamcrest/Matcher.java?r=645
 

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to