commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r1329891 - /commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java
Date Tue, 24 Apr 2012 18:35:32 GMT
On 24 April 2012 19:26, Mark Thomas <markt@apache.org> wrote:
> On 24/04/2012 19:15, sebb wrote:
>> On 24 April 2012 18:48,  <markt@apache.org> wrote:
>>> Author: markt
>>> Date: Tue Apr 24 17:48:50 2012
>>> New Revision: 1329891
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1329891&view=rev
>>> Log:
>>> Fix an Eclipse warning
>>
>> I don't get that warning; but I do now get "Unnecessary
>> @SuppressWarnings("unused")"
>>
>> Would the following work for you:
>>
>>     @Test
>>     public void testJavaBeanInstantiation() {
>>         assertNotNull(new PoolUtils());
>>     }
>
> Ah. This sounds like different Eclipse versions. Let me make sure I am
> using the latest...

More likely different compiler settings.

I assume the warning you are getting is because the new instance is not used.
Adding the assert should fix that.

> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message