[jira] [Updated] (OFBIZ-7590) Enforce noninstantiability to UtilIO class

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

[jira] [Updated] (OFBIZ-7590) Enforce noninstantiability to UtilIO class

Nicolas Malin (Jira)

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

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

1. Class is already final.
2. Making below public variable as private
{code}
public static final Charset UTF8 = Charset.forName("UTF-8");
{code}
3.  Wrote a getter method getUtf8() and replace its occurrences in file
{code}
UtilIOTests.java
{code}

Thanks [~rishisolankii] for the details.

> Enforce noninstantiability to UtilIO class
> ------------------------------------------
>
>                 Key: OFBIZ-7590
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7590
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Rishi Solanki
>            Assignee: Rohit Koushal
>            Priority: Minor
>         Attachments: OFBIZ-7590.patch
>
>
> - Make class as final.
> - Add a private constructor.
> No variables needs to be change for this class.



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