Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #36876
| From | Andreas Leitgeb <avl@logic.at> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Eclipse |
| Date | 2017-07-13 09:29 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrnomefig.o2q.avl@logic.at> (permalink) |
| References | (3 earlier) <1b033cbe-4bc2-497f-9c93-e6e90b75f39b@googlegroups.com> <oj306u$gq0$1@dont-email.me> <slrnolcpad.o2q.avl@logic.at> <cf345eb5-2c6c-47a0-807d-793a53e78d2f@googlegroups.com> <9baefae1-7fe6-4ce6-a1f0-89546b85bf5e@googlegroups.com> |
Eric Douglas <e.d.programmer@gmail.com> wrote:
> Eclipse conflicts itself.
> given: ArrayList<MyCustomInterface> myArray, and Component c
>
> instead of if (!myArray.contains(c)), it doesn't complain if we write
> if (!(oc instanceof MyCustomInterface) || !myArray.contains((MyCustomInterface)c)).
>
> Source > Cleanup has an option 'Remove unnecessary casts'. If you use this it does
> remove this cast on the (MyCustomInterface)c, then it throws the new
> 'Unlikely type argument' error on that line. Either the cast is necessary and
> I need to remove that cleanup option, or it's not necessary and I need to
> completely ignore that error/warning (or add the @SuppressWarnings("unlikely-arg-type")).
Good catch! I'd call it a bug.
Did you report it on some eclipse bug-tracker? (if you intend to do it,
first check if it hasn't already been reported, of course.)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-28 07:57 -0700
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-28 09:04 -0700
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-28 12:07 -0700
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-29 06:05 -0700
Re: Eclipse Jerry Stuckle <jstucklex@attglobal.net> - 2017-06-29 09:32 -0400
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-29 06:42 -0700
Re: Eclipse Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-06-29 09:47 -0400
Re: Eclipse Andreas Leitgeb <avl@logic.at> - 2017-06-30 14:47 +0000
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-30 08:22 -0700
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-07-07 06:19 -0700
Re: Eclipse Andreas Leitgeb <avl@logic.at> - 2017-07-13 09:29 +0000
Re: Eclipse Martin Gregorie <martin@address-in-sig.invalid> - 2017-06-29 17:18 +0000
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-29 11:08 -0700
Re: Eclipse Martin Gregorie <martin@address-in-sig.invalid> - 2017-06-29 18:58 +0000
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-29 12:55 -0700
Re: Eclipse Martin Gregorie <martin@address-in-sig.invalid> - 2017-06-29 21:31 +0000
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-30 04:55 -0700
Re: Eclipse Martin Gregorie <martin@address-in-sig.invalid> - 2017-06-30 13:02 +0000
Re: Eclipse Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-06-29 16:34 -0400
Re: Eclipse Eric Douglas <e.d.programmer@gmail.com> - 2017-06-29 13:49 -0700
Re: Eclipse Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-06-29 18:16 -0400
Re: Eclipse Arne Vajhøj <arne@vajhoej.dk> - 2017-07-02 11:56 -0400
csiph-web