File tree 2 files changed +3
-3
lines changed
poi/src/main/java/org/apache/poi
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ static void skipPadding( LittleEndianByteArrayInputStream lei ) {
255
255
for (int i =0 ; i <skipBytes ; i ++) {
256
256
lei .mark (1 );
257
257
int b = lei .read ();
258
- if (b == - 1 || b != 0 ) {
258
+ if (b != 0 ) {
259
259
lei .reset ();
260
260
break ;
261
261
}
Original file line number Diff line number Diff line change @@ -2552,7 +2552,7 @@ private void setRepeatingRowsAndColumns(
2552
2552
if (rowDef != null ) {
2553
2553
row1 = rowDef .getFirstRow ();
2554
2554
row2 = rowDef .getLastRow ();
2555
- if ((row1 == - 1 && row2 != - 1 ) || ( row1 > row2 )
2555
+ if ((row1 > row2 )
2556
2556
|| (row1 < 0 || row1 > maxRowIndex )
2557
2557
|| (row2 < 0 || row2 > maxRowIndex )) {
2558
2558
throw new IllegalArgumentException ("Invalid row range specification" );
@@ -2561,7 +2561,7 @@ private void setRepeatingRowsAndColumns(
2561
2561
if (colDef != null ) {
2562
2562
col1 = colDef .getFirstColumn ();
2563
2563
col2 = colDef .getLastColumn ();
2564
- if ((col1 == - 1 && col2 != - 1 ) || ( col1 > col2 )
2564
+ if ((col1 > col2 )
2565
2565
|| (col1 < 0 || col1 > maxColIndex )
2566
2566
|| (col2 < 0 || col2 > maxColIndex )) {
2567
2567
throw new IllegalArgumentException ("Invalid column range specification" );
You can’t perform that action at this time.
0 commit comments