Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12731

FindBugs warnings: Array formatted in useless way using format string

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.23.0
    • Component/s: camel-zookeeper
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      FindBugs-3.0.1 (http://findbugs.sourceforge.net/) reported a VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY warning on master:

      H C USELESS_STRING: Argument of type org.apache.zookeeper.Watcher$Event$EventType[] formatted in useless way in org.apache.camel.component.zookeeper.operations.FutureEventDrivenOperation.process(WatchedEvent)  At FutureEventDrivenOperation.java:[line 72]
      

      The description of the bug is as follows:

      USELESS_STRING: Array formatted in useless way using format string (VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY)
      One of the arguments being formatted with a format string is an array. This will be formatted using a fairly useless format, such as [I@304282, which doesn't actually show the contents of the array. Consider wrapping the array using Arrays.asList(...)before handling it off to a formatted.
      http://findbugs.sourceforge.net/bugDescriptions.html#VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hiroakiyoshida Hiroaki Yoshida
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: