Skip to content

Commit

Permalink
Fix bug in 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
erssebaggala committed Jul 6, 2019
1 parent 1cbbb7d commit 3754b81
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: java

jdk:
- oraclejdk8

notifications:
email:
[email protected]
Binary file modified dist/boda-ztexlscmparser.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.bodastage.cm</groupId>
<artifactId>boda-ztexlscmparser</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.1-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
22 changes: 11 additions & 11 deletions src/main/java/com/bodastage/boda_ztexmlcmparser/ZTEXLSCMParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ZTEXLSCMParser {
*
* Since 1.3.0
*/
final static String VERSION = "1.2.0";
final static String VERSION = "1.2.1";

private static final Logger LOGGER = LoggerFactory.getLogger(ZTEXLSCMParser.class);

Expand Down Expand Up @@ -669,8 +669,8 @@ public void parseFile(String fileName ) throws FileNotFoundException, IOExceptio
Stack<String> sheetParamValues = new Stack();

//Iterate over the row cells
for(int rCount=0; rCount < row.getLastCellNum(); rCount++) {
Cell sheetRowCell = row.getCell(rCount, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK);
for(int rCount=0; rCount < sheetRow.getLastCellNum(); rCount++) {
Cell sheetRowCell = sheetRow.getCell(rCount, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK);

String cellValue = sheetRowCell.getStringCellValue();

Expand All @@ -685,14 +685,14 @@ public void parseFile(String fileName ) throws FileNotFoundException, IOExceptio

//Get key parameters
if( sheetRowCount == 5 && parserState == ParserStates.EXTRACTING_PARAMETERS ){
if(cellValue.equals("Primary Key")){
//sheetKeyParams.add( sheetParams.get(rCount-1));
String kParam = parameters.get(rCount-1);
if(!keyParameters.contains(kParam)){
keyParameters.add(kParam);
}
}

// if(cellValue.equals("Primary Key")){
// //sheetKeyParams.add( sheetParams.get(rCount-1));
// String kParam = parameters.get(rCount-1);
// if(!keyParameters.contains(kParam)){
// keyParameters.add(kParam);
// }
// }
//
continue;
}

Expand Down

0 comments on commit 3754b81

Please sign in to comment.