I've alluded to the webapp I had been tasked with recovering from novice Java "programmers" before in another question. This webapp used Spring Webflow and in a lot of places, since one of the coders was familiar with C/C++, he thought it would be a great idea to use a BitSet to keep track of what validation method to invoke in Spring's Validator through the bindAndValidate method of WebFlow's FormAction class.
This was emphatically not a good idea. As you may gather, it provided confusion while not saving any memory in the slightest.
So, a coworker of mine devised a system (while not reading the JavaDoc of the FormAction class) such that a particular validator could use the action state id of its current state to invoke the particular method in the validator to use. This seemed like a great idea to me (who also did not read the JavaDoc of FormAction at that time, I am not blameless in this), so I implemented a more generic abstraction for all validators based on his work. This was only used in three validators, however, because we were running low on time.
But, if either he or I had read the FormAction documentation, we would have known that all we had to do was set certain webflow attributes in the flow and the FormAction would have only invoked the validation methods specified. If I had known that, I would never have bothered making the abstraction.