fixed MLlib Naive-Bayes java example bug

the filter tests Double objects by references whereas it should test their values
Yeah kinda. Also would the esteemed author indulge me and remove `1.0 *` in favor of an actual cast or `.doubleValue()` as well?