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

Marshall Schor commented on UIMA-6054:
--------------------------------------

The need for supress warning can't be limited to just Annotation type.  I think 
all types (both built-in and user-defined) except for TOP have the 0-argument 
constructor marked Deprecated.  

If the goal is to not have the warning "unnessary 
SupressWarnings("deprecation")" appear in Eclipse, perhaps the right way to do 
this is to have the logic always add the SupressWarnings except when the 
supertype is TOP.

> JCasGen generating warnings by creating deprecated constructors
> ---------------------------------------------------------------
>
>                 Key: UIMA-6054
>                 URL: https://issues.apache.org/jira/browse/UIMA-6054
>             Project: UIMA
>          Issue Type: Bug
>          Components: UIMA
>    Affects Versions: 3.0.2SDK
>            Reporter: Hai-Son Nguyen
>            Priority: Trivial
>         Attachments: patch-uima-6054v1.txt, patch-uima-6054v2.txt
>
>
> The JCasGen process produces classes with a protected empty no parameter 
> constructor.
> Base classes that have extended the Annotation class 
> (org.apache.uima.jcas.tcas.Annotation) are now getting warnings that the 
> constructor Annotation() is deprecated.
> The constructor documentation states, "Never called. Disable default 
> constructor" but the presence of other constructors already serve this 
> purpose. 



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

Reply via email to