@ SuppressWarnings ( "deprecation" ) private static void copyCellSetStyle ( final Sheet destSheet , final Cell sourceCell , final Cell newCell ) { CellStyle newCellStyle = getCellStyleFromSourceCell ( destSheet , sourceCell ) ; newCell . setCellStyle ( newCellStyle ) ; // If there is a cell hyperlink, copy if ( sourceCell . getHyperlink ( ) != null ) { newCell . setHyperlink ( sourceCell . getHyperlink ( ) ) ; } // Set the cell data type newCell . setCellType ( sourceCell . getCellTypeEnum ( ) ) ; }
set up cell style .