Skip to content

Commit

Permalink
fix: issue #3. add private constructor for Mapping class.
Browse files Browse the repository at this point in the history
  • Loading branch information
parsa-mre committed Feb 11, 2024
1 parent 32e5f55 commit 3697c17
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

public class Mapping {

// Private constructor to hide the implicit public one
private Mapping() {
throw new IllegalStateException("Utility class");
}

public static Map<String, Callable<StatisticViewHolder<?>>> create(Context context) {
HashMap<String, Callable<StatisticViewHolder<?>>> m = new HashMap<>();
m.put(context.getString(R.string.stats_custom_layout_total_time_key), GenericStatisticsViewHolder.TotalTime::new);
Expand Down

0 comments on commit 3697c17

Please sign in to comment.