Skip to content

Commit

Permalink
SeaseLtd#109: Instantiate MetricClassConfigurationManager immediately…
Browse files Browse the repository at this point in the history
… on start-up.
  • Loading branch information
Matt Pearce committed Mar 22, 2020
1 parent 11f295b commit 5557459
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,13 @@
*/
public class MetricClassConfigurationManager {

private static MetricClassConfigurationManager instance;
private static MetricClassConfigurationManager INSTANCE = new MetricClassConfigurationManager();

private BigDecimal defaultMaximumGrade = BigDecimal.valueOf(3);
private BigDecimal defaultMissingGrade = BigDecimal.valueOf(2);

private MetricClassConfigurationManager() {
// Private constructor
}

public static MetricClassConfigurationManager getInstance() {
if (instance == null) {
instance = new MetricClassConfigurationManager();
}
return instance;
return INSTANCE;
}

/**
Expand Down

0 comments on commit 5557459

Please sign in to comment.