uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-6055) JCasGen adds unused imports if class has no new features
Date Mon, 10 Jun 2019 14:22:00 GMT

    [ https://issues.apache.org/jira/browse/UIMA-6055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16860034#comment-16860034
] 

Marshall Schor commented on UIMA-6055:
--------------------------------------

hmmm, it looks like the patch I uploaded (patch-uima-6055v2.txt) was for the wrong file -
I meant to upload the one for the JCasType.javajet.  I see you created that, it looks good.

The JCasTypeTemplate looks like it might have been diffed from the uima v2 version. 

Instead of that, I plan to use the JCasType.javajet and regenerate the JCasTypeTemplate for
the uima v3 version of the code.

Thanks for your help :)

> JCasGen adds unused imports if class has no new features
> --------------------------------------------------------
>
>                 Key: UIMA-6055
>                 URL: https://issues.apache.org/jira/browse/UIMA-6055
>             Project: UIMA
>          Issue Type: Bug
>          Components: UIMA
>    Affects Versions: 3.0.2SDK
>            Reporter: Hai-Son Nguyen
>            Priority: Minor
>         Attachments: patch-uima-6055v1.txt, patch-uima-6055v2.txt, patch-uima-6055v3.txt
>
>
> 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"
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message