Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-242

Migration Tool creating unnecessary casts of CAS to CAS

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tools
    • Labels:
      None

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              schor Marshall Schor
              Reporter:
              schor Marshall Schor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: