Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Релиз 2021.6.1 #10

Merged
merged 2 commits into from
Jun 5, 2021
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