[ 
https://issues.apache.org/jira/browse/CAMEL-12731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16580635#comment-16580635
 ] 

ASF GitHub Bot commented on CAMEL-12731:
----------------------------------------

GitHub user hiroakiy opened a pull request:

    https://github.com/apache/camel/pull/2473

    CAMEL-12731: Fix FindBugs warnings: Array formatted in useless way us…

    FindBugs-3.0.1 
([http://findbugs.sourceforge.net/](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](http://findbugs.sourceforge.net/bugDescriptions.html#VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hiroakiy/camel CAMEL-12731

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2473.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2473
    
----
commit e471745d4e409d736e7cb0b4dec2901873829bed
Author: Hiroaki Yoshida <hyoshida@...>
Date:   2018-08-15T02:16:23Z

    CAMEL-12731: Fix FindBugs warnings: Array formatted in useless way using 
format string

----


> FindBugs warnings: Array formatted in useless way using format string
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-12731
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12731
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-zookeeper
>            Reporter: Hiroaki Yoshida
>            Priority: Major
>
> FindBugs-3.0.1 ([http://findbugs.sourceforge.net/]) reported a 
> VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY warning on master:
> {code:java}
> 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]
> {code}
> The description of the bug is as follows:
> {quote}*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]
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to