Skip to content

Commit

Permalink
fixed headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Dec 9, 2023
1 parent 1562bee commit 60fd683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>com.milmove.trdmlambda</groupId>
<artifactId>trdm-lambda</artifactId>
<version>1.0.1.2</version>
<version>1.0.1.3</version>
<name>trdm java spring interface</name>
<description>Project for deploying a Java TRDM interfacer for TGET data.</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ public List<TransportationAccountingCode> parse(byte[] fileContent) throws Runti
logger.info("beginning to parse TAC TGET data");
List<TransportationAccountingCode> codes = new ArrayList<>();
Scanner scanner = new Scanner(new ByteArrayInputStream(fileContent));
logger.info("skipping the first line");
scanner.nextLine(); // Skip first line

logger.info("gathering headers");
// Get the column headers from the line
String[] columnHeaders = scanner.nextLine().split("\\|");
logger.info("skipping the first line and then gathering headers");
String[] columnHeaders = scanner.nextLine().split("\\|"); // Skip first lie and gather headers immediately

// TODO: Possibly allow for unexpected column names and proceed with the columns
// we are familiar with. This will be a must for LOA.
Expand Down

0 comments on commit 60fd683

Please sign in to comment.