Description
After the fix for CXF-9011 there are now "unused import" warnings for java.net.URI in some generated Services. This is because the URI.create(...).toUrl() is only used in some scenarios.
There is already a conditional check in the service.vm template around the import for java.net.MalformedURLException which is used in the same scenario when creating the URL so I believe the import for java.net.URI belongs in there as well.
I have tested the conditional import and will submit a pull request
Attachments
Issue Links
- links to