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

Knut Anders Hatlen updated DERBY-6254:
--------------------------------------

    Attachment: derby-6254-01-a.diff

The attached patch introduces new newException() and newWarning() methods that 
use varargs. The methods with fixed number of arguments are removed. The 
changes are local to StandardException, no caller had to be updated.

All the regression tests ran cleanly with the patch.
                
> Reduce number of factory methods in StandardException
> -----------------------------------------------------
>
>                 Key: DERBY-6254
>                 URL: https://issues.apache.org/jira/browse/DERBY-6254
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services
>    Affects Versions: 10.11.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: derby-6254-01-a.diff
>
>
> StandardException has many factory methods for creating exceptions and 
> warnings. For example, there are newException() methods for 0 to 8 message 
> arguments. A single method taking a vararg argument could replace those nine 
> methods.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to