Make GenericUrl's #equals pass static analysis
We'll start matching this with a new error-prone (https://github.com/google/error-prone) check soon otherwise: it looks like this is comparing two different getters.
@@ -183,7 +183,7 @@ public class GenericUrl extends GenericData {
}
GenericUrl other = (GenericUrl) obj;
// TODO(yanivi): optimize?
- return build().equals(other.toString());
+ return build().equals(other.build());
}
@Override
