elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.4k stars 24.87k forks source link

Tech debt week: clean up some crufty java idioms #90883

Open joegallo opened 2 years ago

joegallo commented 2 years ago

Placeholder description for now. Let's make a list of annoyances and clean them up.

Some proposed crufty idioms:

Discussion

Question: should we (the Data Management team) limit this to just 'our' sections of the code or should it be an Elasticsearch-wide effort? My immediate answer I suppose is that we may as well do it across the whole codebase if the cost of doing a particular cleanup is low enough. Also if we do it across the whole codebase then we can mark the bad thing as being forbidden.

Source of additional issues: some of the various core/ and common/ could be used in more places, e.g. org.elasticsearch.core.Strings.format as mentioned above.

elasticsearchmachine commented 2 years ago

Pinging @elastic/es-data-management (Team:Data Management)