You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Tim Funk <fu...@joedog.org> on 2008/06/24 19:04:08 UTC
[OT] Re: svn commit: r671153 - /tomcat/connectors/trunk/jni/java/org/apache/tomcat/jni/Library.java
Dumb question. (More of a curiosity since I see this a lot)
Is there a reason to use:
java.io.File fd =
new java.io.File(paths[j] +
System.getProperty("file.separator") + name);
Instead of
java.io.File fd = new java.io.File(paths[j], name);
-Tim
jfclere@apache.org wrote:
> Author: jfclere
> Date: Tue Jun 24 05:26:55 2008
> New Revision: 671153
>
> URL: http://svn.apache.org/viewvc?rev=671153&view=rev
<SNIP>
> + java.io.File fd = new java.io.File(paths[j] + System.getProperty("file.separator") + name);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [OT] Re: svn commit: r671153 - /tomcat/connectors/trunk/jni/java/org/apache/tomcat/jni/Library.java
Posted by jean-frederic clere <jf...@gmail.com>.
Tim Funk wrote:
> Dumb question. (More of a curiosity since I see this a lot)
>
> Is there a reason to use:
> java.io.File fd =
> new java.io.File(paths[j] +
> System.getProperty("file.separator") + name);
>
> Instead of
> java.io.File fd = new java.io.File(paths[j], name);
You are right there are no reason to use the first one instead the
second. Thanks for the review.
Cheers
Jean-Frederic
>
> -Tim
>
> jfclere@apache.org wrote:
>> Author: jfclere
>> Date: Tue Jun 24 05:26:55 2008
>> New Revision: 671153
>>
>> URL: http://svn.apache.org/viewvc?rev=671153&view=rev
> <SNIP>
>> + java.io.File fd = new java.io.File(paths[j] +
>> System.getProperty("file.separator") + name);
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org