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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)

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

Arun Patidar reassigned OFBIZ-7405:
-----------------------------------

    Assignee: Arun Patidar

> 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
>         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)