You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Arun Patidar (JIRA)" <ji...@apache.org> on 2016/06/27 14:37:52 UTC

[jira] [Closed] (OFBIZ-7405) Enforce noninstantiability to SearchWorker Class

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

Arun Patidar closed OFBIZ-7405.
-------------------------------
       Resolution: Fixed
    Fix Version/s: Upcoming Branch

Committed changes in trunk at rev: 1750350.

Thanks [~rahul.kushwah] for your contribution.

> Enforce noninstantiability to SearchWorker Class
> ------------------------------------------------
>
>                 Key: OFBIZ-7405
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7405
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: specialpurpose/lucene
>    Affects Versions: Trunk
>            Reporter: Arun Patidar
>            Assignee: Arun Patidar
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-7405.patch
>
>
> - Make class as final.
> - Add a private constructor.
> - Make the following public static variables as private
> {code}
>     public static final Version LUCENE_VERSION = Version.LUCENE_5_3_1;
> {code}
> - Add a getLuceneVersion() method for getting value of private variable 'LUCENE_VERSION' and Also replace the use of 'SearchWorker.LUCENE_VERSION' with SearchWorker.getLuceneVersion() in class 'DocumentIndexer.java' and 'LuceneTests.java'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)