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

Adjust sample project method calls that should be accessed in a static manner.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.4.1
    • 2.3.7, 2.4.3
    • Samples
    • None

    Description

      The repeated sample projects usage of this statement:

      --> bf.setDefaultBus(bus);

      causes the following warnings to be raised:

      "The static method setDefaultBus(Bus) from the type BusFactory should be accessed in a static way."

      Note that the sample projects ws_rm and jax_rs_basic_https do access the method is a static way:

      --> BusFactory.setDefaultBus(bus);

      The adjustment from "bf.setDefaultBus(bus);" to "BusFactory.setDefaultBus(bus);" should be made for the following sample projects: ws_policy, wsdl_first_https and wssec_sign_enc.

      I'm working on the diffs for these now and will attach them to this JIRA issue later tonight.

      Note that this activity is part of the effort to resolve warnings as identified by IDEs.

      Attachments

        1. diff_1.txt
          0.9 kB
          Robert Liguori
        2. diff_2.txt
          0.9 kB
          Robert Liguori
        3. diff_3.txt
          1 kB
          Robert Liguori
        4. diff_4.txt
          0.9 kB
          Robert Liguori
        5. diff_5.txt
          0.8 kB
          Robert Liguori
        6. diff_6.txt
          0.8 kB
          Robert Liguori

        Activity

          People

            dkulp Daniel Kulp
            rliguori Robert Liguori
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: