aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2015-08-18 14:59:52 +0000
committerNick Burch <nick@apache.org>2015-08-18 14:59:52 +0000
commit6a786df01bf2b278db204b522837b07740bc6402 (patch)
treebc293a5e1eb2061ae8f84b45dd6de63e1871003a
parentcf589000c6e62b1a6a6e111deb5d9adf93c5ee96 (diff)
downloadpoi-6a786df01bf2b278db204b522837b07740bc6402.tar.gz
poi-6a786df01bf2b278db204b522837b07740bc6402.zip
Comments, imports and warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696436 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/poi/ss/format/CellFormat.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/java/org/apache/poi/ss/format/CellFormat.java b/src/java/org/apache/poi/ss/format/CellFormat.java
index c649d55e0a..fadfe2324b 100644
--- a/src/java/org/apache/poi/ss/format/CellFormat.java
+++ b/src/java/org/apache/poi/ss/format/CellFormat.java
@@ -17,11 +17,6 @@
package org.apache.poi.ss.format;
-import org.apache.poi.ss.usermodel.Cell;
-import org.apache.poi.ss.usermodel.DateUtil;
-import org.apache.poi.ss.usermodel.DataFormatter;
-
-import javax.swing.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -31,6 +26,14 @@ import java.util.logging.Level;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import javax.swing.JLabel;
+
+import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.ConditionalFormatting;
+import org.apache.poi.ss.usermodel.ConditionalFormattingRule;
+import org.apache.poi.ss.usermodel.DataFormatter;
+import org.apache.poi.ss.usermodel.DateUtil;
+
/**
* Format a value according to the standard Excel behavior. This "standard" is
* not explicitly documented by Microsoft, so the behavior is determined by
@@ -66,11 +69,10 @@ import java.util.regex.Pattern;
* object.
*
* TODO Merge this with {@link DataFormatter} so we only have one set of
- * code for formatting numbers.
- *
- * @author Ken Arnold, Industrious Media LLC
+ * code for formatting numbers.
+ * TODO Re-use parts of this logic with {@link ConditionalFormatting} /
+ * {@link ConditionalFormattingRule} for reporting stylings which do/don't apply
*/
-@SuppressWarnings({"Singleton"})
public class CellFormat {
private final String format;
private final CellFormatPart posNumFmt;