Skip to content

Commit

Permalink
Merge pull request #5 from Shrutipavasiya/parsa
Browse files Browse the repository at this point in the history
fix: issue #3. add private constructor for Mapping class.
  • Loading branch information
parsa-mre authored Feb 11, 2024
2 parents 32e5f55 + 3697c17 commit a479068
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 a479068

Please sign in to comment.