In this case I think the helper function reduces clarity rather than adds.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@643 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2008-08-21 18:30:01 +00:00
parent c06de7d51f
commit a2f5bd532e
@@ -93,7 +93,8 @@ public class BundledComponentRepository
ResourceBundle[] rbundles = rmgr.getResourceSet(name);
if (rbundles == null) {
// Couldn't find a bundle with that name, so just make empty maps for safe enumerating
fillInWithEmptyMaps();
_actions = Maps.newHashMap();
_classes = Maps.newHashMap();
return;
}
@@ -148,11 +149,6 @@ public class BundledComponentRepository
// if we failed to load our classes or actions, create empty hashtables so that we can
// safely enumerate our emptiness
fillInWithEmptyMaps();
}
protected void fillInWithEmptyMaps(){
if (_actions == null) {
_actions = Maps.newHashMap();
}