harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib][luni] question about File.fixSlashes
Date Tue, 24 Mar 2009 13:53:42 GMT
Regis wrote:
> Nathan Beyer wrote:
>> Is there a downstream secirity check that would be less efficient?
>> Maybe the comment is just about perf.
> 
> I checked java.io.FilePermission, seems there is no code using "==" to
> test the path.

But it may be using .equals() which is more efficient in answering the
question if the instances are ==

Just a thought, I don't know why.

Regards,
Tim

Mime
View raw message