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

Migration Tool creating unnecessary casts of CAS to CAS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • None
    • None
    • Tools
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: