Comments, imports and warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696436 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2015-08-18 14:59:52 +00:00
parent 91ed79222b
commit 152b0d1e6d

View File

@ -17,11 +17,6 @@
package org.apache.poi.ss.format; 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.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@ -31,6 +26,14 @@ import java.util.logging.Level;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; 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 * Format a value according to the standard Excel behavior. This "standard" is
* not explicitly documented by Microsoft, so the behavior is determined by * not explicitly documented by Microsoft, so the behavior is determined by
@ -67,10 +70,9 @@ import java.util.regex.Pattern;
* *
* TODO Merge this with {@link DataFormatter} so we only have one set of * TODO Merge this with {@link DataFormatter} so we only have one set of
* code for formatting numbers. * code for formatting numbers.
* * TODO Re-use parts of this logic with {@link ConditionalFormatting} /
* @author Ken Arnold, Industrious Media LLC * {@link ConditionalFormattingRule} for reporting stylings which do/don't apply
*/ */
@SuppressWarnings({"Singleton"})
public class CellFormat { public class CellFormat {
private final String format; private final String format;
private final CellFormatPart posNumFmt; private final CellFormatPart posNumFmt;