Skip to content

Commit

Permalink
return null instead of default
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed Oct 20, 2023
1 parent 11fd787 commit 247931b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public ColumnCapabilities getColumnCapabilities(String column)
{
return withColumnAccessor(column, columnAccessor -> {
if (columnAccessor == null) {
return ColumnCapabilitiesImpl.createDefault();
return null;
} else {
return new ColumnCapabilitiesImpl()
.setType(columnAccessor.getType())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import java.util.function.Function;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;

/**
* Place where tests can live that are testing the interactions of multiple semantic interfaces
Expand Down Expand Up @@ -81,7 +81,7 @@ public void testColumnSelectorFactoryGetColumnCapabilitiesNonExistentColumn()
AtomicInteger currRow = new AtomicInteger();
ColumnSelectorFactory csfm = ColumnSelectorFactoryMaker.fromRAC(rac).make(currRow);

assertNotNull(csfm.getColumnCapabilities("nonexistent"));
assertNull(csfm.getColumnCapabilities("nonexistent"));
}

/**
Expand Down

0 comments on commit 247931b

Please sign in to comment.