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
            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.

Reply via email to