Skip to content

Commit

Permalink
refs #67 Excelの書式の比較は大文字・小文字を区別しないで比較するよう修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
mygreen committed Feb 28, 2016
1 parent 55d5ed9 commit 3b6a1ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public Cell toCell(final FieldAdaptor adaptor, final Date targetValue, final She
}

// セルの書式の設定
if(Utils.isNotEmpty(anno.excelPattern()) && !POIUtils.getCellFormatPattern(cell).equals(anno.excelPattern())) {
if(Utils.isNotEmpty(anno.excelPattern()) && !POIUtils.getCellFormatPattern(cell).equalsIgnoreCase(anno.excelPattern())) {

// 既にCell中に書式が設定され、それが異なる場合
CellStyle style = sheet.getWorkbook().createCellStyle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public Cell toCell(final FieldAdaptor adaptor, final Number targetValue, final S
}

// セルの書式の設定
if(Utils.isNotEmpty(anno.excelPattern()) && !POIUtils.getCellFormatPattern(cell).equals(anno.excelPattern())) {
if(Utils.isNotEmpty(anno.excelPattern()) && !POIUtils.getCellFormatPattern(cell).equalsIgnoreCase(anno.excelPattern())) {

// 既にCell中に書式が設定され、それが異なる場合
CellStyle style = sheet.getWorkbook().createCellStyle();
Expand Down

0 comments on commit 3b6a1ac

Please sign in to comment.