Skip to content

Commit

Permalink
TextTableReader allow Empty Strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bischoffz committed Mar 25, 2024
1 parent 839be6d commit d72059e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- Artifact -->
<groupId>gov.hhs.aspr.ms</groupId>
<artifactId>util</artifactId>
<version>4.1.0</version>
<version>4.1.1</version>
<packaging>jar</packaging>

<name>Modeling Utils</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static void readToMap(String delimeter, String expectedHeader, Path fileP
public static void read(String delimeter, String expectedHeader, Path filePath, Consumer<String[]> consumer) {
BufferedReader reader = getReader(filePath);

String[] expectedHeaders = expectedHeader.split(delimeter);
String[] expectedHeaders = expectedHeader.split(delimeter, -1);
int expectedHeaderLength = expectedHeaders.length;
int headerLength = expectedHeaderLength;

Expand All @@ -107,7 +107,7 @@ public static void read(String delimeter, String expectedHeader, Path filePath,

long lineNumber = 1;
while ((line = reader.readLine()) != null) {
String[] lineValues = line.split(delimeter);
String[] lineValues = line.split(delimeter, -1);

if (lineIsCommentLine(lineValues[0], delimeter)) {
lineNumber++;
Expand Down

0 comments on commit d72059e

Please sign in to comment.