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

        Hide
        Marshall Schor added a comment -

        I aggree, let's close this as won't fix.

        Show
        Marshall Schor added a comment - I aggree, let's close this as won't fix.
        Hide
        Michael Baessler added a comment -

        If we do not fix this issue, I think we should close them.

        Marshall what do you think?

        Show
        Michael Baessler added a comment - If we do not fix this issue, I think we should close them. Marshall what do you think?
        Hide
        Adam Lally added a comment -

        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.

        Show
        Adam Lally added a comment - 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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development