-Xlint:unchecked

Re: -Xlint:unchecked

by Christian Gasde -
Number of replies: 0
Thank you very much! I'm not the admin, but I sent your information to our adminboard.

We found one other workaround:

@SuppressWarnings("unchecked") <------------- with this annotation our code is running in coderunner
public static void main(String[] args) {

/* getypte Orte mit Integer */
Integer[] iArr = {63, 98, 72, 4, 6, 63, 57, 55, 83, 29 };

Ort[] ortInts;
ortInts = new Ort[iArr.length]; <----PROBLEM: Type safety: The expression of type Ort[] needs unchecked conversion to conform to Ort[]
...

In Eclpise we only get a warning, but the execution doesn't stop. ....

Best Regards
Chris