[
https://issues.apache.org/jira/browse/UIMA-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Lally resolved UIMA-242.
-----------------------------
Resolution: Won't Fix
Assignee: Marshall Schor
I don't think this is serious enough to spend time on. It may not be so easy
to automatically remove all unnecessary casts in a completely safe way.
> Migration Tool creating unnecessary casts of CAS to CAS
> -------------------------------------------------------
>
> Key: UIMA-242
> URL: https://issues.apache.org/jira/browse/UIMA-242
> Project: UIMA
> Issue Type: Improvement
> Components: Tools
> Reporter: Marshall Schor
> Assigned To: Marshall Schor
> Priority: Trivial
>
> Old code had things like:
> TCAS tcas = (TCAS) jcasType.jcas.getCas();
> are converted to
> CAS tcas = (CAS) jcasType.jcas.getCas();
> which cause a warning saying there's an unnecessary cast from CAS to CAS.
> Another case: ((TCAS)jcas.getCas()).getAnnotationIndex(...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.