You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Jörn Kottmann <ko...@gmail.com> on 2009/07/17 13:05:30 UTC

FSTypeConstraintImpl abuses Map as Set

The class uses nameMap as a Set can it be replaced with a HashSet ?

Jörn

Re: FSTypeConstraintImpl abuses Map as Set

Posted by Thilo Goetz <tw...@gmx.de>.
Jörn Kottmann wrote:
> The class uses nameMap as a Set can it be replaced with a HashSet ?
> 
> Jörn

Sure.  This is from a time before we had sets.  And
the JDK implementation actually uses a map for its
set implementation as well (or it did last time I
looked), so we'll just be shifting
the abuse to a place where we can't see it ;-)

--Thilo