Skip to content

Commit ebc121f

Browse files
Iana_GusevaIana_Guseva
Iana_Guseva
authored and
Iana_Guseva
committed
2.0.10 release
1 parent 7561583 commit ebc121f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# Parso Java library
2+
## Parso 2.0.10
3+
***28 September 2018***
4+
5+
* Fixed processing of columns formats and labels
6+
* Fixed formatting of percentage values ([#28][i28])
7+
8+
[i28]: https://github.com/epam/parso/issues/28
9+
210
## Parso 2.0.9
311
***26 April 2018***
412

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.epam</groupId>
55
<artifactId>parso</artifactId>
6-
<version>2.0.9</version>
6+
<version>2.0.10</version>
77
<packaging>jar</packaging>
88
<name>parso</name>
99
<description>Parso is a lightweight Java library designed to read SAS7BDAT datasets. The Parso interfaces

Diff for: src/main/java/com/epam/parso/impl/SasFileParser.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -1393,12 +1393,10 @@ public void processSubheader(long subheaderOffset, long subheaderLength) throws
13931393

13941394
int columnFormatWidth = bytesToShort(vars.get(0));
13951395
int columnFormatPrecision = bytesToShort(vars.get(1));
1396-
// min used to prevent incorrect data which appear in some files
1397-
int textSubheaderIndexForFormat = Math.min(bytesToShort(vars.get(2)), columnsNamesBytes.size() - 1);
1396+
int textSubheaderIndexForFormat = bytesToShort(vars.get(2));
13981397
int columnFormatOffset = bytesToShort(vars.get(3));
13991398
int columnFormatLength = bytesToShort(vars.get(4));
1400-
// min used to prevent incorrect data which appear in some files
1401-
int textSubheaderIndexForLabel = Math.min(bytesToShort(vars.get(5)), columnsNamesBytes.size() - 1);
1399+
int textSubheaderIndexForLabel = bytesToShort(vars.get(5));
14021400
int columnLabelOffset = bytesToShort(vars.get(6));
14031401
int columnLabelLength = bytesToShort(vars.get(7));
14041402
String columnLabel = "";

0 commit comments

Comments
 (0)