Skip to content

Commit

Permalink
Avoid zero-sized Hashmap
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cocoon/trunk/core@481093 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Alfred Nathaniel committed Nov 30, 2006
1 parent 33bb402 commit 3930575
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Collection getChildren() throws SourceException {
}

private Map createChildren() throws MalformedURLException, IOException {
Map children = new HashedMap(this.blockContexts.size());
Map children = new HashedMap(this.blockContexts.size() * 2 + 1);
SourceResolver resolver = null;
try {
resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
Expand Down

0 comments on commit 3930575

Please sign in to comment.