public static void createCellComment ( final Cell cell , final String newComment , final Map < Cell , String > finalCommentMap ) { // due to poi's bug. the comment must be set in sorted order ( row first // then column), // otherwise poi will mess up. // workaround solution is to save all comments into a map, // and output them together when download workbook. if ( newComment != null ) { finalCommentMap . put ( cell , newComment ) ; } }
Creates the cell comment .