Strange Java error with annotations -
Try typing:
list & lt; Object & gt; List; @SuppressWarnings ("uncheck") list = (list & gt; object & gt;) new object ();
This I understand how this annotation works. Even the logic behind it knows? Edit: Thanks for the quick reply I knew that this works if even the assignment is made a declaration. list can not be sorted in a way
You comment on the manifesto, not just the assignment. This compiled:
@SuppressWarnings ("uncheck") list & lt; Object & gt; List = (list & gt; object & gt;) new object (); See Jawadox for
And if you look, then it says:
local variable declaration
(no target Arbitrary statement, so any annotation possibly can not go there and still allows it to be compiled.)
Comments
Post a Comment