You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/05/20 17:58:38 UTC

[jira] [Updated] (LUCENE-5689) FieldInfo.setDocValuesGen should not be public.

     [ https://issues.apache.org/jira/browse/LUCENE-5689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-5689:
--------------------------------

    Attachment: LUCENE-5689.patch

here's a patch. also adds some safety to checkConsistency.

We should probably add  assert checkConsistency() to the package-private setter.


> FieldInfo.setDocValuesGen should not be public.
> -----------------------------------------------
>
>                 Key: LUCENE-5689
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5689
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-5689.patch
>
>
> its currently public and users can modify it. We made this class mostly immutable long ago: remember its returned by the atomicreader API!



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org