Something wrong in the code. Handle the return boolean value.

On Wed, Nov 11, 2015 at 9:28 PM, Madhuranga Bandara <[email protected]>
wrote:

> Seems like this is a system dependant issue in findbugs.
> if i remove boolean wait. then it wont compile saying.
>
> [INFO] Return value of java.util.concurrent.CountDownLatch.await(long,
> TimeUnit) ignored in
> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
> HttpRoute)
> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
> ChannelUtils.java:[line 95]
>
>
>
> *Madhuranga Sampath Bandara*
> Software Engineer
>
> WSO2, Inc.;http://wso2.com/
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
> lean.enterprise.middleware
> Mobile: +94722241065
>
> On Wed, Nov 11, 2015 at 6:50 PM, Kishanthan Thangarajah <
> [email protected]> wrote:
>
>> Not sure if this is environment specific, but there is actually a unused
>> variable at
>> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils]
>> At ChannelUtils.java:[line 95]
>>
>> boolean wait =
>> channelLatch.await(bootstrapConfiguration.getConnectTimeOut(),
>> TimeUnit.MILLISECONDS);
>>
>> The above variable "*wait*" is never used. This is what reported by
>> findbugs. Please fix this.
>>
>> On Wed, Nov 11, 2015 at 5:42 PM, Madhuranga Bandara <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> I have tried same on MAC OS with mvn 3.3.3 and
>>> findbugs-maven-plugin:3.0.2.
>>> I could build the product without any issue.
>>> i'm using java 8.
>>>
>>>
>>> *Madhuranga Sampath Bandara*
>>> Software Engineer
>>>
>>> WSO2, Inc.;http://wso2.com/
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
>>> lean.enterprise.middleware
>>> Mobile: +94722241065
>>>
>>> On Wed, Nov 11, 2015 at 4:22 PM, Chanaka Fernando <[email protected]>
>>> wrote:
>>>
>>>> Madhuranga will look into this.
>>>>
>>>> On Wed, Nov 11, 2015 at 4:06 PM, Kishanthan Thangarajah <
>>>> [email protected]> wrote:
>>>>
>>>>> Build is failing on MacOS with maven 3.3.3.
>>>>>
>>>>> [INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
>>>>> org.wso2.carbon.gateway ---
>>>>> [INFO] BugInstance size is 1
>>>>> [INFO] Error size is 0
>>>>> [INFO] Total bugs: 1
>>>>> *[INFO] Dead store to wait in
>>>>> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
>>>>> HttpRoute)
>>>>> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] 
>>>>> At
>>>>> ChannelUtils.java:[line 95]*
>>>>> [INFO]
>>>>>
>>>>> To see bug detail using the Findbugs GUI, use the following command
>>>>> "mvn findbugs:gui"
>>>>>
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Reactor Summary:
>>>>> [INFO]
>>>>> [INFO] org.wso2.carbon.gateway.parent ..................... SUCCESS [
>>>>>  3.126 s]
>>>>> [INFO] org.wso2.carbon.gateway ............................ FAILURE [
>>>>> 10.700 s]
>>>>> [INFO] WSO2 Carbon - Gateway Feature ...................... SKIPPED
>>>>> [INFO] WSO2 Gateway Server - Distribution ................. SKIPPED
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Total time: 14.602 s
>>>>> [INFO] Finished at: 2015-11-11T15:30:02+05:30
>>>>> [INFO] Final Memory: 55M/482M
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [ERROR] Failed to execute goal
>>>>> org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
>>>>> project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 
>>>>> 1]
>>>>>
>>>>>
>>>>> --
>>>>> *Kishanthan Thangarajah*
>>>>> Associate Technical Lead,
>>>>> Platform Technologies Team,
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware
>>>>>
>>>>> Mobile - +94773426635
>>>>> Blog - *http://kishanthan.wordpress.com
>>>>> <http://kishanthan.wordpress.com>*
>>>>> Twitter - *http://twitter.com/kishanthan
>>>>> <http://twitter.com/kishanthan>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thank you and Best Regards,
>>>> Chanaka Fernando
>>>> Senior Technical Lead
>>>> WSO2, Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: +94 773337238
>>>> Blog : http://soatutorials.blogspot.com
>>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>>> Twitter:https://twitter.com/chanakaudaya
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>*
*email: **[email protected]* <[email protected]>
* cell: +94 77 3320919blog: **http://blog.afkham.org*
<http://blog.afkham.org>
*twitter: **http://twitter.com/afkham_azeez*
<http://twitter.com/afkham_azeez>
*linked-in: **http://lk.linkedin.com/in/afkhamazeez
<http://lk.linkedin.com/in/afkhamazeez>*

*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to