title: Apache POI difference between cloning style and getting style
body: <p>Are there any significant differences between doing:</p>
  
  <pre><code>CellStyle newCellStyle = workbook.createCellStyle();
  neweCellStyle.cloneStyleFrom(oldCell.getCellStyle());
  newCell.setCellStyle(newCellStyle);
  </code></pre>
  
  <p>versus</p>
  
  <pre><code>CellStyle newCellStyle = oldCell.getCellStyle();
  newCell.setCellStyle(newCellStyle);
  </code></pre>
  
  <p>the reason why I ask this is because I'm not sure if by taking the first approach I risk creating too many CellStyles, I've encountered issues where if I create too many CellStyles in one particular workbook, all styling for the workbook disappear. So is there anything wrong with taking the second approach? </p>