trackmate-sc / TrackMate

TrackMate is your buddy for your everyday tracking.
https://imagej.net/plugins/trackmate
GNU General Public License v3.0
169 stars 76 forks source link

refactor: replacing swith with polymorphism - OCP #254

Closed lokeshwartabjula closed 1 year ago

lokeshwartabjula commented 1 year ago

Document Link : https://docs.google.com/document/d/1TEh2IvcwTXFVyL9KyT-EnExBwEG_jn8t26m_DSXt9FY/edit?usp=sharing

The above document has the refactoring information

Replace Conditional With Polymorphism: [to support open closed principle]

Package Location: package fiji.plugin.trackmate.util;

Description: Identified a piece of code where a switch case was used in ImageHelper.java. To bring in Open Closed Principle, the switch case is replaced with subclasses matching the branches of the conditional

refer https://refactoring.guru/replace-conditional-with-polymorphism

tinevez commented 1 year ago

No news from Lokeshwar. Closing.