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

JCasGen adds unused imports if class has no new features

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.2SDK
    • 3.1.0SDK
    • UIMA
    • None

    Description

      In the JCasTypeTemplate class, the need for the following 3 imports:

      • import java.lang.invoke.CallSite;
      • import java.lang.invoke.MethodHandle;
      • import org.apache.uima.cas.impl.TypeSystemImpl;

      were added to enable code added when new features are coded into the class.

       

      In classes without new features will cause these import statements to generate unused import warnings:

      like "The import XXX is never used"

       

      Attachments

        1. patch-uima-6055v3.txt
          5 kB
          Hai-Son Nguyen
        2. patch-uima-6055v2.txt
          3 kB
          Marshall Schor
        3. patch-uima-6055v1.txt
          2 kB
          Hai-Son Nguyen

        Activity

          People

            schor Marshall Schor
            kphaison Hai-Son Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: