on 04-24-2007 8:56 AM
After updating NW04s from SPS10 to SPS 11, the task list shows hundreds of "import never used" warnings inside the generated Java source.
I can remove these warnings temporarily, but a rebuild will generate the useless imports again.
Is there a better solution than filter the task list?
Regards
Thomas
Just disable this warning using Window -> Preferences... -> Java -> Compiler -> Errors/Warnings -> Unnecessary Code -> Unused imports -> Ignore
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
switching off the warning permanenttly is like using a filter.
And an additional disadvantage: I can't see my own unused import statements because the editor will not mark them any longer.
I'd hoped there's a solution to stop the code generator generating the statements.
Regards
Thomas
That's correct. If you like to see these warnings, don't put them off globally.
We attempted to avoid such unused imports in the generated classes but the gains don't really justify the effort.
Future versions of Web Dynpro Java will use annotations in the generated classes to suppress these warnings.
Armin
Hi Thomas,
In NWDS (NetWeaver Developer Studio) you just right click on your code and do Source->Organise Imports . now your warning import should disappear.
Regards, Suresh KB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.