private void addDefaults ( ) { this . issueCategories . putIfAbsent ( MANDATORY , new IssueCategory ( MANDATORY , IssueCategoryRegistry . class . getCanonicalName ( ) , "Mandatory" , MANDATORY , 1000 , true ) ) ; this . issueCategories . putIfAbsent ( OPTIONAL , new IssueCategory ( OPTIONAL , IssueCategoryRegistry . class . getCanonicalName ( ) , "Optional" , OPTIONAL , 1000 , true ) ) ; this . issueCategories . putIfAbsent ( POTENTIAL , new IssueCategory ( POTENTIAL , IssueCategoryRegistry . class . getCanonicalName ( ) , "Potential Issues" , POTENTIAL , 1000 , true ) ) ; this . issueCategories . putIfAbsent ( CLOUD_MANDATORY , new IssueCategory ( CLOUD_MANDATORY , IssueCategoryRegistry . class . getCanonicalName ( ) , "Cloud Mandatory" , CLOUD_MANDATORY , 1000 , true ) ) ; this . issueCategories . putIfAbsent ( INFORMATION , new IssueCategory ( INFORMATION , IssueCategoryRegistry . class . getCanonicalName ( ) , "Information" , INFORMATION , 1000 , true ) ) ; }
Make sure that we have some reasonable defaults available . These would typically be provided by the rulesets in the real world .