[jira] [Updated] (OFBIZ-7540) Enforce noninstantiability to FileUtil class

2016-06-24 Thread Rohit Koushal (JIRA)

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

Rohit Koushal updated OFBIZ-7540:
-
Attachment: OFBIZ-7540.patch

Thanks [~rishisolankii] for the details. Here is the patch for the ticket.

> Enforce noninstantiability to FileUtil class
> 
>
> Key: OFBIZ-7540
> URL: https://issues.apache.org/jira/browse/OFBIZ-7540
> Project: OFBiz
>  Issue Type: Sub-task
>  Components: framework
>Affects Versions: Trunk
>Reporter: Rishi Solanki
>Priority: Minor
> Attachments: OFBIZ-7540.patch
>
>
> - Make class as final.
> - Add a private constructor.
> - Make following public static class as private and move it to the top of the 
> class.
> {code}
> public static class SearchTextFilesFilter implements FilenameFilter
> {code}



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


[jira] [Updated] (OFBIZ-7540) Enforce noninstantiability to FileUtil class

2016-06-23 Thread Rishi Solanki (JIRA)

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

Rishi Solanki updated OFBIZ-7540:
-
Description: 
- Make class as final.

- Add a private constructor.

- Make following public static class as private and move it to the top of the 
class.

{code}
public static class SearchTextFilesFilter implements FilenameFilter
{code}


  was:
- Make class as final.

- Add a private constructor.

No variables needs to be change.


> Enforce noninstantiability to FileUtil class
> 
>
> Key: OFBIZ-7540
> URL: https://issues.apache.org/jira/browse/OFBIZ-7540
> Project: OFBiz
>  Issue Type: Sub-task
>  Components: framework
>Affects Versions: Trunk
>Reporter: Rishi Solanki
>Priority: Minor
>
> - Make class as final.
> - Add a private constructor.
> - Make following public static class as private and move it to the top of the 
> class.
> {code}
> public static class SearchTextFilesFilter implements FilenameFilter
> {code}



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