I already came up a fix to address this "Unnecessary
@SuppressWarnings("hiding")" issue, as well as the new ones introduced by
2.8.0 release. The patch is attached to UIMA-4554.Please let me know if the fix is acceptable. Thanks. James On Wed, Aug 12, 2015 at 12:31 AM, Richard Eckart de Castilho <[email protected] > wrote: > I hit the "unnecessary hidden" back in 2013 as well, and there were some > mails > exchanged, but I never really got to follow up: > > On 12.12.2013, at 16:08, Marshall Schor <[email protected]> wrote: > > > The JCas classes also cause another kind of warning in my Eclipse when > custom type inherits form another custom type: Unnecessary > @SuppressWarnings ("hiding") > > > > I think I need to see an example of where this happens - can you post > one? > > > > It seems to me that custom types should also exhibit this behavior, > unless they're missing a field in their definition. > > -- Richard > > On 12.08.2015, at 05:49, James Jichun Zhu <[email protected]> wrote: > > > Thank you so much for the reply, Marshall. > > > > While you are at it, here is another type of similar warnings we have > been > > living with since upgrade to 2.4.2. Can you please include them in your > > Jira issue? > > > > *Description Resource Path Location Type* > > *Unnecessary @SuppressWarnings("hiding") AAA.java > > /NQUIRY_COMMON/src/org/kp/nlp/types/clinical line 22 Java Problem* > > > > They all occur in JCasGen generated Java classes at the very first few > > lines, for instance, > > > > > > /** @generated > > > > * @ordered > > > > */ > > > > @SuppressWarnings ("hiding") > > > > public final static int typeIndexID = JCasRegistry.register(AAA.class); > > > > /** @generated > > > > * @ordered > > > > */ > > > > @SuppressWarnings ("hiding") > > > > public final static int type = typeIndexID; > > > > > > Thanks a lot! > >
