Skip to content

Commit

Permalink
Comply with new checkFile rules.
Browse files Browse the repository at this point in the history
Remove use of 'fold' function from most regression tests.


git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@247 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed Jun 20, 2009
1 parent 1d41474 commit 2321361
Show file tree
Hide file tree
Showing 52 changed files with 1,444 additions and 1,224 deletions.
11 changes: 6 additions & 5 deletions src/org/olap4j/OlapException.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This software is subject to the terms of the Eclipse Public License v1.0
// Agreement, available at the following URL:
// http://www.eclipse.org/legal/epl-v10.html.
// Copyright (C) 2006-2008 Julian Hyde
// Copyright (C) 2006-2009 Julian Hyde
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
*/
Expand Down Expand Up @@ -118,8 +118,9 @@ public Region getRegion() {
* or a {@link Position}
*/
public void setContext(Object context) {
if (!(context instanceof Cell) &&
!(context instanceof Position)) {
if (!(context instanceof Cell)
&& !(context instanceof Position))
{
throw new IllegalArgumentException(
"expected Cell or Position");
}
Expand Down Expand Up @@ -177,8 +178,8 @@ public String toString() {
if (startLine == endColumn && startColumn == endLine) {
return "line " + startLine + ", column " + startColumn;
} else {
return "line " + startLine + ", column " + startColumn +
" through line " + endLine + ", column " + endColumn;
return "line " + startLine + ", column " + startColumn
+ " through line " + endLine + ", column " + endColumn;
}
}
}
Expand Down
57 changes: 38 additions & 19 deletions src/org/olap4j/driver/xmla/EmptyResultSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ public double getDouble(int columnIndex) throws SQLException {
}

public BigDecimal getBigDecimal(
int columnIndex, int scale) throws SQLException {
int columnIndex, int scale) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand Down Expand Up @@ -229,7 +230,8 @@ public double getDouble(String columnLabel) throws SQLException {
}

public BigDecimal getBigDecimal(
String columnLabel, int scale) throws SQLException {
String columnLabel, int scale) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand Down Expand Up @@ -455,7 +457,8 @@ public void updateDouble(int columnIndex, double x) throws SQLException {
}

public void updateBigDecimal(
int columnIndex, BigDecimal x) throws SQLException {
int columnIndex, BigDecimal x) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand All @@ -476,27 +479,32 @@ public void updateTime(int columnIndex, Time x) throws SQLException {
}

public void updateTimestamp(
int columnIndex, Timestamp x) throws SQLException {
int columnIndex, Timestamp x) throws SQLException
{
throw new UnsupportedOperationException();
}

public void updateAsciiStream(
int columnIndex, InputStream x, int length) throws SQLException {
int columnIndex, InputStream x, int length) throws SQLException
{
throw new UnsupportedOperationException();
}

public void updateBinaryStream(
int columnIndex, InputStream x, int length) throws SQLException {
int columnIndex, InputStream x, int length) throws SQLException
{
throw new UnsupportedOperationException();
}

public void updateCharacterStream(
int columnIndex, Reader x, int length) throws SQLException {
int columnIndex, Reader x, int length) throws SQLException
{
throw new UnsupportedOperationException();
}

public void updateObject(
int columnIndex, Object x, int scaleOrLength) throws SQLException {
int columnIndex, Object x, int scaleOrLength) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand All @@ -509,7 +517,8 @@ public void updateNull(String columnLabel) throws SQLException {
}

public void updateBoolean(
String columnLabel, boolean x) throws SQLException {
String columnLabel, boolean x) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand Down Expand Up @@ -538,7 +547,8 @@ public void updateDouble(String columnLabel, double x) throws SQLException {
}

public void updateBigDecimal(
String columnLabel, BigDecimal x) throws SQLException {
String columnLabel, BigDecimal x) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand All @@ -559,27 +569,32 @@ public void updateTime(String columnLabel, Time x) throws SQLException {
}

public void updateTimestamp(
String columnLabel, Timestamp x) throws SQLException {
String columnLabel, Timestamp x) throws SQLException
{
throw new UnsupportedOperationException();
}

public void updateAsciiStream(
String columnLabel, InputStream x, int length) throws SQLException {
String columnLabel, InputStream x, int length) throws SQLException
{
throw new UnsupportedOperationException();
}

public void updateBinaryStream(
String columnLabel, InputStream x, int length) throws SQLException {
String columnLabel, InputStream x, int length) throws SQLException
{
throw new UnsupportedOperationException();
}

public void updateCharacterStream(
String columnLabel, Reader reader, int length) throws SQLException {
String columnLabel, Reader reader, int length) throws SQLException
{
throw new UnsupportedOperationException();
}

public void updateObject(
String columnLabel, Object x, int scaleOrLength) throws SQLException {
String columnLabel, Object x, int scaleOrLength) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand Down Expand Up @@ -620,7 +635,8 @@ public Statement getStatement() throws SQLException {
}

public Object getObject(
int columnIndex, Map<String, Class<?>> map) throws SQLException {
int columnIndex, Map<String, Class<?>> map) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand All @@ -641,7 +657,8 @@ public Array getArray(int columnIndex) throws SQLException {
}

public Object getObject(
String columnLabel, Map<String, Class<?>> map) throws SQLException {
String columnLabel, Map<String, Class<?>> map) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand Down Expand Up @@ -678,12 +695,14 @@ public Time getTime(String columnLabel, Calendar cal) throws SQLException {
}

public Timestamp getTimestamp(
int columnIndex, Calendar cal) throws SQLException {
int columnIndex, Calendar cal) throws SQLException
{
throw new UnsupportedOperationException();
}

public Timestamp getTimestamp(
String columnLabel, Calendar cal) throws SQLException {
String columnLabel, Calendar cal) throws SQLException
{
throw new UnsupportedOperationException();
}

Expand Down
Loading

0 comments on commit 2321361

Please sign in to comment.