[
https://issues.apache.org/jira/browse/DERBY-5076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Knut Anders Hatlen resolved DERBY-5076.
---------------------------------------
Resolution: Fixed
Assignee: Dave Brosius
Issue & fix info: (was: [Patch Available])
All the regression tests ran cleanly.
Committed revision 1075842.
> [patch] move instanceof check up above where casts occur
> --------------------------------------------------------
>
> Key: DERBY-5076
> URL: https://issues.apache.org/jira/browse/DERBY-5076
> Project: Derby
> Issue Type: Improvement
> Components: Network Client
> Affects Versions: 10.7.1.1
> Reporter: Dave Brosius
> Assignee: Dave Brosius
> Priority: Trivial
> Fix For: 10.8.0.0
>
> Attachments: move_instanceof_check.diff, unnecessary_casts.diff
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> code does an instanceof check on Diagnosable much after multiple casts to
> Diagnosable occurs above it.
> Move the instanceof check up before the first cast, so that it does some good.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira