SOLR-2772: revert unneccessary 'public static' change to DateField.formatDate

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1171704 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2011-09-16 18:25:31 +00:00
parent 82b72ac3fe
commit d8f4714da6
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ public class DateField extends FieldType {
* Thread safe method that can be used by subclasses to format a Date
* using the Internal representation.
*/
public static String formatDate(Date d) {
protected String formatDate(Date d) {
return fmtThreadLocal.get().format(d);
}

View File

@ -198,7 +198,7 @@ public class DateFieldTest extends LuceneTestCase {
protected void assertRoundTrip(String canonicalDate) throws Exception {
Date d = DateField.parseDate(canonicalDate);
String result = DateField.formatDate(d) + "Z";
String result = DateField.formatExternal(d);
assertEquals("d:" + d.getTime(), canonicalDate, result);
}