From 924a1a96d9966e98dcfc0ce56b94da4ce2b137c0 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Wed, 5 Oct 2016 19:59:44 +0000 Subject: [PATCH] Some IDE warning fixes and unit test adjustments git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1763482 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/usermodel/HSSFRow.java | 21 +++++++++---------- .../poi/ss/formula/eval/NumberEval.java | 8 +++---- .../poi/hssf/model/TestDrawingShapes.java | 21 ++++++++++--------- 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java b/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java index 427779d2f4..31a17e0c0f 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java @@ -205,9 +205,9 @@ public final class HSSFRow implements Row, Comparable { * records too. */ protected void removeAllCells() { - for(int i=0; i { row.setFirstCol(colIx); } else if (colIx > row.getLastCol()) { row.setLastCol(colIx + 1); - } else { + } /*else { // added cell is within first and last cells - } + }*/ } // TODO - RowRecord column boundaries need to be updated for cell comments too return hcell; @@ -446,12 +446,11 @@ public final class HSSFRow implements Row, Comparable { @Override public int getPhysicalNumberOfCells() { - int count=0; - for(int i=0;i