]> source.dussan.org Git - poi.git/commitdiff
bug 60253: revert XSSFDataValidationConstraint#prettyPrint QUOTE change in r1749129
authorJaven O'Neal <onealj@apache.org>
Fri, 14 Oct 2016 07:04:27 +0000 (07:04 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 14 Oct 2016 07:04:27 +0000 (07:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1764822 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFDataValidationConstraint.java

index 1bca5e4abe5b12c160ba9d85772635ebad419f83..65233b473516229346aaeb2af7a43e9d58861395 100644 (file)
@@ -223,14 +223,14 @@ public class XSSFDataValidationConstraint implements DataValidationConstraint {
                                        && validationType != ValidationType.FORMULA) {
                                builder.append(LIST_SEPARATOR).append(ot).append(", ");
                        }
-
+                       final String NOQUOTE = "";
                        if (validationType == ValidationType.LIST && explicitListOfValues != null) {
-                               builder.append(QUOTE).append(Arrays.asList(explicitListOfValues)).append(QUOTE).append(' ');
+                               builder.append(NOQUOTE).append(Arrays.asList(explicitListOfValues)).append(NOQUOTE).append(' ');
                        } else {
-                               builder.append(QUOTE).append(formula1).append(QUOTE).append(' ');
+                               builder.append(NOQUOTE).append(formula1).append(NOQUOTE).append(' ');
                        }
                        if (formula2 != null) {
-                               builder.append(QUOTE).append(formula2).append(QUOTE).append(' ');
+                               builder.append(NOQUOTE).append(formula2).append(NOQUOTE).append(' ');
                        }
                }
                return builder.toString();