UIMA
  1. UIMA
  2. UIMA-242

Migration Tool creating unnecessary casts of CAS to CAS

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial 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(...

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development