Skip to content

Commit e13336e

Browse files
committed
ignore case on types, add category to javadoc
1 parent d22b055 commit e13336e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

core/src/processing/data/Table.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,11 +1479,12 @@ public void setColumnType(String columnName, String columnType) {
14791479
/**
14801480
* Set the data type for a column so that using it is more efficient.
14811481
* @param column the column to change
1482-
* @param columnType One of int, long, float, double, or String.
1482+
* @param columnType One of int, long, float, double, string, or category.
14831483
*/
14841484
public void setColumnType(int column, String columnType) {
1485+
columnType = columnType.toLowerCase();
14851486
int type = -1;
1486-
if (columnType.equals("String")) {
1487+
if (columnType.equals("string")) {
14871488
type = STRING;
14881489
} else if (columnType.equals("int")) {
14891490
type = INT;

0 commit comments

Comments
 (0)