a defect of org.apache.nutch.analysis.NutchAnalysis ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

a defect of org.apache.nutch.analysis.NutchAnalysis ?

Game Now
Hi all,

I read the code of org.apache.nutch.analysis.NutchAnalysis and found
there is some codes at line 126:

          && field == Clause.DEFAULT_FIELD

The field and the Clause.DEFAULT_FIELD are both String type, so i
think is it should be written as:

         && field.equals(Clause.DEFAULT_FIELD)

Cheers,
-GameNow
Reply | Threaded
Open this post in threaded view
|

Re: a defect of org.apache.nutch.analysis.NutchAnalysis ?

Stefan Groschupf-2
This class is generated by javacc.

Am 14.11.2005 um 04:46 schrieb Game Now:

> Hi all,
>
> I read the code of org.apache.nutch.analysis.NutchAnalysis and found
> there is some codes at line 126:
>
>           && field == Clause.DEFAULT_FIELD
>
> The field and the Clause.DEFAULT_FIELD are both String type, so i
> think is it should be written as:
>
>          && field.equals(Clause.DEFAULT_FIELD)
>
> Cheers,
> -GameNow
>