File: 0050-apache-poi-compatibility.patch

package info (click to toggle)
libspring-java 4.3.30-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 65,728 kB
  • sloc: java: 566,974; xml: 13,706; sql: 2,313; sh: 87; ruby: 75; jsp: 33; makefile: 29; javascript: 11; python: 4
file content (14 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fixes the compatibility with the version of Apache POI in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractExcelView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractExcelView.java
@@ -217,7 +217,7 @@
 	 * @param text the text to put in the cell
 	 */
 	protected void setText(HSSFCell cell, String text) {
-		cell.setCellType(HSSFCell.CELL_TYPE_STRING);
+		cell.setCellType(org.apache.poi.ss.usermodel.CellType.STRING);
 		cell.setCellValue(text);
 	}