FAQ
you may provide the annotation @SuppressWarnings("unchecked")
this will probably remove the warning in your IDE.

the warning occurs, because of the performQuery returns just a List-Object wich is not typesafe.

-----Ursprüngliche Nachricht-----
Von: news Im Auftrag von Arturo Perez
Gesendet: Freitag, 2. März 2007 20:53
An: [email protected]
Betreff: Java5: the expression of type list needs unchecked conversion

Hi all,

I'm using Eclipse and Java6 now. Whenever I do anything with
performQuery() the IDE complains that
the expression of type list needs unchecked conversion.
I'm sure I could turn that off in the IDE but is there a way to
write it so that the warning goes away? I tried casting.

-arturo

Search Discussions

  • Andrus Adamchik at Mar 5, 2007 at 11:15 am
    Squashing consequences of one Java 5 feature with another... nice :-)

    I wonder how we can address this at the framework level, without
    having to support two separate jdk-specific builds of Cayenne? Wonder
    how other frameworks handle that (I suspect they don't)?

    Andrus


    On Mar 5, 2007, at 9:57 AM, Peter Schröder wrote:

    you may provide the annotation @SuppressWarnings("unchecked")
    this will probably remove the warning in your IDE.

    the warning occurs, because of the performQuery returns just a List-
    Object wich is not typesafe.

    -----Ursprüngliche Nachricht-----
    Von: news Im Auftrag von Arturo Perez
    Gesendet: Freitag, 2. März 2007 20:53
    An: [email protected]
    Betreff: Java5: the expression of type list needs unchecked conversion

    Hi all,

    I'm using Eclipse and Java6 now. Whenever I do anything with
    performQuery() the IDE complains that
    the expression of type list needs unchecked conversion.
    I'm sure I could turn that off in the IDE but is there a way to
    write it so that the warning goes away? I tried casting.

    -arturo
  • Dain Sundstrom at Mar 5, 2007 at 6:20 pm
    Ignore the warnings :)

    In intellij you can turn off the warnings in the "errors" preferences
    pane. There are also compiler options to make the complier not
    whine, but I don't know what the options are.

    -dain
    On Mar 5, 2007, at 3:15 AM, Andrus Adamchik wrote:

    Squashing consequences of one Java 5 feature with another... nice :-)

    I wonder how we can address this at the framework level, without
    having to support two separate jdk-specific builds of Cayenne?
    Wonder how other frameworks handle that (I suspect they don't)?

    Andrus


    On Mar 5, 2007, at 9:57 AM, Peter Schröder wrote:

    you may provide the annotation @SuppressWarnings("unchecked")
    this will probably remove the warning in your IDE.

    the warning occurs, because of the performQuery returns just a
    List-Object wich is not typesafe.

    -----Ursprüngliche Nachricht-----
    Von: news Im Auftrag von Arturo Perez
    Gesendet: Freitag, 2. März 2007 20:53
    An: [email protected]
    Betreff: Java5: the expression of type list needs unchecked
    conversion

    Hi all,

    I'm using Eclipse and Java6 now. Whenever I do anything with
    performQuery() the IDE complains that
    the expression of type list needs unchecked conversion.
    I'm sure I could turn that off in the IDE but is there a way to
    write it so that the warning goes away? I tried casting.

    -arturo

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriescayenne
postedMar 5, '07 at 7:58a
activeMar 5, '07 at 6:20p
posts3
users3
websitecayenne.apache.org

People

Translate

site design / logo © 2023 Grokbase