Created
January 14, 2009 01:38
-
-
Save briandoll/46734 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testSnappyHappy() { | |
Map snappy = null; | |
Map happy = new HashMap(); | |
addToMap(snappy, "foo", "bar"); | |
addToMap(happy, "foo", "bar"); | |
} | |
private Map addToMap(Map map, String key, String value){ | |
if (map == null){ | |
map = new HashMap(); | |
} | |
map.put(key, value); | |
return map; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment