Skip to content

Commit

Permalink
MONDRIAN: change default for mondrian.rolap.RolapMember.PropertyValue…
Browse files Browse the repository at this point in the history
…Map.class to java.util.HashMap rather than Flat3Map, since the latter isn't supported in version 2.1 of commons-collections

[git-p4: depot-paths = "//open/mondrian/": change = 12930]
  • Loading branch information
Eric McDermid committed Jul 10, 2009
1 parent 58587ed commit 300bf76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/configuration.html
Expand Up @@ -1111,7 +1111,7 @@ <h3>1.1 Property list<a name="Property_list">&nbsp;</a></h3>
<td>
If set, the specified class is used to store member property
values in mondrian.rolap.RolapMember. Defaults to
org.apache.commons.collections.map.Flat3Map
java.util.HashMap
</td>
</tr>
<tr>
Expand Down
6 changes: 4 additions & 2 deletions src/main/mondrian/rolap/RolapMember.java
Expand Up @@ -18,7 +18,6 @@
import mondrian.util.CreationException;

import org.apache.log4j.Logger;
import org.apache.commons.collections.map.Flat3Map;
import org.eigenbase.util.property.StringProperty;

import java.util.*;
Expand Down Expand Up @@ -866,7 +865,10 @@ protected Map getDefault(
Object[] parameterValues)
throws CreationException
{
return new Flat3Map();
// REVIEW emcdermid 10-Jul-2009: Would almost certainly be more
// efficient to use Flat3Map from Apache commons collection, but
// that requires Mondrian upgrade to a newer version.
return new HashMap();
}
}
}
Expand Down

0 comments on commit 300bf76

Please sign in to comment.