mirror of https://github.com/apache/lucene.git
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:
parent
82b72ac3fe
commit
d8f4714da6
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue