Skip to content

Commit

Permalink
Woops.
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@528 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Apr 16, 2012
1 parent 610d34d commit f7768c3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ivy-tck.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<dependency org="junit" name="junit" rev="3.8.1"/>

<!-- OLAP tests dependencies - uses Mondrian -->
<dependency org="pentaho" name="mondrian" rev="3.4.0-SNAPSHOT" changing="true">
<dependency org="pentaho" name="mondrian" rev="TRUNK-SNAPSHOT" changing="true">
<exclude org="${ivy.artifact.group}" module="${ivy.artifact.id}"/>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/org/olap4j/driver/xmla/DeferredNamedListImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public int indexOfName(String name) {
return getList().indexOfName(name);
}

public String getName(Object element) {
public String getName(T element) {
return getList().getName(element);
}

Expand Down
9 changes: 4 additions & 5 deletions src/org/olap4j/driver/xmla/XmlaOlap4jCellSetMetaData.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,15 @@ class XmlaOlap4jCellSetMetaData implements CellSetMetaData {
final XmlaOlap4jCube cube;
private final NamedList<CellSetAxisMetaData> axisMetaDataList =
new ArrayNamedListImpl<CellSetAxisMetaData>() {
public String getName(Object axisMetaData) {
return ((CellSetAxisMetaData) axisMetaData).getAxisOrdinal()
.name();
public String getName(CellSetAxisMetaData axisMetaData) {
return axisMetaData.getAxisOrdinal().name();
}
};
private final XmlaOlap4jCellSetAxisMetaData filterAxisMetaData;
private final NamedList<Property> cellProperties =
new ArrayNamedListImpl<Property>() {
public String getName(Object property) {
return ((Property) property).getName();
public String getName(Property property) {
return property.getName();
}
};
final Map<String, Property> propertiesByTag;
Expand Down
2 changes: 1 addition & 1 deletion src/org/olap4j/driver/xmla/XmlaOlap4jLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public Type getLevelType() {

public NamedList<Property> getProperties() {
final NamedList<Property> list = new ArrayNamedListImpl<Property>() {
public String getName(Object property) {
public String getName(Property property) {
return ((Property) property).getName();
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/org/olap4j/impl/NamedListImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public NamedListImpl(Collection<? extends T> c) {
super(c);
}

public final String getName(Object t) {
public final String getName(T t) {
return ((T) t).getName();
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/org/olap4j/impl/Olap4jUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public static <T> NamedList<T> emptyNamedList() {
* @return an unmodifiable view of the specified list.
*/
public static <T> NamedList<T> unmodifiableNamedList(
final NamedList<? extends T> list)
final NamedList<T> list)
{
return list instanceof RandomAccess
? new UnmodifiableNamedRandomAccessList<T>(list)
Expand Down Expand Up @@ -638,9 +638,9 @@ private Object readResolve() {
}

private static class UnmodifiableNamedList<T> implements NamedList<T> {
private final NamedList<? extends T> list;
private final NamedList<T> list;

UnmodifiableNamedList(NamedList<? extends T> list) {
UnmodifiableNamedList(NamedList<T> list) {
this.list = list;
}

Expand All @@ -652,7 +652,7 @@ public int indexOfName(String s) {
return list.indexOfName(s);
}

public String getName(Object element) {
public String getName(T element) {
return list.getName(element);
}

Expand Down Expand Up @@ -760,7 +760,7 @@ private static class UnmodifiableNamedRandomAccessList<T>
extends UnmodifiableNamedList<T>
implements RandomAccess
{
UnmodifiableNamedRandomAccessList(NamedList<? extends T> list) {
UnmodifiableNamedRandomAccessList(NamedList<T> list) {
super(list);
}
}
Expand Down

0 comments on commit f7768c3

Please sign in to comment.