Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-9060

WSDL2Java Service generation results in 'unused import' warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.5
    • 4.1.0, 3.6.5, 4.0.6
    • None
    • None
    • Unknown

    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

          Activity

            People

              Unassigned Unassigned
              andrew.gibb Andrew Gibb
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified