That was me rather than the reformatter when I was checking out checkstyle. 
Forgot to revert that from the original patch, sorry.

On Nov 20, 2010, at 3:34 PM, Konstantin Kolinko wrote:

> 2010/11/20  <[email protected]>:
>> Author: jboynes
>> Date: Sat Nov 20 17:57:45 2010
>> New Revision: 1037279
>> 
>> URL: http://svn.apache.org/viewvc?rev=1037279&view=rev
>> Log:
>> reformat code to remove tabs;add checkstyle report
>> 
> 
> http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/xml/XPathUtil.java?limit_changes=0&r1=1037279&r2=1037278&pathrev=1037279
> 
> @@ -548,9 +548,9 @@ public class XPathUtil {
>                 Vector vector = new Vector();
>                 Object resultObject = null;
>                 if ( result.getType()== XObject.CLASS_BOOLEAN ) {
> -                    resultObject = new Boolean( result.bool());
> +                    resultObject = result.bool();
>                 } else if ( result.getType()== XObject.CLASS_NUMBER ) {
> -                    resultObject = new Double( result.num());
> +                    resultObject = result.num();
>                 } else if ( result.getType()== XObject.CLASS_STRING ) {
>                     resultObject = result.str();
>                 }
> 
> The formatter fixed implicit boxing.
> It'd be better to use Boolean.valueOf() though. I am leaving for
> others to fix it (if anybody wants to do that).
> 
> It is the only serious code change in this commit.
> 
> Best regards,
> Konstantin Kolinko
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to