Adding comment on refactoring of API before making it public

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1131309 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2011-06-04 02:44:27 +00:00
parent 0ad6c30b0e
commit c1cb131f71

View File

@ -31,6 +31,7 @@
* @since 3.0
* @version $Id: FormatCache 892161 2009-12-18 07:21:10Z $
*/
// TODO: Before making public move from getDateTimeInstance(Integer,...) to int; or some other approach.
abstract class FormatCache<F extends Format> {
/**
* No date or no time. Used in same parameters as DateFormat.SHORT or DateFormat.LONG
@ -115,7 +116,7 @@ public F getInstance(String pattern, TimeZone timeZone, Locale locale) {
* @throws IllegalArgumentException if the Locale has no date/time
* pattern defined
*/
public F getDateTimeInstance(Integer dateStyle, Integer timeStyle, TimeZone timeZone, Locale locale) {
public F getDateTimeInstance(int dateStyle, int timeStyle, TimeZone timeZone, Locale locale) {
if (locale == null) {
locale = Locale.getDefault();
}