Closed ke4roh closed 5 years ago
Going to say no on this one. I don’t think it’sa good idea long term
The odd part here is that then the Solr client is split among multiple implementations for indexing and querying different ways.
I don’t see that as a problem. Of course there isn’ta reason you can’t do your own subclass that does both.
Inner classes with different behavior for different methods can provide a body or not and avoid branching.