Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<groupId>org.spacious-team</groupId>
<artifactId>table-wrapper-api</artifactId>
<version>2021.6</version>
<version>2021.6.1</version>
<packaging>jar</packaging>

<name>Table Wrapper API</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public interface CellDataAccessObject<C, R extends ReportPageRow> {

ZoneId defaultZoneId = ZoneId.systemDefault();
Pattern spacePattern = Pattern.compile("\\s");
NullPointerException npe = new NullPointerException("Cell doesn't contains value");
String NO_CELL_VALUE_EXCEPTION_MESSAGE = "Cell doesn't contains value";

C getCell(R row, Integer cellIndex);

Expand All @@ -54,7 +54,7 @@ default long getLongValue(C cell) {
} else if (value != null) {
return Long.parseLong(spacePattern.matcher((CharSequence) value).replaceAll(""));
} else {
throw npe;
throw new NullPointerException(NO_CELL_VALUE_EXCEPTION_MESSAGE);
}
}

Expand All @@ -68,7 +68,7 @@ default double getDoubleValue(C cell) {
} else if (value != null) {
return Double.parseDouble(spacePattern.matcher((CharSequence) value).replaceAll(""));
} else {
throw npe;
throw new NullPointerException(NO_CELL_VALUE_EXCEPTION_MESSAGE);
}
}
/**
Expand Down