commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin O'Neill" <>
Subject [Betwixt] Maps
Date Wed, 02 Apr 2003 03:57:52 GMT
What method signatures are required to make Maps work?

I have:

public Map getPairs()
	return _beanPairs;

public void setPairs(Map pairMap)
	_beanPairs = pairMap;

public void addPair(String key, SimpleBean bean)
	_beanPairs.put(key, bean);

The map gets written, but never read. I've tried a few different
approaches with no success.

Any help would be great.


If you don't test then your code is only a collection of bugs which 
apparently behave like a working program. 


View raw message