]> source.dussan.org Git - poi.git/commitdiff
Comments, imports and warnings
authorNick Burch <nick@apache.org>
Tue, 18 Aug 2015 14:59:52 +0000 (14:59 +0000)
committerNick Burch <nick@apache.org>
Tue, 18 Aug 2015 14:59:52 +0000 (14:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696436 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/format/CellFormat.java

index c649d55e0a203bd586f81ed8d7523cca1de8c4fa..fadfe2324b605a19c7fcdf94ea1a7ce0541bcc55 100644 (file)
 
 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;