From 58f55e1864bacdfaa3c2b196d5e7d3d6538f234c Mon Sep 17 00:00:00 2001 From: Luc Boudreau Date: Wed, 13 May 2009 15:13:49 +0000 Subject: [PATCH] Fixed coding standard issue and removed some useless calls that were costly in calculations and returned values that were not used. git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@239 c6a108a4-781c-0410-a6c6-c2d559e19af0 --- src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java b/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java index de525e6..032f93f 100644 --- a/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java +++ b/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java @@ -388,8 +388,8 @@ public String getCatalog() throws OlapException { // was specified by the user. List catalogs = this.getCatalogs(); if (catalogs.size() == 0) { - throw new OlapException("There is no catalog " + - "available to query against."); + throw new OlapException( + "There is no catalog available to query against."); } else { this.catalogName = catalogs.get(0).getName(); } @@ -933,10 +933,6 @@ public void handle( */ - final String dimensionUniqueName = - stringElement(row, "DIMENSION_UNIQUE_NAME"); - final XmlaOlap4jDimension dimension = - context.olap4jCube.dimensionsByUname.get(dimensionUniqueName); final String hierarchyName = stringElement(row, "HIERARCHY_NAME"); final String hierarchyUniqueName = @@ -1331,7 +1327,6 @@ public void handle( Name Level - Store Manager Property */ - String cubeName = stringElement(row, "CUBE_NAME"); String description = stringElement(row, "DESCRIPTION"); String uniqueName = stringElement(row, "DESCRIPTION"); String caption = stringElement(row, "PROPERTY_CAPTION");