[
https://issues.apache.org/jira/browse/LUCENE-7278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15302748#comment-15302748
]
Dawid Weiss commented on LUCENE-7278:
-------------------------------------
Indeed, use {{argumentFormatting}}. You can even use two arguments to the
constructor and use only the first one to create the description -- then you
can format it any way you like inside the {{parameters}} factory.
{code}
@ParametersFactory(argumentFormatting = "%s")
public static Iterable<Object[]> parameters() {
return Arrays.asList(new Object[][]{
{"default", DateRangePrefixTree.DEFAULT_CAL},
{"compat", DateRangePrefixTree.JAVA_UTIL_TIME_COMPAT_CAL}
{code}
> Make template Calendar configurable in DateRangePrefixTree
> ----------------------------------------------------------
>
> Key: LUCENE-7278
> URL: https://issues.apache.org/jira/browse/LUCENE-7278
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/spatial-extras
> Reporter: David Smiley
> Assignee: David Smiley
> Fix For: 6.1
>
> Attachments: LUCENE_7278.patch, LUCENE_7278.patch
>
>
> DateRangePrefixTree (a SpatialPrefixTree designed for dates and date ranges)
> currently uses a hard-coded Calendar template for making new instances. This
> ought to be configurable so that, for example, the Gregorian change date can
> be configured. This is particularly important for compatibility with Java
> 8's java.time API which uses the Gregorian calendar for all time (there is no
> use of Julian prior to 1582).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]